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 Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Unable to create proper SOAP message" Watch "Unable to create proper SOAP message" New topic

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");

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