IMO, the namespace of <accountNO> is "" ie. no-namespace.

I think the following two are equivalent in this case.

1)
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>
           <soapenv:Body>
              <ns1:getBalance 
xmlns:ns1="http://localhost:8081/axis/services/BankPort/";>
                 <accountNo href="#id0"/>
              </ns1:getBalance>
            </soapenv:Body>
</soapenv:Envelope>

2)
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>
           <soapenv:Body>
              <ns1:getBalance 
xmlns:ns1="http://localhost:8081/axis/services/BankPort/";>
                 <accountNo xmlns="" href="#id0"/>
              </ns1:getBalance>
            </soapenv:Body>
</soapenv:Envelope>
  * Note xmlns="" in <accountNo>.

This is the way Axis1.X serializes SOAP messages. Isn't it?

/Jongjin 
 
----- Original Message ----- 
From: "Eran Chinthaka" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Monday, March 07, 2005 7:11 PM
Subject: RE: [Axis2] OMElementImpl question


> Well, this fixing gave me another problem. 
> 
> Now lets take the below example.
> 
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>
>            <soapenv:Body>
>               <ns1:getBalance
> xmlns:ns1="http://localhost:8081/axis/services/BankPort/";>
>                  <accountNo href="#id0"/>
>               </ns1:getBalance>
>             </soapenv:Body>
> </soapenv:Envelope>
> 
> What is the namespace of accountNo element ? According to the xml namespace
> spec this has no namespace. 
> 
> But in SOAP I think all elements should be namespace qualified. So the above
> should be an invalid xml for SOAP builder. Else, can we put the namespace of
> accountNo as the default namespace for SOAP. (What is the defaultNamespace
> of a SOAP message if defaultNamespace is not defined ??)
> 
> For the time being, I omit the namespace check in SOAP messages. But this
> should be fixed soon, I think.
> 
> Thoughts ???
> 
> Regards,
> Eran Chinthaka
> 
> -----Original Message-----
> From: Eran Chinthaka [mailto:[EMAIL PROTECTED] 
> Sent: Monday, March 07, 2005 2:28 PM
> To: [email protected]
> Subject: RE: [Axis2] OMElementImpl question
> 
> I fixed the bug. 
> 
> -- Chinthaka
> 
> -----Original Message-----
> From: Jongjin Choi [mailto:[EMAIL PROTECTED] 
> Sent: Monday, March 07, 2005 2:22 PM
> To: [email protected]; Ajith Ranabahu
> Subject: Re: [Axis2] OMElementImpl question
> 
> Ajith,
> 
> I'll file this to JIRA.
> 
> Thanks.
> 
> 
> ----- Original Message ----- 
> From: "Ajith Ranabahu" <[EMAIL PROTECTED]>
> To: <[email protected]>
> Sent: Monday, March 07, 2005 4:56 PM
> Subject: Re: [Axis2] OMElementImpl question
> 
> 
>> Thanks Jongjin. I can reporduce the problem now. Seems we have a bug
>> in the serializer when it tries to serialize the stream directly.
>> Will let you know as soon as it is fixed.
>> 
>> BTW Shouldn' t we use JIRA for these matters ?. My guess is these
>> things should be recorded and prioritized and there's no place like
>> JIRA to do it better :)
>> 
>> 
>> On Mon, 7 Mar 2005 16:37:33 +0900, Jongjin Choi <[EMAIL PROTECTED]>
> wrote:
>>> Ajith,
>>> 
>>> In NoNamespaceSerializerTest.java,
>>> 
>>> modify following line
>>> from:
>>> (line number : 64) env.serialize(write, false);
>>> to:
>>> (line number : 64) env.serialize(write, true);
>>> 
>>> You can see the error.
>>> 
>>> /Jongjin.
>>> 
>>> 
>>> ----- Original Message -----
>>> From: "Ajith Ranabahu" <[EMAIL PROTECTED]>
>>> To: <[email protected]>; "jayachandra" <[EMAIL PROTECTED]>
>>> Sent: Saturday, March 05, 2005 4:00 PM
>>> Subject: Re: [Axis2] OMElementImpl question
>>> 
>>> > Hi,
>>> > I have added a new testcase to check the namespace behavior with the
>>> > exact soapmessage Jongjin has mentioned and it seems to pass! Would
>>> > you be able let me know how exactly the problem came ?
>>> > In the mean time have a look at the very simple test I wrote to check
> it at
>>> > org.apache.axis.om.impl.serializer.NoNamespaceSerializerTest class in
>>> > the src/test folder in OM module.
>>> >
>>> > Ajith
>>> >
>>> >
>>> > On Fri, 4 Mar 2005 20:15:39 +0530, jayachandra <[EMAIL PROTECTED]>
> wrote:
>>> >> Hi Axis2 Developers!
>>> >> Has it been taken care of in Axis2 to (de)serialize non-qualifying
>>> >> objects too. Kindly update the group when it's done and where from can
>>> >> the new source be gotten.
>>> >>
>>> >> Thank you,
>>> >> Jayachandra
>>> >>
>>> >
>>> > --
>>> > Ajith Ranabahu
>>> >
>> 
>> 
>> -- 
>> Ajith Ranabahu
>>
> 
> 
> 
> 
> 
> 
> 
>

Reply via email to