problem with castor 1.2

View: New views
2 Messages — Rating Filter:   Alert me  

problem with castor 1.2

by osman cinar eren :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

i have a Java 1.4 environment. I use spring as the web service interface which uses castor as the marshaller. Castor version is 1.2. I have the following problem with the marshaller:
If an empty xml element is marshalled, its namespace is dropped such as the following:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <soapenv:Header/>
   <soapenv:Body>
      <createCodeStringResponse/>
   </soapenv:Body>
</soapenv:Envelope>
If the element isnt empty, it has the namespace attribute such as:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <soapenv:Header/>
   <soapenv:Body>
      <createXYZResponse xmlns="http://a.b/c/d">
         <a>5</a>
      </createXYZResponse>
   </soapenv:Body>
</soapenv:Envelope>
My mapping is in the following format for both of these examples:
        <class auto-complete="true" name="com.integration.ws.marshal.retrievecodestrings.entities.RetrieveCodeStrings">
        <map-to xml="retrieveCodeStrings"/>
    </class>

Can i override this behavior via any configuration in castor.properties or in any other way?


thanks in advance.
BR..


     

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

    http://xircles.codehaus.org/manage_email



Re: problem with castor 1.2

by Werner Guttmann-6 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

any chances of creating a JIRA issue at

http://jira.codehaus.org/browse/CASTOR

and attach a small test case that allows me to re-create your problem,
e.g. a minimal Maven project with test case, etc.

Regards
Werner

osman cinar eren wrote:

> Hi,
>
> i have a Java 1.4 environment. I use spring as the web service interface which uses castor as the marshaller. Castor version is 1.2. I have the following problem with the marshaller:
> If an empty xml element is marshalled, its namespace is dropped such as the following:
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>    <soapenv:Header/>
>    <soapenv:Body>
>       <createCodeStringResponse/>
>    </soapenv:Body>
> </soapenv:Envelope>
> If the element isnt empty, it has the namespace attribute such as:
>
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>    <soapenv:Header/>
>    <soapenv:Body>
>       <createXYZResponse xmlns="http://a.b/c/d">
>          <a>5</a>
>       </createXYZResponse>
>    </soapenv:Body>
> </soapenv:Envelope>
> My mapping is in the following format for both of these examples:
> <class auto-complete="true" name="com.integration.ws.marshal.retrievecodestrings.entities.RetrieveCodeStrings">
>         <map-to xml="retrieveCodeStrings"/>
>     </class>
>
> Can i override this behavior via any configuration in castor.properties or in any other way?
>
>
> thanks in advance.
> BR..
>
>
>      
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>     http://xircles.codehaus.org/manage_email
>
>

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

    http://xircles.codehaus.org/manage_email