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

How to default attribute in XML when defined in schema

  • 1.  How to default attribute in XML when defined in schema

    Posted 12/03/10 10:11 PM

    Hello Experts,

    Is there an easy way to default the attribute when it is already defined in the schema as a fixed or default value. I have tried everything I know and I cannot get this to work without actually mapping it.

    Basically I want the type=“CHAR” in the xml node PONUM to look like this:

    What I get with my testing is just the following

    or

    I cant seem to get the “CHAR” in there.


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


  • 2.  RE: How to default attribute in XML when defined in schema

    Posted 12/06/10 08:13 AM

    As of now there is no option. With xsd when you generate IS document, the schema that is getting created holds the Default/Fixed values for an element. But this is not reflecting anywhere in the IS document which we use to generate XML string for example.

    -Senthil


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