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.  TaminoClient.replaceChild

    Posted 05/14/01 07:15 PM

    Please, assist with a working example of the replaceChild(…) method of the TaminoClient java class.

    Looking forward for you reply.
    Thank you.


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


  • 2.  RE: TaminoClient.replaceChild

    Posted 08/01/01 03:04 PM

    I have this in some test code:

    public static final void replace(int inoid, String number ) throws Exception {

    try{
    TaminoClient tamino = new TaminoClient( TAMINO_DB );
    tamino.setTrace(TRACE);
    TaminoResult tr = tamino.getByID(inoid, “Telephone”, “entry”);
    Document doc = tr.getDocument();

    BasicElement bnr=new BasicElement(doc,“nr”);
    bnr.appendChild(new BasicText(doc,number));
    NodeList nl = bnr.getChildNodes();


    System.out.println( “replace value = " + nl.item(0).getNodeValue() +” @“+inoid);

    tamino.replaceChild(”/Telephone/entry/@"+inoid,“entry/nr[5]”, bnr );

    }
    catch (com.softwareag.tamino.API.dom.TaminoError e){
    System.out.println("Tamino Error Text: " + e.errorText );
    System.out.println("Tamino Error Code: " + e.responseCode );

    }

    }


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