Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: kernel
    • Labels:
      None

      Description

      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)

        Activity

        Hide
        Davanum Srinivas added a comment -

        Fixed ONLY in trunk 561888

        thanks,
        dims

        Show
        Davanum Srinivas added a comment - Fixed ONLY in trunk 561888 thanks, dims

          People

          • Assignee:
            Unassigned
            Reporter:
            Davanum Srinivas
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development