I'm new to jibx so forgive me if this is something obvious.  I need to be
able to create soap envelopes with the same root elements but with different
namespaces and a different prefix.  Here are examples of what I am trying to
do.

XML Document 1:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:xsd="
http://www.w3.org/2001/XMLSchema"; xmlns:soapenc="
http://schemas.xmlsoap.org/soap/encoding/";>
...

Mapping 1:
    <mapping name="Envelope" class="com.....soap.SOAPEnvelope">
        <namespace uri="http://schemas.xmlsoap.org/soap/envelope/";
default="elements" prefix="SOAP-ENV" />
        <namespace uri="http://www.w3.org/1999/XMLSchema-instance";
prefix="xsi" />
        <namespace uri="http://www.w3.org/1999/XMLSchema"; prefix="xsd" />
        ...



XML Document 2:
<SOAP-ENV:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"; xmlns:xsd="
http://www.w3.org/1999/XMLSchema"; xmlns:soapenc="
http://schemas.xmlsoap.org/soap/encoding/";>
...

Mapping 2:
    <mapping name="Envelope" class="com.....soap.SOAPEnvelope">
        <namespace uri="http://schemas.xmlsoap.org/soap/envelope/";
default="elements" prefix="soapenv" />
        <namespace uri="http://www.w3.org/2001/XMLSchema-instance";
prefix="xsi" />
        <namespace uri="http://www.w3.org/2001/XMLSchema"; prefix="xsd" />
        <namespace uri="http://schemas.xmlsoap.org/soap/encoding/";
prefix="soapenc"/>
        ...

Of course I can't have the same name two times in my binding file.  Can
someone point me in the right direction or let me know if I am trying to do
something that just isn't possible?

Thanks,
Jim
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to