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

How to refer the current SOAP message?

 
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.
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why do you need to access the message at the service side?

Some APIs (like JAX-WS and JAX-RPC, but not SAAJ) have the notion of "message handlers". See here for how that works with JAX-WS.

Which API, and which SOAP engine, are you using?
[ October 07, 2008: Message edited by: Ulf Dittmer ]
 
Praveen Kumar Jayaram
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ulf Dittmer,

Thanks for the reply.
I am using SAAJ API.

My problem is how do I parse SOAP message at service for attachments and save them at some location?

If you have a sample working code please share both service and client.

Thanks in advance.
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This article explains both sides of a SOAP-with-attachments service.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic