• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

Handle SOAP Message

 
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I have a simple requirement, like

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.

Could you please provide some suggestion?

Regards,
Sankar. S
 
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi!
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.
Best wishes!
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Ivan,

Can we use SOAPHandler and SAAJ API to retrieve SOAP Attachment at server side?

Vivek Kumar
 
Ivan Krizsan
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi!
Yes, that is also a viable approach!
Best wishes!
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic