aspose file tools*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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:
subject: Unable to create proper SOAP message
Similar Threads
SOAP Header problem SAAJ
Parsing POST Information
intermediary adding soap header element breaking signature verification
Problem with security token
RPC vs Document Style