Hi,

i work with spring ws 1.5.6 and marshaller is castor 1.2. My problem is as follows:
I have such a castor mapping:
<class auto-complete="true" name="com.integration.ws.marshal.retrievecodestrin gs.entities.RetrieveCodeStrings">
<map-to xml="retrieveCodeStrings"/>
</class>
Please check that ns-uri parameter is missing. But when a response class is marshalled, it has the xmlns attribute:
<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>

On the other hand, when an empty class, i.e. a class with no instance variables, is marshalled xmlns attribute is missing and i try to solve this:
<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>


What can be the reason for missing xmlns? Is it castor related or spring related? (please note that xmlns is put for non-empty classes although ns-uri attribute is missing in the mapping file)

My second question is about encoding. How should we configure/implement Spring in order not to have any problems with non-English characters in the soap response?

thanks in advance.