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.  troubles defining index

    Posted Tue June 10, 2008 04:21 PM

    Hi, I have a hugh scheme about 15000 lines. I can define it in tamino without troubles, but it crashes when I add an standar Index.

    The error message is

    Line 12column 5 is :

    Line 14883 is:

    Line 15124 is:

    The troubles came when I define the index.
    Anyone knows the solution to my trouble?
    Thanks and forgive my very bad English
    Flush


    #Tamino
    #API-Management
    #webMethods


  • 2.  RE: troubles defining index

    Posted Tue June 10, 2008 05:07 PM

    It only happens in Tamino 4.4.1.5. It works in Tamino 4.2.1.


    #Tamino
    #webMethods
    #API-Management


  • 3.  RE: troubles defining index

    Posted Wed June 11, 2008 07:40 AM

    Hi,

    yes, Tamino 4.4 has corrected some gaps in the type checking. You seem to be defining an index on all occurrences of “id”? Unfortunately, I do not see teh index definition in your snippets
    The issue is that not all the id instances have the same type (in one case anyType, in the other integer), and hence you cannot define an index that contains both. So either define a more specific index (not including both occurrences, but e.g. a separate index for both of them) or make them have the same or a compatible type

    Regards

    Harald


    #webMethods
    #Tamino
    #API-Management


  • 4.  RE: troubles defining index

    Posted Wed June 11, 2008 10:10 AM

    Thanks for your answer

    The index definition is in the last snippet. I thought that the way for being more specific was the which tag.

    Well, as we have no easy way to solve this (Too much changes in our tsd for us :D), we will use Tamino 4.2

    Thanks Again.

    flush


    #API-Management
    #Tamino
    #webMethods


  • 5.  RE: troubles defining index

    Posted Wed June 11, 2008 11:36 AM

    Hi,

    I suggest adding the following attribute to your root element:

            blockDefault="#all"
    

    Explanation:
    as Tamino 4.4 has full support for xsi:type, it has to take care that different types possibly being used/referenced via xsi:type have consistent declarations also for their respective child elements. This covers not just the logical schema but also physical properties like index definitions. With the additional attribute above usage of xsi:type is completely forbidden. I hope, that is ok for your application.
    It will lead to the same behaviour as in Tamino 4.2 - unfortunately, it is not the default as of XML Schema.

    Otherwise you may need to use the block=“#all” on a specific element.
    Or, simply provide your complete schema with and without the intended modification and I’ll have a look.
    Best regards
    Uli


    #webMethods
    #API-Management
    #Tamino