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


Reply via email to