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.  Including XML tags

    Posted Fri July 15, 2005 06:55 PM

    I am using 4.6 and I am wondering if there is a trick to convert a document to an XML file to include empty XML tags for data that is not present in the source?

    I bring in a document that goes against a record reference and then is turned into an XML file. I want to see the XML layout even if there is no data for the fields. Thanks.


    #Integration-Server-and-ESB
    #webMethods
    #webMethods-General


  • 2.  RE: Including XML tags

    Posted Mon July 18, 2005 12:35 AM

    Hi eperry,

    Did u tried DocumentToXMLString ,give the documentTypeName& enable genwrateRequiredTags(In 6.1 we do like this )

    Thanks

    Kiran


    #Integration-Server-and-ESB
    #webMethods
    #webMethods-General


  • 3.  RE: Including XML tags

    Posted Mon July 18, 2005 11:00 AM

    Thank you very much Kiran for the advice, that gets me going in a direction.


    #Integration-Server-and-ESB
    #webMethods-General
    #webMethods


  • 4.  RE: Including XML tags

    Posted Mon July 18, 2005 12:20 PM

    The service pub.xml:documentToXMLString used to be called pub.web:recordToDocument. See the 4.6 Built In Services Manual for details (parameters were recordName and generateRequiredTags).

    Cheers,
    Fred


    #webMethods-General
    #webMethods
    #Integration-Server-and-ESB