aspose file tools*
The moose likes Web Services and the fly likes Asynchronous web service client Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Asynchronous web service client" Watch "Asynchronous web service client" New topic
Author

Asynchronous web service client

Subha Murthy
Greenhorn

Joined: Aug 16, 2005
Posts: 15
We already coded a java client that makes synchronous calls. What are
the ways and easiest way to make it asynchronous?
Any help is highly appreciated.
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Hi!
You can enable generation of portable artifacts that allow for asynchronous client invocation by using a binding file.
Example of a binding file that enables asynchronous invocation of the operation "addNumbers" in the portType "Calculator":


When you invoke wsimport, add the -b option and specify the location of the above binding file.
In my example, the endpoint interface will look like this:


Note the two versions of the addNumbersAsync method!
Best wishes!
Subha Murthy
Greenhorn

Joined: Aug 16, 2005
Posts: 15
Thanks a lot for your response.

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Asynchronous web service client
 
Similar Threads
help in asynchronous context
can i send asynchronous message to client from servlet program
stop synchronous web service call
regarding Asynchronous request-response feature
Timeout Exception while connecting to a web service