[ https://issues.apache.org/jira/browse/AXIS2-3051?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Davanum Srinivas resolved AXIS2-3051. ------------------------------------- Resolution: Fixed Fixed *ONLY* in trunk 561888 thanks, dims > UTF-16 Interop problem > ---------------------- > > Key: AXIS2-3051 > URL: https://issues.apache.org/jira/browse/AXIS2-3051 > Project: Axis 2.0 (Axis2) > Issue Type: Bug > Components: kernel > Reporter: Davanum Srinivas > Priority: Blocker > > When i run wsdl2java against > http://131.107.72.15/MTOM_Service_Indigo/Soap11MtomUtf16.svc?wsdl > and use the following snippet: > public class Main { > public static void main(String[] args) throws Exception { > MtomServiceStub stub = new MtomServiceStub(); > EchoStringAsBinary input = new EchoStringAsBinary(); > input.setS("My String"); > EchoStringAsBinaryResponse response = stub.EchoStringAsBinary(input); > DataHandler handler = response.getEchoStringAsBinaryResult(); > EchoBinaryAsString input2 = new EchoBinaryAsString(); > input2.setArray(handler); > EchoBinaryAsStringResponse response2 = > stub.EchoBinaryAsString(input2); > System.out.println("RESULT + [" + > response2.getEchoBinaryAsStringResult() + "]"); > } > } > I get the following exception: > Exception in thread "main" org.apache.axis2.AxisFault: Character Set Encoding > from transport information does not match with character set encoding in the > received SOAP message > at > org.apache.axis2.builder.BuilderUtil.validateCharSetEncoding(BuilderUtil.java:684) > at > org.apache.axis2.builder.MTOMBuilder.processDocument(MTOMBuilder.java:60) > at > org.apache.axis2.builder.MIMEBuilder.processDocument(MIMEBuilder.java:62) > at > org.apache.axis2.transport.TransportUtils.createDocumentElement(TransportUtils.java:160) > at > org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:111) > at > org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:87) > at > org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:326) > at > org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:389) > at > org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:211) > at > org.apache.axis2.client.OperationClient.execute(OperationClient.java:163) > at > org.tempuri.MtomServiceStub.EchoStringAsBinary(MtomServiceStub.java:474) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]