This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
I have to receive attachments from SOAP message and save it in a local machine. I am not quite clear how to handle it in server side using jax-ws 2.0, can you please tell me where can i find a sample? i am using RAD 7.5
there are lot of example which tells how to send (client side) soap message with attachment, but i want to server side, how to receive at the server end.
If you want to handle SOAP messages with attachments on the server side, your endpoint implementation class should implement the javax.xml.ws.Provider interface with the generic type SOAPMessage. Example:
The invoke method will receive a parameter of the type SOAPMessage. Using SAAJ you can then retrieve the attachment(s) of the SOAP message.