webMethods

webMethods

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
Expand all | Collapse all

Not getting names of documents when storing nonXML objects

  • 1.  Not getting names of documents when storing nonXML objects

    Posted Tue October 16, 2001 07:20 AM

    Hi All,
    I am facing a problem.
    I am able to store nonXML objects into xml database using both the tamino interactive interface and using the Java DOM API.

    But when i want to retrieve nonXML objects I am only able to retrieve using there id’s only, I am not able to retrieve using there names.
    i.e.
    http://localhost/tamino/myDB/Collection/XRay/@1
    works fine or
    http://localhost/tamino/myDB/Collection?_xql=XRay/@ino:id
    works fine, but if i want to retrieve names using the query:
    http://localhost/tamino/myDB/Collection?_xql=XRay/@ino:docname
    this doesn’t work.

    Can anyone tell me the possible solution why am I not able to retrieve objects using there names while I am able to retrieve using there id’s.

    Thanks and regards,
    Rajpal


    #webMethods
    #Tamino
    #API-Management


  • 2.  RE: Not getting names of documents when storing nonXML objects

    Posted Tue October 16, 2001 08:55 AM

    Which version of Tamino are you using?

    How exactly do you specify the names when you the nonXML instances?

    Please either quote the Java Source code that
    uses the DOM API or explain exactly who you do it using the Tamino Interactive interface - perhaps by posting a screen shot (or both)


    #webMethods
    #Tamino
    #API-Management


  • 3.  RE: Not getting names of documents when storing nonXML objects

    Posted Wed October 17, 2001 11:47 AM

    Hi,
    I am using a trial version of Tamino 2.3.1.4.
    In the Tamino Interactive Interface, when i store I just give the path of the nonXML object in the Process field as:
    c:\temp\test.doc

    While querying nonXML objects I just query by entering the following in the query field:
    /Xray
    where Xray is the doctype.

    Now this query returns me:

    - xql:result











    </xql:result>

    No document names are shown while the names are given.

    Could help me regarding this.
    Thanks in anticipation
    Rajpal

    quote:
    Originally posted by Nigel Hutchison:
    Which version of Tamino are you using?

    How exactly do you specify the names when you the nonXML instances?

    Please either quote the Java Source code that
    uses the DOM API or explain exactly who you do it using the Tamino Interactive interface - perhaps by posting a screen shot (or both)



    #API-Management
    #webMethods
    #Tamino


  • 4.  RE: Not getting names of documents when storing nonXML objects

    Posted Wed October 17, 2001 04:54 PM

    When you store the nonXML Documents, how are you storing them? Are you specifing a name? If you do not then when you query you will only get the ino:id and not the ino:docname, e.g:

    xql:result


    </xql:result>

    In this case the 2nd image I stored without a name.

    Could you show sample code that is storing the nonXML?

    From the TII to store a document with a name, specify something like the following in the Database URL field:
    http://localhost/tamino/myDB/Collection/XRay/Bone001.jpeg


    #webMethods
    #Tamino
    #API-Management