Register / Login
this forum made possible by our volunteer staff, including ...
Jesper de Jong
Stephan van Hulst
Axis SOAPElement.addChildElement inserts it's own prefix
posted 11 years ago
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?
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