[ 
https://issues.apache.org/jira/browse/CXF-7828?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16599026#comment-16599026
 ] 

Amar K commented on CXF-7828:
-----------------------------

[~coheigea]

Thanks for the response, see the documentation here - 
[https://docs.oracle.com/javase/7/docs/api/javax/xml/stream/XMLStreamReader.html#getNamespaceURI()]
 

Event Type NAMESPACE and respective "Valid Methods" section the table.

Its very weird just the change in length of the xml is causing this difference 
in behavior. I tried setting up the standalone test case but I am running into 
a different issue explained here - 
[https://stackoverflow.com/questions/14440582/axis2-fault-the-input-stream-for-an-incoming-message-is-null.]
 I tried the solution provided in the response but didn't help. Any thoughts 
what could be causing the axis2 error or how to debug ?

Thanks

Amar

> 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
> ---------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CXF-7828
>                 URL: https://issues.apache.org/jira/browse/CXF-7828
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-WS Runtime
>    Affects Versions: 2.7.7
>         Environment: Production
>            Reporter: Amar K
>            Priority: Major
>         Attachments: Job_Failure.xml, Transfer-201210.wsdl, 
> image-2018-08-27-10-34-12-193.png, image-2018-08-29-10-24-30-183.png
>
>
> 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).
>  
>  
> {code:java}
> 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);
> {code}
>  
>  
> As per the wsdl the SubmitRequest object accepts the definition attribute as 
> a String. See below.
> !image-2018-08-27-10-34-12-193.png!
>  
> Please help us know if this a "memory intensive" related operation issue. And 
> how should it be addressed.
>  
> Thanks
> Amar



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to