This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Web Services and the fly likes Unable to create proper SOAP message Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Unable to create proper SOAP message" Watch "Unable to create proper SOAP message" New topic
Author

Unable to create proper SOAP message

Anup Bansal
Ranch Hand

Joined: Sep 12, 2006
Posts: 69
Hi All,

I am trying to add an attribute to the soap body in the following way:

Name bodyAttribute = requestMessage.getSOAPPart().getEnvelope().createName("Id", "wsu", "http://docs.oasis-open-arg/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd");
requestBody.addAttribute(bodyAttribute,"Body");

However the result is not as expected.

Expected result:
<soap-env:Body wsu:Id="Body" >

Current Result:
<soap-env:Body ns12373232:Id="Body">

Why is the value of the prefix changing?
Can anyone help me resolve this problem?

Thanks in advance,
Anup
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Unable to create proper SOAP message
 
Similar Threads
Problem with security token
SOAP Header problem SAAJ
intermediary adding soap header element breaking signature verification
RPC vs Document Style
Parsing POST Information