先上代码 :public static Object[] callService(String wsUrl, String method, Object... arg) {

Object[] res = null;
try {
JaxWsDynamicClientFactory dcf = JaxWsDynamicClientFactory.newInstance();
Client client = dcf.createClient(wsUrl);
res = client.invoke(method, arg);
}
catch (Exception e) {
e.printStackTrace();
}
return res;
}
Client client = dcf.createClient(wsUrl); 这里就报错了:
Expected element '{http://schemas.xmlsoap.org/wsdl/}definitions'