Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Axis client stub class hangs after third failed request to soap server

Ivan Fedulov
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All.

My apologizes in advance if the same topic was already discussed here, but I have not succeeded to found anything useful so far.

So, I`m working with with axis2 soap client stub, which is created with wsdl2java code generation tool. Version of axis is 1.5.4 if it matters.

The problem is that on sending third request to any service which responds with non 200 http code client hangs for some time (404 and 504 were tested). In some cases exception like "Timeout waiting for connection" occurred. All requests are sent one by one, no concurrent invoking of stub methods.

Also, I have tried to instantiate new stub on each new request and call method cleanup() after receiving response - this did not helped as well.

I know that default implementation of axis stub restricts amount on concurrent http sessions towards server to two. But it is not clear why http client inside stub do not relases connection after receiving 504 response from server.

Code sample:

Thank you very much in advance, I`m really waiting for any advice on this problem!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic