问题描述
- JaxWsDynamicClientFactory createClient空指针
-
public static Object callService(String wsUrl, String method, Object... arg) {
JaxWsDynamicClientFactory dcf = JaxWsDynamicClientFactory.newInstance();
Object[] res = null;
try {
Client client = dcf.createClient(wsUrl);
res = client.invoke(method, arg);
} catch (Exception e) {
e.printStackTrace();
}
return res[0];
}
其中Client client = dcf.createClient(wsUrl);报空指针错误
解决方案
http://bbs.csdn.net/topics/390534081/
解决方案二:
http://blog.csdn.net/rodjohnsondoctor/article/details/9667851
时间: 2024-10-03 04:10:50