Hi all

I'm working with Spring WS and CastorMarshaller with a mapping file.
For a XML request to a webservice, I need to specify the namespace for the class, but not for its fields (i.e. namespace must be empty for fields).An example of what I'm doing follows:

mapping.xml:
<mapping>
<class name="some.package.className">
<map-to xml="className" ns-uri="theNamespace" />
<field name="field" type="string">
<bind-xml name="field" node="element"/>
</field>
</class>
</mapping>

generated XML:
<className xmlns="theNamespace">
<field xmlns="theNamespace">value</field>
</className>

desired XML:
<className xmlns="theNamespace">
<field>value</field>
</className>

(I omitted surrounding soap envelope, header, body in XMLs)

Thanks in advance for any help!

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Reply via email to