开发者

How to call Async Web service in Java

开发者 https://www.devze.com 2023-01-21 06:47 出处:网络
I thought there would be lot more info/tutorials on thi开发者_开发技巧s one, but some how I\'m not able to figure out how to call an async SOAP web service using Java. The web service in question may

I thought there would be lot more info/tutorials on thi开发者_开发技巧s one, but some how I'm not able to figure out how to call an async SOAP web service using Java. The web service in question may not necessarily be a Java web service. I only have access to web service's run time WSDL. Any pointers will be greatly helpful.

Also would it be possible to dynamically call such a web service? The Dynamic Invocation Interface method javax.xml.rpc.Call allows that for sync calls, but haven't found anything on async calls.


See the JAX-WS standard for the use of Future objects to communicate, asynchronously, with services. For some examples see CXF documentation on JAX-WS clients.


It is possible to do an asynchronous web service invocation, so that the client is not blocked waiting for the response. Check this link text

0

精彩评论

暂无评论...
验证码 换一张
取 消