Group,
The following code snippet:
<snip>
SOAPFactory sf = SOAPFactory.newInstance();
Name bodyName = sf.createName("getImage", "i", "http://www.mycompany.com");
SOAPBodyElement sbe = soapBody.addBodyElement(bodyName);
Name usrName = sf.createName("user");
SOAPElement usr = sbe.addAttribute(usrName, "keymaster");
Name pwdName = sf.createName("pwd");
SOAPElement pwd = sbe.addAttribute(pwdName, "gatekeeper");
Name latName = sf.createName("item");
SOAPElement lat = sbe.addChildElement(latName);
lat.addTextNode("12345");
</snip>
...produces the following SOAP:
<snip>
<i:getImage user="keymaster" pwd="gatekeeper" xmlns:i="http://www.mycompany.com">
<item xmlns="">12345</item>
</i:getImage>
</snip>
The tutorials and examples I used to build the code gave no indication that the xmlns attribute would be present--let alone blank. Is there a way to avoid the empty/null xmlns (xmlns="")?
Thank you!
Nicholas (Nick) Remy
- WSDL2Java - can't use mime:multipartRelated in wsdl:outpu... William Bug
- Re: WSDL2Java - can't use mime:multipartRelated in w... Davanum Srinivas
- Re: WSDL2Java - can't use mime:multipartRelated ... William Bug
- Re: WSDL2Java - can't use mime:multipartRela... Nicholas Remy
- Re: WSDL2Java - can't use mime:multipartRela... Davanum Srinivas
- RE: Emply xmlns attribute Nicholas Remy
- RE: Emply xmlns attribute Robert Lowe