Skip to main content

SOAP fault "Trying to read events from a parser that already reported an error before" from a CICS WEBSERVICE


Technote (troubleshooting)


Problem(Abstract)

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>

Cause

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:

<element1>data</element2>

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.

Related information

Testing Web services using Eclipse

Cross Reference information
Segment Product Component Platform Version Edition
Host Transaction Processing CICS Transaction Server SOAP for CICS z/OS 4.2

Product Alias/Synonym

CICS/TS CICS TS CICS Transaction Server

Rate this page:

(0 users)Average rating

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.

Rate this page:


(0 users)Average rating

Add comments

Document information

CICS Transaction Server

Web Services


Software version:
4.2


Operating system(s):
z/OS


Reference #:
1503086


Modified date:
2011-07-07

Translate my page

Content navigation