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
  • 1.  Defining different telephone no. formats

    Posted Tue February 11, 2003 09:21 PM

    Hello everyone,

    I am looking for a way to store different telephone formats in the same element, depending on the country where the tel belongs to.

    I would basically like to have a tag that would store the tel, but depending on the code (one from a predefined list) the schema would know what “pattern” to validate it against.

    I am not sure at all how to go about this. The idea with the id “code” to distinguish the country probably won’t work. It’s just to illustrate my point.

    Thanks

    Peter


    #Tamino
    #webMethods
    #API-Management


  • 2.  RE: Defining different telephone no. formats

    Posted Wed February 12, 2003 09:47 AM

    I think this is not possible with XML Schema at all.
    There is some tool that might help: Schematron

    I never used it.


    #Tamino
    #webMethods
    #API-Management


  • 3.  RE: Defining different telephone no. formats

    Posted Wed February 12, 2003 11:32 PM

    Hello Peter,

    here is slightly off-topic alternative: perform the necessary validation programmatically using a Tamino Server Extension.

    This might not be as clean as a data model based solution, but it is a feasible approach.

    A trigger Server Extension can be called when inserting or updating documents, and I think that you could easily code the necessary checks.

    Please see the following documentation section for more details on triggers:
    C:\Program Files\Software AG\Tamino\Tamino 4.1.1.1\Documentation\servext\setypes.htm#setrig

    I hope that helps,
    Trevor.


    #Tamino
    #API-Management
    #webMethods


  • 4.  RE: Defining different telephone no. formats

    Posted Thu February 13, 2003 06:40 PM

    Thank you for all the replies.

    I guess for now I am going to stay away from server extension, because of lack of time to learn how to code them.

    I think I will wait till some better mechanism is introduced into tamino, such as the schematron or something else.

    Thank you,

    Peter


    #webMethods
    #Tamino
    #API-Management