Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-7828

Increased size of the payload(xml as a string) results - A SOAP 1.2 message is not valid when sent to a SOAP 1.1 only endpoint. - Error

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 2.7.7
    • Fix Version/s: None
    • Component/s: JAX-WS Runtime
    • Labels:
      None
    • Environment:

      Production

    • Estimated Complexity:
      Unknown

      Description

      SOAP WSDL

      Generated client stub using the apache cxf - wsdl2java feature.

      When invoking the SOAP webservice using the SOAP client stubs generated it results an error - A SOAP 1.2 message is not valid when sent to a SOAP 1.1 only endpoint. 

      Upon further analysis we identified increased size of the xml string results above error. For the lower size of the xml string the service works fine.

      Below is the snippet of the code we are using when observed in debug the port object refers to "org.apache.cxf.jaxws.JaxWsClientProxy" class pointing to the client-stub class(FASPSoap).

       

       

      String orderxml = "Order xml constructed as a String";
      final Transfer201210 ss = new Transfer201210();
      ss.addPort(Transfer201210.Transfer201210Port, "Transfer201210Binding", soapapiurl);
      final FASPSoap port = ss.getTransfer201210Port();
      final SubmitRequest r = new SubmitRequest();
      r.setDefinition(orderxml);
      final SubmitResponse _submit__return = port.submit(r);
      

       

       

      As per the wsdl the SubmitRequest object accepts the definition attribute as a String. See below.

       

      Please help us know if this a "memory intensive" related operation issue. And how should it be addressed.

       

      Thanks

      Amar

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              amarkin Amar K

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment