Most Efficient Way of calling an external webservice in Java?

Posted by Sudheer on Stack Overflow See other posts from Stack Overflow or by Sudheer
Published on 2010-04-11T14:20:38Z Indexed on 2010/04/11 14:23 UTC
Read the original article Hit count: 314

Filed under:
|
|

In one of our applications we need to call the Yahoo Soap Webservice to Get Weather and other related info.

I used the wsdl2java tool from axis1.4 and generated th required stubs and wrote a client. I use jsp's use bean to include the client bean and call methods defined in the client which call the yahoo webservice inturn.

Now the problem: When users make calls to the jsp the response time of the webservice differs greatly, like for one user it took less then 10 seconds and the other in the same network took more than a minute.

I was just wondering if Axis1.4 queues the requests even though the jsps are multithreaded.

And finally is there an efficient way of calling the webservice(Yahoo weather). Typically i get around 200 simultaneous requests from my users.

© Stack Overflow or respective owner

Related posts about axis

Related posts about java