com.wichell.core.util.WebServiceUtil Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of wichell-common Show documentation
Show all versions of wichell-common Show documentation
common project com.wichell.wichell jar
The newest version!
package com.wichell.core.util;
import java.net.URL;
import org.codehaus.xfire.client.Client;
/**
* @author ShenHueJie
* @version 2016年5月24日 下午5:25:11
*/
public final class WebServiceUtil {
private WebServiceUtil() {
}
/** 调用webService */
public static final Object invoke(String url, String method, Object... params) {
try {
Client client = new Client(new URL(url + "?wsdl"));
return client.invoke(method, params);
} catch (Exception e) {
throw new RuntimeException(e);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy