Hi Venu,

We are currently working on a feature to disable namespace processing in
the marshalling framework. 
However it seems that you generated the classes from an XML Schema and I
am not sure you really want the targetNamespace of that XML Schema to be
"http://castor.exolab.org";. Try to change that targetNamespace and then
declare the mapping using setNamespaceMapping.

Sorry for the inconvenience,

Arnaud

> -----Original Message-----
> From: Venu Dharmapuri [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, February 25, 2003 7:32 PM
> To: [EMAIL PROTECTED]
> Subject: [castor-dev] Removing namespaces
> 
> Hi,
> I am new to castor development group. I am using castor 0.9.4.1
version.
> I tried following to remove namespace
> 
> setNamespaceMapping("","http://castor.exolab.org";);
> removing targetNamespace from mapping file also
> removing nsURI reference from *Descriptor.java files
> 
> I still could not remove namespace from  Marshaled xml.
> 
> Ex. of Xml ( want to remove ns1 from xml ...)
> <?xml version="1.0" encoding="UTF-8"?>
> <SiebelMessage ns1:IntObjectFormat="Siebel Hierarchical"
>     ns1:MessageType="Integration Object"
>     ns1:IntObjectName=" Product Defect"
>     xmlns="http://castor.exolab.org";
xmlns:ns1="http://castor.exolab.org/";>
>     <ns1:ListOfProductDefect>
>         <ns1:ProductDefect>
>             <ns1:Headline>MSP: Alerts &amp; Activities shows an
>                 anonymous view &amp; null exception</ns1:Headline>
>             <ns1:Identifier>CSCin34262</ns1:Identifier>
>             <ns1:Class>CSC.embu</ns1:Class>
>             <ns1:Submitted-on>030211</ns1:Submitted-on>
>             <ns1:Component>afd-view-config</ns1:Component>
>             <ns1:Platform>all</ns1:Platform>
>             <ns1:Product>iptm</ns1:Product>
>             <ns1:Severity>2</ns1:Severity>
>             <ns1:Status>N</ns1:Status>
>             <ns1:Project>CSC.embu</ns1:Project>
>             <ns1:ListOfProductDefect_PDInterestedParty>
>                 <ns1:ProductDefect_PDInterestedParty
ns1:IsPrimaryMVG="Y">
>
<ns1:InterestedParty>dtrp-core</ns1:InterestedParty>
>                     </ns1:ListOfProductDefect_PDInterestedParty>
>         </ns1:ProductDefect>
>     </ns1:ListOfProductDefect>
> </SiebelMessage>
> 
> 
> Thanks in advance for your help.
> Venu
> 
> -----------------------------------------------------------
> If you wish to unsubscribe from this mailing, send mail to
> [EMAIL PROTECTED] with a subject of:
>       unsubscribe castor-dev

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to