简体   繁体   中英

Getting a null response when using a wsimport generated web service client

I generated a web service client using wsimport. 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.

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. The Wireshark packet sniffer shows no traffic is being sent to the web service.

您可以在某个地方托管此Web服务,以便我们进行快速测试吗?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM