[英]Getting a null response when using a wsimport generated web service client
I generated a web service client using wsimport. 我使用wsimport生成了一个Web服务客户端。 However when making a call to the service, the result is none. 但是,当调用该服务时,结果为无。 There seem to be many tutorials on using wsimport, but hardly anything on using the generated client. 关于使用wsimport的教程似乎有很多,但是关于使用生成的客户端的教程却几乎没有。
The code for calling the client looks something like: 调用客户端的代码如下所示:
URL wsdl = new URL("http:example.com:8080/TestServiceWeb/testService.wsdl");
TestService testService = new TestService(wsdl,new QName("http:test.com/test","TestService");
TestServicePortType testServicePort = testService.getTestServicePortSoap11();
TestResult result = testServicePort.doTest();
The result returned by testServicePort is null. testServicePort返回的结果为null。 The Wireshark packet sniffer shows no traffic is being sent to the web service. Wireshark数据包嗅探器显示没有流量发送到Web服务。
您可以在某个地方托管此Web服务,以便我们进行快速测试吗?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.