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.



#Automation


#Applicationintegration
#webMethods
#Integration
 View Only
Expand all | Collapse all

malformed XML Validation

  • 1.  malformed XML Validation

    Posted 03/03/14 09:03 AM

    Hi,
    When i try to convert a following malformed XML String into IS Document using pub.xml:xmlNodeToDocument the server is getting hanged.
    <abc:HandlerEvents xmlns: xsi="http:/

    but when i try the following xml string it is converting to Document.
    <abc:HandlerEvents xmlns: xsi=“http://www.w3schools.com/furniture

    inputs provide for pub.xml:xmlNodeToDocument service is:
    node–xml node
    makeArrays–>false
    documentTypeName

    Can anybody suggest me what is the root cause for this issue and how it can be overcome.

    Thanks
    Raveesh


    #Integration-Server-and-ESB
    #Flow-and-Java-services
    #webMethods


  • 2.  RE: malformed XML Validation

    Posted 03/03/14 09:48 AM

    Can u share the xml file? Let me have a look.


    #Integration-Server-and-ESB
    #Flow-and-Java-services
    #webMethods


  • 3.  RE: malformed XML Validation

    Posted 03/03/14 09:59 AM

    Hi mahesh,

    The XML file is having this much only.
    <abc:HandlerEvents xmlns: xsi="http:/


    #webMethods
    #Flow-and-Java-services
    #Integration-Server-and-ESB


  • 4.  RE: malformed XML Validation

    Posted 03/03/14 10:04 AM

    Strange :smiley:

    As per I know this is not a valid xml. From where did u receive this xml file?

    Can you explain what is your requirement and concern?


    #Integration-Server-and-ESB
    #webMethods
    #Flow-and-Java-services


  • 5.  RE: malformed XML Validation

    Posted 03/03/14 11:05 AM

    Hi Mahesh,

    This is as part of my unit testing,where i need to test a incomplete XML and check how the code behaves.
    xmlNodeToDocument is not able to parse this incomplete XML, infact the server is getting hanged because of this issue.

    <abc:HandlerEvents xmlns: xsi="http:/

    if i remove the '/ 'at last and process xmlNodeToDocument it will convert it to document without any issue.

    Thanks,
    Raveesh


    #webMethods
    #Flow-and-Java-services
    #Integration-Server-and-ESB


  • 6.  RE: malformed XML Validation

    Posted 03/03/14 11:33 AM

    before calling xmlNodeToDocument, you either have a node already or using StringToXmlNode to create the Node, is it producing the Node?


    #Flow-and-Java-services
    #webMethods
    #Integration-Server-and-ESB


  • 7.  RE: malformed XML Validation

    Posted 03/03/14 11:38 AM

    I tried to reproduce your testing with the below sample service like:

    WmPublic/pub.xml:xmlStringToXMLNode
    WmPublic/pub.xml:xmlNodeToDocument

    <abc:HandlerEvents xmlns: xsi="http:/ - server goes in hung state.

    <abc:HandlerEvents xmlns: xsi="http:/ (space after slash) - works fine

    <abc:HandlerEvents xmlns: xsi="http: - works fine

    Lets see what other experts say about this :smiley:


    #Flow-and-Java-services
    #webMethods
    #Integration-Server-and-ESB


  • 8.  RE: malformed XML Validation

    Posted 03/03/14 11:59 AM

    Hi Tong Wang,

    i am calling xmlStringToXMLNode service to get a node from the input xml string.After that am calling xmlNodeToDocument to convert it to a doc type.

    Thanks,
    Raveesh


    #Flow-and-Java-services
    #webMethods
    #Integration-Server-and-ESB


  • 9.  RE: malformed XML Validation

    Posted 03/03/14 01:18 PM

    Hi Mahesh,

    Thanks for the try…

    Even i tried with having double quotes at the end <abc:HandlerEvents xmlns: xsi=“http:/” this also works fine.

    But for this <abc:HandlerEvents xmlns: xsi="http:/ server will hang.

    What could be the reason please somebody suggest.

    Thanks,
    Raveesh


    #webMethods
    #Integration-Server-and-ESB
    #Flow-and-Java-services


  • 10.  RE: malformed XML Validation

    Posted 03/03/14 04:27 PM

    no matter what you feed into the service, Hanging is not acceptable. Pls open a ticket with SAG, so they can look into it.
    it should fail at the xmlStringToXMLNode step, IMO.


    #Integration-Server-and-ESB
    #Flow-and-Java-services
    #webMethods


  • 11.  RE: malformed XML Validation

    Posted 03/03/14 04:51 PM

    Yes the server hang behavior is strange and shouldn’t be in this case…

    BTW,what is your IS version and core fixes level?

    HTH,
    RMG


    #Integration-Server-and-ESB
    #Flow-and-Java-services
    #webMethods


  • 12.  RE: malformed XML Validation

    Posted 03/04/14 07:44 AM

    Hi rmg,

    Thanks for the suggestion…

    IS Version:8.2.1.0
    Fix:::IS_8.2_SP1_Core_Fix9

    regard,
    Raveesh


    #Flow-and-Java-services
    #webMethods
    #Integration-Server-and-ESB


  • 13.  RE: malformed XML Validation

    Posted 03/04/14 10:03 AM

    I don’t see this behavior on 822 at least…so contact SAG support about 821 and get it resolved.

    HTH,
    RMG


    #Flow-and-Java-services
    #Integration-Server-and-ESB
    #webMethods


  • 14.  RE: malformed XML Validation

    Posted 03/04/14 10:42 AM

    Really strange :slight_smile:

    Unknown and unexpected bug in the product version :stuck_out_tongue:

    @ Raveesh Nanjappa - Lets us know the status on this once you hear from SAG support.


    #webMethods
    #Flow-and-Java-services
    #Integration-Server-and-ESB