Generate Unique Schema Types RRS feed

  • Question

  • Hello!

    In the "Consume Adapter Service" dialog box, on the bottom left corner of the form, there is a check box that says "Generate Unique Schema Types".  I cannot not find anything in the documentation that indicates what this does, what it is used for, or when to use it and when not to use it.  In the screen shots of the help files this check box does not appear, so I am guessing that this is a new feature and the documentation just hasn't been updated.


    Can someone please explain what this check box does and when and when not to use it?



    Friday, January 25, 2008 2:03 PM

All replies

  • Hi!

    Scenario why this was required:
    (a) you create a new BTS project
    (b) you generate metadata for an operation O1, containing a parameter which is of a complex type CT1.
    (c) you close the add adapter service wizard
    (d) you re-open the add adapter service wizard, and generate metadata for an operation O2, which contains a parameter, also of complex type CT1
    (e) you close the add adapter service wizard.

    Now, what you will see is that the complex type CT1 has been defined twice (in different XSD files). This can lead to compilation errors.

    Hence, this setting "Generate unique schema types".

    At step (b) above, after the metadata has been generated, but before the XSD files are created, complex type CT1 is renamed to something like CT1_GUID1. At step (d) above, complex type CT1 is renamed to something like CT1_GUID2. Since the names are not conflicting anymore, there are no compilation errors.

    Recommendation - if you want to generate schemas for multiple operations, you should generate them at the same time (so that there is just one definition for complex type CT1 (no renaming)).

    Saturday, January 26, 2008 7:10 AM
  • Hi,


    Which version of the documents are you using? If you look at the documents that are included with NovCTP and RC drops, they contain the updated screenshots followed by a note specifically for this option.




    Monday, January 28, 2008 1:43 AM
  • This is used if you are selecting multiple operations in "Available categories and operations" section in the Consume Adapter Service Wizard. In the process to generate multiple schemas, one or more elements may be duplicated in the schemas resulting in compilation failure for the BizTalk Server project. You can avoid this by selecting the "Generate Unique Schema Type" check box to ensure that schema types are generated with unique namespaces.


    Thursday, January 29, 2015 8:33 PM