cracked_all
cracked_all

Reputation: 1341

How to call Async Web service in Java

I thought there would be lot more info/tutorials on this 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.

Upvotes: 3

Views: 21507

Answers (2)

Cratylus
Cratylus

Reputation: 54074

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

Upvotes: 1

bmargulies
bmargulies

Reputation: 100051

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.

Upvotes: 1

Related Questions