Search within Web Services
Register / Login
this forum made possible by our volunteer staff, including ...
Stephan van Hulst
Axis SOAPElement.addChildElement inserts it's own prefix
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
I am trying to create a SOAPEnvelope using Axis. For the particular message that I need to send The tags in my body do not need prefixes. So, I am using the following:
SOAPEnvelope env = new SOAPEnvelope(); SOAPHeader hdr = env.getHeader(); SOAPBody body = env.getBody(); SOAPElement myElement = body.addChildElement("MyTag");
However, the xml that is created is as follows:
<soapenv:Notify> ... </soapenv:Notify>
I don't want the prefix soapenv. I simply want the tag to be as follows:
<Notify> ... </Notify>
Has anyone seen this and if so do you have a suggestion?
Water! People swim in water! Even tiny ads swim in water:
Free, earth friendly heat - from the CodeRanch trailboss
Boost this thread!
Need the JSP equivalent
SOAP Header problem SAAJ
How to get a connection from the connection pool in a servlet
Problem in building SOAP with XML