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 Certification (SCDJWS/OCEJWSD) and the fly likes How to get SOAP attachment within web service operation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Services Certification (SCDJWS/OCEJWSD)
Bookmark "How to get SOAP attachment within web service operation" Watch "How to get SOAP attachment within web service operation" New topic
Author

How to get SOAP attachment within web service operation

Abdul Mohsin
Ranch Hand

Joined: Apr 26, 2007
Posts: 111


Hi,

I have a simple web service running on my glasfish:




I am calling the web service through the SAAJ API and able to call it successfully , now my question is if I attached a file with the SOAP request using AttachmentPart then how can my web service operation ( add operation ) is able to get that attachment or complete SOAP message in case if it wants to.

Also let me know if anyone has any sample example where client is sending SOAP with Attachment and webservice is consuming the attachment.


Thanks,
Abdul Mohsin


Regards, Abdul Mohsin
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42594
    
  65
Check out the "mime" and "mime-large" samples that come with the JAX-WS distribution.


Ping & DNS - my free Android networking tools app
Abdul Mohsin
Ranch Hand

Joined: Apr 26, 2007
Posts: 111


Thanks so much Ulf for quick response , can you also please point me to the URL for the same.

I have searched the following contents but not able to find those sample programs:
-- Java EE 5 tutorial samples
-- Sample present on https://jax-ws.dev.java.net/guide/Required_Software.html


Regards,
Abdul Mohsin
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42594
    
  65
They're part of the JAX-WS distribution.
Abdul Mohsin
Ranch Hand

Joined: Apr 26, 2007
Posts: 111


Got it finally .. Thanks so much !

-
Abdul Mohsin
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to get SOAP attachment within web service operation