Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to process SOAP attachment at web service??

 
Praveen Kumar Jayaram
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Martijn Verburg
author
Bartender
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there!

An old but good IBM how to article should hopefully help!
 
Praveen Kumar Jayaram
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Martijn Verburg.

I will look into and getback to you if I have any queries.
 
Praveen Kumar Jayaram
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic