> -----Original Message-----
> From: Kolodziej, Erik [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 10, 2002 5:50 AM
> To: '[EMAIL PROTECTED]'
> Subject: Namespaces and beans
>
>
> Hi,
>
>
> I�m using a simple bean representing an user. The
> BeanSerializer produces
> the following elements in the soap message:
>
> <ns1:User xmlns:ns1="http://myservices.test.org/">
> <password>test</password>
> <userName>bob</userName>
> </ns1:User>
>
>
> But the server (.NET) needs the following:
> <ns1:User xmlns:ns1="http://myservices.test.org/">
> <ns1:password>test</ns1:password>
> <ns1:userName>bob</ns1:userName>
> </ns1:User>
>
> How can I tell the BeanSerializer to put the namespace into
> the subelements?
I'm not sure, but I doubt there's an option in Axis to do that. Shame on .NET for requiring that! AFAIK those two snippets of XML above should be considered identical by parsers. Child elements are supposed to default to the namespace of their parent.
***************************************************************************************
WARNING: All e-mail sent to and from this address will be received or
otherwise recorded by the A.G. Edwards corporate e-mail system and is
subject to archival, monitoring or review by, and/or disclosure to,
someone other than the recipient.
***************************************************************************************
