I am currently trying to write code to learn SAAJ.
I have written SAAJ Client code. My Client code creates an attachment and attach it to SOAP Request message.
Now I need to write SAAJ Server side code which extract this SOAP attachment and read it.
Please help me in writing this SAAJ Server side.
First of all , I wrote a sample web service (let us say - multiply two numbers) . Then I published that code using Endpoint publisher.
After that, I wrote a SAAJ Client based code. And in that code, I wrote code to add Attachment.
Now how can I modify my Web Service implementation code to read SOAP attachment (attached in SAAj Client)?
Abhay Agarwal wrote:I got SAAJ example working end to end ... First client send attachment to Server. Server read the attachment and then send SOAP Response back to Client with another attachment. Client read the attachment from Server response.
Great! It would be nice if you could post your code here.