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/OCPJWSD) and the fly likes How to get SOAP attachment within web service operation Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Certification » Web Services Certification (SCDJWS/OCPJWSD)
Reply 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: 35241
    
    7
Check out the "mime" and "mime-large" samples that come with the JAX-WS distribution.


Android appsImageJ pluginsJava web charts
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: 35241
    
    7
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://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: How to get SOAP attachment within web service operation
 
Similar Threads
get result from web service
some basic doubts in web services
Unable to open web service tester page
Code to get SOAP request
Simple question about Unwrapped and Wrapped SOAP messages/WSDLs