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.  define schema via http

    Posted Tue January 15, 2002 02:37 PM

    hi,
    i try to define a schema without using the tamino schema editor or the tamino interactive interface.
    When i delete a schema it works with:
    http://localhost/tamino/db/ino:collection?_undefine=test/testfahrzeug

    When i try to define this schema i use:
    <A HREF=“http://localhost/tamino/db/ino:collection?_define=“c:\test\test-schema.xml”” TARGET=_blank>http://localhost/tamino/db/ino:collection?_define=“c:\test\test-schema.xml”

    i get the following response:
    - <ino:message ino:returnvalue=“8906”>
    <ino:messagetext ino:code=“INOXSE8906”>XML parser failure for schema definition</ino:messagetext>
    ino:messagelineLine 1, Column 0: unclosed token</ino:messageline>
    </ino:message>

    any ideas, thanks for your help


    #API-Management
    #Tamino
    #webMethods


  • 2.  RE: define schema via http

    Posted Tue January 15, 2002 04:35 PM

    What Tamino is complaining about is that the string that comes after the _define= is not an XML document which is true:
    c:\test\test-schema.xml
    is not XML.

    What should come after the _define= is the XML itself.

    I guess the confusion comes from using the TII but this is a HTML form so when you click the button to define from TII, the browser reads in the file and appends it to the _define verb.

    hope this helps.


    #webMethods
    #Tamino
    #API-Management


  • 3.  RE: define schema via http

    Posted Wed January 16, 2002 07:04 AM

    Ok,
    i thought it could be something like this,
    but does anybody know how the TII appends the file test-schema.xml to the _define verb.
    When i use that file with the TII it works, so i’m sure that the file contains correct XML.


    #Tamino
    #API-Management
    #webMethods


  • 4.  RE: define schema via http

    Posted Wed January 16, 2002 11:07 AM

    The TII is just a HTML form that does a HTTP POST.

    The field for the “define” and the “process” are input type=“file” rather than input type=“text”. When you click to perform the define, IIS builds up a HTTP POST command with the body of the HTTP request containing name/value pair(s): the name is the Tamino verb and the value is simply the value.

    In the case of input type=“text”, Internet Explorer simply appends the value of the text field to the name, e.g.
    _xql=myquery[somethingelse=“A”]

    But for input type=“file”, the browser reads that file and appends the contents, e.g.:-
    _define=<xml version=…

    So this is something that is handled automatically by the browser and TII is just making a use of HTML forms.


    #API-Management
    #Tamino
    #webMethods