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

Unable to create parseable xml file

  • 1.  Unable to create parseable xml file

    Posted Wed March 23, 2022 04:38 AM

    What product/components do you use and which version/fix level?

    Integration Server

    Are you using a free trial or a product with a customer license?

    Free Trial

    What are trying to achieve? Please describe in detail.

    I’m trying to parse xml file to my service but it is saying , “Unable to parse”
    so that i’m trying to convert my xml file to convert another xml file which is parse able.

    Do you get any error messages? Please provide a full error message screenshot and log file.

    new1.xml (4.2 KB)

    hi
    i am trying to convert an xml file to parseable xml file. could you please help me to identify where i’m going wrong.
    advance thanks for your help


    #Service-Designer
    #webMethods
    #Integration-Server-and-ESB


  • 2.  RE: Unable to create parseable xml file

    Posted Wed March 23, 2022 05:55 AM

    @hmafzal It would be helpful if you provide all the details

    • What product/components do you use and which version/fix level?
    • Are you using a free trial or a product with a customer license?
    • What are trying to achieve? Please describe in detail.
    • Do you get any error messages? Please provide a full error message screenshot and log file.
    • Have you installed latest fixes for the products

    And let me know in detail what do you mean by XML file to parseable XML, probably if you can provide a use case we could help you. Thanks

    Regards,
    Sree


    #Service-Designer
    #Integration-Server-and-ESB
    #webMethods


  • 3.  RE: Unable to create parseable xml file

    Posted Wed March 23, 2022 06:45 AM

    Hi Sreekanth
    Thanks
    I’m using a free trial version as i’m new to WM
    I’m trying to parse xml file to my service but it is saying , “Unable to parse”
    so that i’m trying to convert my xml file to convert another xml file which is parse able.
    I will greatly appreciate your help
    Regards
    hmafzal


    #Integration-Server-and-ESB
    #webMethods
    #Service-Designer


  • 4.  RE: Unable to create parseable xml file

    Posted Wed March 23, 2022 06:56 AM

    Hi @hmafzal
    I would agree with Sreekanth , the problem is unclear.
    Can you provide more details on these

    What is the exact input provided to service xmlStringToXMLNode in step 1 of your flow?
    What is the expected output from documentToXMLString in step 3?
    If you already have an xmlString as an input , then you can directly save that as a file , I’m wondering why you need to pass it through the different services?

    Which step of the flow are you seeing this error in? Is it in the first step?

    -NP


    #Integration-Server-and-ESB
    #webMethods
    #Service-Designer


  • 5.  RE: Unable to create parseable xml file

    Posted Wed March 23, 2022 06:59 AM

    Would you be able to attach the source XML file here?

    Thanks,
    Sree


    #Integration-Server-and-ESB
    #webMethods
    #Service-Designer


  • 6.  RE: Unable to create parseable xml file

    Posted Wed March 23, 2022 07:24 AM

    new1.xml (4.2 KB)

    this is the source file i’m trying to parse
    but its Unable to parse

    i want to make this file able to parse
    Regards
    hmafzal


    #Integration-Server-and-ESB
    #Service-Designer
    #webMethods


  • 7.  RE: Unable to create parseable xml file

    Posted Wed March 23, 2022 07:37 AM

    Did you check the validity of this XML? A simple validation of this XML is pointing errors in it. Probably, you will have correct the source XML and then everything should work as expected. Please give it a try.

    Thanks,
    Sree


    #webMethods
    #Service-Designer
    #Integration-Server-and-ESB


  • 8.  RE: Unable to create parseable xml file

    Posted Wed March 23, 2022 07:51 AM

    I’m afraid it is still unclear what you are trying to do with the flow that you’ve mentioned in the first post of this topic

    If you already have an xml string, I do not see the benefit of passing that to xmlStringToNode, followed by xmlNodeToDocument, then documentToXMLString, is this only to try out the public services, or is there a different usecase that you are trying.
    After passing a valid XML, do reach out if you need more help.

    -NP


    #webMethods
    #Service-Designer
    #Integration-Server-and-ESB


  • 9.  RE: Unable to create parseable xml file

    Posted Wed March 23, 2022 08:20 AM

    could you please check out my last reply


    #Service-Designer
    #Integration-Server-and-ESB
    #webMethods


  • 10.  RE: Unable to create parseable xml file

    Posted Wed March 23, 2022 08:59 AM

    I do not see any problem in providing both the files as input to the services you provided and it is working as expected.
    Maybe now is the time you will have to provide more details on the error you are facing. Give us the detailed error message, screenshots, pipeline, all that could help us analyze if there is really an issue.

    Thanks,
    Sree


    #webMethods
    #Integration-Server-and-ESB
    #Service-Designer


  • 11.  RE: Unable to create parseable xml file

    Posted Wed March 23, 2022 07:51 AM

    The problem is at line number 2, removing the @ and having "catalog xmlns:version=“1.0"”, then I am able to parse the document like a charm! Let me know if this helped.

    Thanks,
    Sree


    #Integration-Server-and-ESB
    #webMethods
    #Service-Designer


  • 12.  RE: Unable to create parseable xml file

    Posted Wed March 23, 2022 08:05 AM

    Thanks a lot
    Its working now
    Regards
    hmafzal


    #Integration-Server-and-ESB
    #Service-Designer
    #webMethods


  • 13.  RE: Unable to create parseable xml file

    Posted Wed March 23, 2022 08:19 AM

    hi Sreekanth
    could you please look at these two xml files, one is parse able the other is not, what i am looking is how to convert the non-parse able xml file to parse able xml file.
    Regards
    hmafzal
    parseable.xml (1.3 KB)

    nonparseable.xml (4.4 KB)

    Thanks


    #Service-Designer
    #webMethods
    #Integration-Server-and-ESB


  • 14.  RE: Unable to create parseable xml file

    Posted Wed March 23, 2022 10:53 AM

    Hi,

    the nonparseable.xml is considered a regular xml, which can be used as payload in WebServices (i.e. via SOAP_WS).
    The parseable.xml is an internal representation of an IS pipeline document which should not be exposed to external partner systems.

    Therefore I would like to ask you to provide some more details what you want to achieve with these xml files.

    Regards,
    Holger


    #webMethods
    #Service-Designer
    #Integration-Server-and-ESB


  • 15.  RE: Unable to create parseable xml file

    Posted Wed March 23, 2022 11:07 AM

    @Holger_von_Thomsen I clarified the doubts on the message he had sent to me. Things are working as expected now. :grinning:


    #Integration-Server-and-ESB
    #Service-Designer
    #webMethods


  • 16.  RE: Unable to create parseable xml file

    Posted Wed March 23, 2022 02:14 PM

    thanks to all
    you guys are amazing
    keep the good work
    Regards
    hmafzal


    #Integration-Server-and-ESB
    #Service-Designer
    #webMethods