File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes Axis2 limit incoming response. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Axis2 limit incoming response." Watch "Axis2 limit incoming response." New topic
Author

Axis2 limit incoming response.

Y Rach
Greenhorn

Joined: Mar 29, 2011
Posts: 9
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Axis2 limit incoming response.
 
Similar Threads
Help with HTTP I/O
Problem reading the HttpConection response in some devices
Axis2 client reading MTOM objects.
Axis2: Incoming SOAP messages: logging and validation
nio download problem