Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 74423 invoked from network); 2 Apr 2004 15:16:57 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 2 Apr 2004 15:16:57 -0000 Received: (qmail 52485 invoked by uid 500); 2 Apr 2004 15:16:40 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 52467 invoked by uid 500); 2 Apr 2004 15:16:40 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 52454 invoked from network); 2 Apr 2004 15:16:40 -0000 Received: from unknown (HELO caci.com) (204.194.72.241) by daedalus.apache.org with SMTP; 2 Apr 2004 15:16:40 -0000 Received: from ([10.11.4.62]) by mailserver1.caci.com with ESMTP ; Fri, 02 Apr 2004 10:15:06 -0500 (EST) In-Reply-To: <20040402135259.19798.qmail@web12826.mail.yahoo.com> To: axis-user@ws.apache.org Subject: Emply xmlns attribute MIME-Version: 1.0 Message-ID: From: Nicholas Remy Date: Fri, 2 Apr 2004 10:15:47 -0500 Content-Type: multipart/alternative; boundary="=_alternative 0053D79E85256E6A_=" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N This is a multipart message in MIME format. --=_alternative 0053D79E85256E6A_= Content-Type: text/plain; charset="US-ASCII" Group, The following code snippet: 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"); ...produces the following SOAP: 12345 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 --=_alternative 0053D79E85256E6A_= Content-Type: text/html; charset="US-ASCII"
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



--=_alternative 0053D79E85256E6A_=--