美文网首页
client访问webService

client访问webService

作者: 简书_捡书 | 来源:发表于2016-12-05 11:31 被阅读0次

client访问webservice服务

String URL = "xxx";
String namespace = "yyy";
String operation = "Interface";
Object[] objArray = new Object[5];
objArray[0] = "111";
objArray[1] = "222";
objArray[2] = "333";
JaxWsDynamicClientFactory factory = JaxWsDynamicClientFactory.newInstance();
Client client = factory.createClient(URL);
QName opName = new QName(namespace, operation);
Object[] results = client.invoke(opName ,objArray);

相关文章

网友评论

      本文标题:client访问webService

      本文链接:https://www.haomeiwen.com/subject/ooukmttx.html