• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to get SOAP attachment within web service operation

 
Abdul Mohsin
Ranch Hand
Posts: 111
Java Linux Netbeans IDE
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check out the "mime" and "mime-large" samples that come with the JAX-WS distribution.
 
Abdul Mohsin
Ranch Hand
Posts: 111
Java Linux Netbeans IDE
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
They're part of the JAX-WS distribution.
 
Abdul Mohsin
Ranch Hand
Posts: 111
Java Linux Netbeans IDE
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Got it finally .. Thanks so much !

-
Abdul Mohsin
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic