I'm struggling in having a requested namespace definition in elements
and cannot make it work. Is it by the design or I miss something?

Here is the mapping:

<mapping abstract="true" type-name="tns:Request" class="MyRequest">
        <namespace uri="http://mySpace/1.0"; prefix="ms" default="all"/>
        <value name="requestType" style="element" field="requestType"
usage="optional"/>
        <value name="identifier" style="element" field="identifier"
usage="optional"/>
        ...
        <some more simple and collection fields here>
</mapping>

When marshalling, I need that "requestType" and "identifier" elements
will include namespace in them, but this does not seems to be working.
May be it assumes the namespace in which the wrapping object is defined?

--------------

The xml expected to look like following:

...
<ms:requestType xmlns:ms="http://mySpace/1.0";>MyType</ms:requestType>
<ms:identifier xmlns:ms="http://mySpace/1.0";>MyId</ms:identifier>

Or
...
<requestType xmlns ="http://mySpace/1.0";>MyType</requestType>
<identifier xmlns ="http://mySpace/1.0";>MyId</identifier>


Thanks for your help,
Alex

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to