The documentation [http://ws.apache.org/axis/java/reference.html]
states that it is possible to specify force UTF-16 encoding using
the global wsdd parameter 'axis.xmlEncoding'.

I have tried to set it in my server-config.wsdd and I'm still seeing
UTF-8 encoded responses. Is this a bug? Am I missing something?
(I'm using Axis 1.1).

<?xml version="1.0" encoding="UTF-8"?>
<deployment xmlns="http://xml.apache.org/axis/wsdd/";
xmlns:java="http://xml.apache.org/axis/wsdd/providers/java";>
 <globalConfiguration>
  <parameter name="adminPassword" value="XXX"/>
  <parameter name="attachments.Directory" value="WEB-INF/attachments"/>
  <parameter name="sendMultiRefs" value="true"/>
  <parameter name="sendXsiTypes" value="true"/>
  <parameter name="attachments.implementation"
value="org.apache.axis.attachments.AttachmentsImpl"/>
  <parameter name="sendXMLDeclaration" value="true"/>
  <parameter name="axis.sendMinimizedElements" value="true"/>
  <parameter name="axis.xmlEncoding" value="UTF-16"/>
  <requestFlow>
   <handler type="java:org.apache.axis.handlers.JWSHandler">
    <parameter name="scope" value="session"/>
   </handler>
   <handler type="java:org.apache.axis.handlers.JWSHandler">
    <parameter name="scope" value="request"/>
    <parameter name="extension" value=".jwr"/>
   </handler>
  </requestFlow>
 </globalConfiguration>
...

Laurent Fontanel
Global Crossing


Reply via email to