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 How to get the contents of  message from the soap request Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "How to get the contents of  message from the soap request" Watch "How to get the contents of  message from the soap request" New topic
Author

How to get the contents of message from the soap request

Arunoday Das Gupta
Greenhorn

Joined: Sep 02, 2011
Posts: 6

Hi all,

I am new to webservices and currently facing a problem. I was able to send a simple sting as soap request and respond.

but now i want to send attachments with the request. How do i retrieve the attachments (or for that matter the whole contents of the soap request ie soap part and the attachments part). I have tried the following:

1) Tried to have the message as a parameter in a method in service java class and try to invoke the .getAttachments() method. [dont think this is the way to do it]
2)Tried to use a MessageContext as parameter but for that extending "Handler" class but then again when i try to create wsdl throung wsgen tool there is an exception stating can not handle interfaces and points to MessageContext interface.


can anybody help me on how to fetch the contents and attachments of the request?Thanks in advance.
 
jQuery in Action, 2nd edition
 
subject: How to get the contents of message from the soap request