This week's giveaways are in the MongoDB and Jobs Discussion forums.
We're giving away four copies of Mongo DB Applied Patterns and 4 resume reviews from Five Year Itch and have the authors/reps on-line!
See this thread and this one for details.
The moose likes Web Services and the fly likes Issues while creating a SOAP message Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Mongo DB Applied Patterns this week in the MongoDB forum
or a resume review from Five Year Itch in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "Issues while creating a SOAP message" Watch "Issues while creating a SOAP message" New topic
Author

Issues while creating a SOAP message

Akshay Lele
Greenhorn

Joined: Apr 06, 2009
Posts: 8
Hi All,

I have to create a SOAP message as below:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header/>
<soapenv:Body/>
</soapenv:Envelope>

To achieve this i created an instance of SOAPMessage object using MessageFactory.newInstance().createMessage().

The problem is it gives me the SOAP message in default format as below:

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Header/>
<SOAP-ENV:Body/>
</SOAP-ENV:Envelope>

Any help would be much appreciated.

Dan Drillich
Ranch Hand

Joined: Jul 09, 2001
Posts: 1121
Ok, so what's the issue?

Regards,
Dan


William Butler Yeats: All life is a preparation for something that probably will never happen. Unless you make it happen.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Issues while creating a SOAP message
 
Similar Threads
How to get document object From SOAP Message?
SOAP over TCP
Question: WS-I Profile Basic 1.0a R1005
Axis client for jboss ejb3 session bean web service
Question regarding MZ notes