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
  • 1.  Could not access elements wthin a document

    Posted 08/19/05 01:45 PM

    We are doing our first steps with tamino. Based on this, the described problem may be in front of the screen.

    We have to use a xsd which was designed externally. The type definitions inside the xsd are based on xs:extension, defining subclasses:

    <xs:complexType name=“type.swiss”>
    xs:complexContent
    <xs:extension base=“type.person”>

    The root is defined like this

    <xs:element name = “reportedPerson”>
    xs:complexType
    xs:sequence
    <xs:element name = “person” type = “type.person”></xs:element>

    a) We were able to build a matching tsd from the xsd.

    The tsd starts like this

    <xs:schema targetNamespace = “http://www.ech.ch/2004/ech-0011
    elementFormDefault = “qualified”
    xmlns = “http://www.ech.ch/2004/ech-0011
    xmlns:tsd = “http://namespaces.softwareag.com/tamino/TaminoSchemaDefinition
    xmlns:xs = “XML Schema
    xmlns:xsdconv = “http://namespaces.softwareag.com/tamino/TaminoSchemaEditor/ConverterXSDToTSD”>

    b) We were able to load testdocuments into tamino, using the interactive interface.
    c) When trying to display the document via X-plorer, we get a runtime error XPLXPE0058. We placed already a request on this.
    d) When trying to X-Query the collection, using just “/” we are able to retrieve all documents.
    e) When trying to access elements we fail, getting INOXIE8306

    The loaded document looks like this:



    4711

    Behaviour is the same when xsi:schemaLocation is omitted.

    Question: is it harmful for element retrieval to have xmlns, xmlns:xsi , xsi:schemaLocation in the root ?


    #webMethods
    #Tamino
    #API-Management


  • 2.  RE: Could not access elements wthin a document

    Posted 08/22/05 10:03 AM

    Hi,

    I don’t believe that your problems are caused by the xsi attributes. It might be that you are running into namespace problems. But to really understand your problem I would like to see your X-Query expression that is supposed to read elements in your “reportedPerson” doctype. In the meantime you can use the following XQuery expression:

    declare namespace xyz=”http://www.ech.ch/2004/ech-0011&#8221;

    input()/xyz:reportedPerson

    Best Regards,

    Thorsten Fiebig


    #Tamino
    #API-Management
    #webMethods


  • 3.  RE: Could not access elements wthin a document

    Posted 08/22/05 10:53 AM

    Thx for your comment.

    Here is the working x-query (plus result)

    <?xml version="1.0" encoding="windows-1252" ?>


    </xql:result>

    • <ino:cursor ino:handle=“1”>
      <ino:current ino:position=“1” ino:quantity=“1” />
      </ino:cursor>
    • <ino:message ino:returnvalue=“0”>
      ino:messagelinecursor fetched</ino:messageline>
      </ino:message>
      </ino:response>

    Here the access to person, which fails:

    <?xml version="1.0" encoding="windows-1252" ?>

    Thx in advance for further hints.
    Christian


    #API-Management
    #Tamino
    #webMethods


  • 4.  RE: Could not access elements wthin a document

    Posted 08/26/05 03:06 PM

    Local Software AG informed us, that the problem described should be fixed in Tamino Version 4.4.

    This feedback, just to keep the community informed.


    #Tamino
    #API-Management
    #webMethods