Hi,

first, I have CCed the user mailing list, where this question should
have gone initially.

The XML given below seems to having a few issues. Here's some observations:

* How come the <RemittanceTransaction> element is without any namespace
(prefix), given that you have NOT declared a default namepace ?
* How come the <tickRemittance> has an XML namespace prefix of
'daber-client' with no corresponding xmlns:... declaration ?

And now more general:

* With Castor XML, in your mappings you have the ability to define XML
namepace URIs and prefixs for all your classes. Please consult with the
reference guide for more information on this.

* Second, if you really want to have all namespace declarations on the
root element (as opposed to wherever they are used for the first time),
you can always use Marshaller.setNamespaceMapping() method.

Regards
Werner Guttmann

On 15.06.2011 09:21, trakkesh wrote:
> 
> Dear All,
>     The following is the XML file I need to produce using castor and mapping
> Java classes. But I am facing an issue when creating mappings for
> "xmlns:....". Pls assist how we can map "xmlns:" fileds?
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <dabler-client:tickRemittance 
>       lang="en" origin="dingash_hub" traceNo="1234567890" version="1.0"
>       xmlns:core="http://dingash.paybox.net/core/"; 
>       xmlns:hub-beans="http://dingash.paybox.net/hub/beans/";
>       xmlns:hub-client="http://dingash.paybox.net/hub/client/"; 
>       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
>       <RemittanceTransaction 
> xsi:type="hub-beans:FinancialRemittanceTransaction">
>               <sender>
>                           </sender>
>              </RemittanceTransaction
> <dabler-client:tickRemittance>

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

    http://xircles.codehaus.org/manage_email


Reply via email to