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
  • 1.  xmlString to Document

    Posted Tue September 15, 2009 02:14 PM

    Hi dear community,

    I have one question for you.
    I’m not sure to well understood two services and their uses.

    What I want to do :

    I have in Input : a string that contains xmlString (And when I see the pipeline is ok, I get every information)
    I want in output : A document that I created from xsd file.

    So I get this :
    1/ one input as a String (xmlString) called it : myXmlString
    2/ one xsd document in the package : canonical.xsd.mySchema
    3/ one document in the package : canonical.doc.myDoc created from canonical.xsd.mySchema

    What I did

    Well I try this procedure

    1/ First step : pub.xml.xmlStringToXMLNode
    Input : xmldata = myXmlString and isXML = true
    Output : Node of type Object

    2/ Second step : pub.xml:xmlNodeToDocument
    Input : Node
    Output : Document

    The first step is ok, but the second step failed with java.null.pointerexception.

    I don’t know exactly what happened, and also I’m not sure about both service uses. Maybe I have forget sometimes ?

    There is one thing that is not cleared for me : what we don’t put somewhere canonical.xsd.mySchema or canonical.doc.myDoc


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


  • 2.  RE: xmlString to Document

    Posted Wed September 23, 2009 09:02 AM

    am not sure whether this provides u with the answer u expected.

    pub.xml:xmlNodeToDocument

    In this service, “document” does not mean the one which we created or imported.
    It is the IS document. For this u don need to create any doc-reference


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


  • 3.  RE: xmlString to Document

    Posted Thu October 01, 2009 08:34 AM

    In this case u dont need to create output document for pub.xml:xmlNodeToDocument at runtime this document is created and if u want to use the structure of this document than at run time u can copy its structure from pipeline and create a document that u can reference for future use.
    Hope this solves ur problem…


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