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

How to specify mandatory fields in documentTypeName ?

  • 1.  How to specify mandatory fields in documentTypeName ?

    Posted Thu June 11, 2009 01:47 PM

    When an XML string is created from a flat file using ‘documenttoXMLstring’ service, even empty tags are being included in the XML string. To eliminate this, the help document states the usage of generateRequiredTags as follows:

    generateRequiredTags -Flag indicating whether empty tags are to be included in the output document if a mandatory element appears in the document type specified in [FONT=PalatinoLinotype,Italic][SIZE=2][FONT=PalatinoLinotype,Italic][SIZE=2]documentTypeName [/size][/font][/SIZE][/FONT]but does not appear in [FONT=PalatinoLinotype,Italic][SIZE=2][FONT=PalatinoLinotype,Italic][SIZE=2]document[/size][/font][/SIZE][/FONT].

    Can somebody please elaborate on the usage of documentTypeName ? I can’t figure out how to mention the mandatory fields in documentTypeName.

    Thanks a prior
    Rashmi


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


  • 2.  RE: How to specify mandatory fields in documentTypeName ?

    Posted Thu June 11, 2009 08:20 PM

    In Document structure, you can specify the fields are required or not, so when you use generateRequiredTags flag, which specifies whether the required tags should present in output XML File or not.


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


  • 3.  RE: How to specify mandatory fields in documentTypeName ?

    Posted Fri June 12, 2009 07:51 PM

    Hello
    Open the document structure you created and click on the element for which you want to as mandatory.In the properties panel fields on the right hand side you can find a field ‘Required’. Set it true

    thanks
    Anil


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