webMethods

webMethods

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

fail when addBodyEntry

  • 1.  fail when addBodyEntry

    Posted Fri March 18, 2011 12:21 PM

    Hi All,
    Appreciate your advice for the problem I facing now.

    I tried to create a soap data and add the body entry. below is my sequence:

    1. CreateSoapData

    2. XmlStringToXmlNode
      3)addBodyEntry

      My problem is, for incoming xml data that having special character for instance (&), when I tried add the body entry after convert to xml node, it will thrown error below.

    com.wm.app.b2b.server.SOAPException: [ISS.0088.9131] Invalid node: must be well-formed XML

    this is due to the special character that causes the error above.

    I tried to replace (&) with & and it gone thru the addBodyEntry.

    When I fire soapHTTP to the backend, the receiver will receive xml data only value (&) OR they will received (&amp)?

    Any way to resolved this issue? Please advice. Thanks.


    #webMethods
    #API-Management
    #soa


  • 2.  RE: fail when addBodyEntry

    Posted Wed August 27, 2014 11:30 AM

    set the encode to true when you invoke the service XmlStringToXmlNode


    #API-Management
    #webMethods
    #soa


  • 3.  RE: fail when addBodyEntry

    Posted Wed August 27, 2014 12:42 PM

    Enable encoding in the service for characters like &, <, >


    #webMethods
    #API-Management
    #soa