aspose file tools*
The moose likes Web Services and the fly likes How to process SOAP attachment at web service?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "How to process SOAP attachment at web service??" Watch "How to process SOAP attachment at web service??" New topic
Author

How to process SOAP attachment at web service??

Praveen Kumar Jayaram
Ranch Hand

Joined: Jul 14, 2008
Posts: 56
Hi
I am implementing a web service to upload a file to server using SOAP message. How do I get to know that SOAP msg contains attachment and if so how to process it?

Please help.


Praveen
Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3274
    
    5

Hi there!

An old but good IBM how to article should hopefully help!


Cheers, Martijn - Blog,
Twitter, PCGen, Ikasan, My The Well-Grounded Java Developer book!,
My start-up.
Praveen Kumar Jayaram
Ranch Hand

Joined: Jul 14, 2008
Posts: 56
Thanks Martijn Verburg.

I will look into and getback to you if I have any queries.
Praveen Kumar Jayaram
Ranch Hand

Joined: Jul 14, 2008
Posts: 56
Originally posted by Martijn Verburg:
Hi there!

An old but good IBM how to article should hopefully help!


Hi

I tried implementing it but didn't help.
Do you have any working sample code for SOAP attachment?
Praveen Kumar Jayaram
Ranch Hand

Joined: Jul 14, 2008
Posts: 56
Hi

I have seen some code for accessing SOAP msg at web service side is as follows,


But how can I get "message" from the SOAP request??
I am new to J2EE please help.
Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3274
    
    5

I have a new link for you, this one is a PDF explaining the usage of the SAAJ library. It looks like it covers what you need (especially around pages 40+). Of and here is another one covering the same topic
[ October 07, 2008: Message edited by: Martijn Verburg ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to process SOAP attachment at web service??