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

    • Bug
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • 2.7.7
    • None
    • JAX-WS Runtime
    • None
    • Production

    • 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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            amarkin Amar K
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment