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

Result codes from TaminoResult

  • 1.  Result codes from TaminoResult

    Posted Thu July 26, 2001 10:30 PM

    Hopefully some of the Software AG developer/profis are reading this one. Are the result codes documented within the documentation anywhere? Perhaps others have made their own “cross-reference”. Something like 8300 means nothing to me. Yes, I know I can get the text message, but application message text change from time to time. The codes are typically more stable. Is there documentation for the result codes? I believe the method is TaminoResult.getResultCode(), but I don’t have my reference with me, so don’t kill me. :slight_smile: Please.

    Any help would be appreciated.

    Terry


    #API-Management
    #webMethods-Tamino-XML-Server-APIs
    #webMethods


  • 2.  RE: Result codes from TaminoResult

    Posted Tue July 31, 2001 04:04 PM

    I think you mean the

    TaminoResult.getReturnValue()

    method, the codes of which are described in ‘Messages and Codes’ in the documentation.


    #webMethods
    #webMethods-Tamino-XML-Server-APIs
    #API-Management


  • 3.  RE: Result codes from TaminoResult

    Posted Thu August 02, 2001 10:58 AM

    Yes, now I have been corrected. I was only reading the API documentation, and wondered why it only said, “This returns the ino:return value as a string object.”

    Thank you for the information. :slight_smile:


    #API-Management
    #webMethods-Tamino-XML-Server-APIs
    #webMethods


  • 4.  RE: Result codes from TaminoResult

    Posted Thu August 30, 2001 08:27 AM

    I believe that you can see the result document that was returned by Tamino by doing a TaminoResult.toXmlString() operation. However, this will be result->DOM->string but it should be very similar to what was returned. Doesn’t help understand the error codes though. The “return value” is just the “code number”. Result codes are typically “subsystem” + “code number”.


    #webMethods-Tamino-XML-Server-APIs
    #API-Management
    #webMethods


  • 5.  RE: Result codes from TaminoResult

    Posted Mon September 03, 2001 04:18 PM

    Hi,I got the result through toXmlString,but i still want to get every TEXT_NODE’s value for update.to me ,I thought in the DOM API for java ,TaminoResult’s method is limited to use,or i couldn’t find the solution,Anyone can give me the answer?
    Thanks for a lot!


    #webMethods
    #API-Management
    #webMethods-Tamino-XML-Server-APIs


  • 6.  RE: Result codes from TaminoResult

    Posted Mon September 03, 2001 04:25 PM


    I got the result through toXmlString,but how to go on retrieving the element’s value?

    Hi,I got the result through toXmlString,but i still want to get every TEXT_NODE’s value for update.to me ,I thought in the DOM API for java ,TaminoResult’s method is limited to use,or i couldn’t find the solution,Anyone can give me the answer?

    I don’t quite get the question - could you please rephrase it - It seems a bit garbled.

    You’re not talking about the error text now?


    #webMethods
    #webMethods-Tamino-XML-Server-APIs
    #API-Management


  • 7.  RE: Result codes from TaminoResult

    Posted Tue September 04, 2001 03:37 AM

    hello,Nigel Hutchison
    for me,the code is
    _________________________________________________
    TaminoClient tamino;
    try{
    tamino=new TaminoClient(“http://localhost/tamino/test/Hospital”);
    tamino.setPageSize(5);
    tamino.startSession();


    try {
    TaminoResult tr = tamino.query(“/patient”);
    Document doc = tr.getDocument();
    Element patient = (Element)tr.getElement().getFirstChild();
    Element lastName = (Element)patient.getElementsByTagName(“surname”).item(0);
    System.out.println(“FirstName”+FirstName);
    Element FirstName= (Element)patient.getElementsByTagName(“firstname”).item(0);
    }
    catch(Throwable th) {
    th.printStackTrace(System.out);
    }
    }
    catch(TaminoError e)
    {System.out.println("Tamino Error Text: " + e.errorText );
    System.out.println("Tamino Error Code: " + e.responseCode );
    }______________________________________________

    and the result print on console is:
    firstNamedfgdfh ,but i want to get the text “dfgdfh”,I found the DOM API for java,but I couldn’t find it!
    could you understand me?
    thank you very much!


    #API-Management
    #webMethods-Tamino-XML-Server-APIs
    #webMethods


  • 8.  RE: Result codes from TaminoResult

    Posted Tue September 04, 2001 10:01 AM

    Element FirstName= (Element)patient.getElementsByTagName(“firstname”).item(0);

    Gets the element FirstName - the text value which is in a text node which should be the first child of the element.

    System.out.println(“FirstName”
    +FirstName.getFirstChild().getNodeValue());

    should work

    see http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/java-language-binding.html


    #API-Management
    #webMethods-Tamino-XML-Server-APIs
    #webMethods


  • 9.  RE: Result codes from TaminoResult

    Posted Tue September 04, 2001 01:47 PM

    hello,Nigel Hutchison:
    thanks a lot for your answer and what you give me the URL,that’s my want!and it’s work!
    Best wish for you!
    melon


    #webMethods-Tamino-XML-Server-APIs
    #API-Management
    #webMethods