You receive the following SOAP fault from a CICS Transaction Server for z/OS (CICS TS) WEBSERVICE configured with an axis2 PIPELINE:
<faultstring>org.org.apache.axiom.om.OMException: javax.xml.stream.XMLStreamException: Trying to read events from a parser that already reported an error before</faultstring>
The version of axis2 shipped with CICS TS V4.2 can issue an erroneous SOAP fault when processing invalid XML. For example, mismatched start and end tags:
In this case, the end tag should be </element1>
Resolving the problem
Ensure that the XML is valid. Consider enabling the WEBSERVICE validation capability in CICS in order to force a full validation of the SOAP messages. See Validating SOAP messages in the CICS TS V4.1 information center for more information.
If SOAP messages are generated by tools, then you are unlikely to experience this problem. However, if SOAP messages are constructed manually (perhaps hard-coded within application code), then it is much easier for errors to be accidentally introduced. Consider using tools to generate the SOAP messages.
|Host Transaction Processing||CICS Transaction Server||SOAP for CICS||z/OS||4.2|
CICS/TS CICS TS CICS Transaction Server
Rate this page:
Copyright and trademark information
IBM, the IBM logo and ibm.com are trademarks of International Business Machines Corp., registered in many jurisdictions worldwide. Other product and service names might be trademarks of IBM or other companies. A current list of IBM trademarks is available on the Web at "Copyright and trademark information" at www.ibm.com/legal/copytrade.shtml.