INVALID SOAP REQUEST SOAP Fault : com.ctc.wstx.exc.WstxParsingException: Unexpected close tag </detail>; expected </MATNR>. at [row,col {unknown-source}]: [11,107]

Hi All,

When we try to send the data to client by consuming the soap webservice , we are facing the soap fault.

interface execution is fails by throwing soap error & sometime it executed successfully.

Please suggest the solution for the soap fault .

we are using SAG webMethods v10.1

@nikil This is parsing issue , kindly validate your soap request which you are sending

com.ctc.wstx.exc.WstxParsingException: Unexpected close tag ; expected . at [row,col {unknown-source}]: [11,107]

- Your request does have close tag which is expected to pair with ------
- Your request does not have have open tag at required place

1 Like


please check how you are building up your request.

Hopefully, you have created a consumer WS descriptor by importing the WSDL from the provider service.


As @Holger_von_Thomsen notes, how are you creating the SOAP request? Depending upon that, an item to check:if creating the XML with pub.xml:documentToXMLString is to always set encode to true. The default is false. This can lead to XML markup characters appearing in the data that can cause parsing to fail. Markup characters that appear in the element data, typically & and <, must be escaped. (You don’t need to do this yourself – the services within IS will do so, assuming you use the right inputs.)

This is just a guess at what might be wrong. But given the statement that is sometimes works and sometimes fails seems to indicate a data-driven issue.

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.