users@glassfish.java.net

SOAP from glassfish is okay?

From: <glassfish_at_javadesktop.org>
Date: Fri, 14 Mar 2008 11:48:37 PST

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.
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.

I humbly thank for any clarification.
Alexandre
[Message sent by forum member 'aefremov' (aefremov)]

http://forums.java.net/jive/thread.jspa?messageID=264103