• Post Reply Bookmark Topic Watch Topic
  • New Topic

Axis2 limit incoming response.  RSS feed

Y Rach
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm calling external web service with axis2.
And I want to discard response message if its size(content of the incoming InputStream) large than N bytes.

First idea was to add custom handler to the <phaseOrder type="InFlow">.
But after debugging it looks for me like response's InputStream was already read and converted to SoapEnvelope.

Is there any other way to do that ? To read incoming InputStream before any Axis2's manipulation with it and if its content length larger than N bytes- discard response.

Another idea is to create my custom Message Builder

Thanks for any reply.
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!