IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

INVALID SOAP REQUEST SOAP Fault : org.apache.axiom.om.OMException: com.ctc.wstx.exc.WstxParsingException: Unexpected close tag ; expected . at [row,col {unknown-source}]: [11,107]

  • 1.  INVALID SOAP REQUEST SOAP Fault : org.apache.axiom.om.OMException: com.ctc.wstx.exc.WstxParsingException: Unexpected close tag ; expected . at [row,col {unknown-source}]: [11,107]

    Posted Mon October 30, 2023 10:37 PM

    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


    #webMethods
    #Integration-Server-and-ESB


  • 2.  RE: INVALID SOAP REQUEST SOAP Fault : org.apache.axiom.om.OMException: com.ctc.wstx.exc.WstxParsingException: Unexpected close tag ; expected . at [row,col {unknown-source}]: [11,107]

    Posted Tue October 31, 2023 01:00 AM

    @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


    #webMethods
    #Integration-Server-and-ESB


  • 3.  RE: INVALID SOAP REQUEST SOAP Fault : org.apache.axiom.om.OMException: com.ctc.wstx.exc.WstxParsingException: Unexpected close tag ; expected . at [row,col {unknown-source}]: [11,107]

    Posted Tue October 31, 2023 09:42 AM

    Hi,

    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.

    Regards,
    Holger


    #Integration-Server-and-ESB
    #webMethods


  • 4.  RE: INVALID SOAP REQUEST SOAP Fault : org.apache.axiom.om.OMException: com.ctc.wstx.exc.WstxParsingException: Unexpected close tag ; expected . at [row,col {unknown-source}]: [11,107]

    Posted Tue October 31, 2023 10:43 AM

    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.


    #Integration-Server-and-ESB
    #webMethods