users@glassfish.java.net

Re: SOAP from glassfish is okay?

From: Jitendra Kotamraju <Jitendra.Kotamraju_at_Sun.COM>
Date: Fri, 14 Mar 2008 15:43:14 -0700

glassfish_at_javadesktop.org wrote:
> Dear All,
>
> Could somebody explain me XML. I've built an example of WS logon method. JAXB from glassfish expects XML looks like following:
> <s:Envelope
> xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
> <s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema">
> <x:logon xmlns:x="http://my.test/">
> <user>user</user>
> <passwd>xxx</passwd>
> </x:logon>
> </s:Body>
> </s:Envelope>
>
> Bingo! Working.
> But take a look at this:
> <ns2:logon xmlns:ns2="http://my.test/">
> <user>user</user>
> <passwd>xxx</passwd>
> </ns2:logon>
>
> Is it an XML? For me, Its not valid.
>
It's the same as the above.
> http://www.w3schools.com/xml/xml_namespaces.asp
> In my understanding, right versions are
> Either:
> <x:logon xmlns:x="http://my.test/">
> <x:user>user</x:user>
> <x:passwd>xxx</x:passwd>
> </x:logon>
> OR:
> <logon xmlns="http://my.test/">
> <user>user</user>
> <passwd>xxx</passwd>
> </logon>
> But not the glassfish's one.
> Just to mention that last two versions don't work with glassfish.
>
"user" is namespace "http://my.test/" in the last two examples
where as in the first two examples it is in no namespace.

Jitu
> I humbly thank for any clarification.
> Alexandre
> [Message sent by forum member 'aefremov' (aefremov)]
>
> http://forums.java.net/jive/thread.jspa?messageID=264103
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>