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.


#TechXchangePresenter
 View Only
  • 1.  UpDating a Schema

    Posted Thu January 31, 2002 11:29 AM

    Hi,
    I am trying to update the user profile which is already registred.To do this i have wirten the following code.
    I am calling a TaminoAPI thru the ActiveServerPAges.

    <%
    newdoc.loadXML( )
    set propelem = newdoc.documentelement
    propid = cint(strIno)
    dummy = propelem.setAttribute(“ino:id”, propid)
    Set propnode = newdoc.firstChild
    Set inosession = myTaminoU.StartSession(InoProtected, InoLockWaitDefault)
    Set updateresult = myTaminoU.Process(propnode, myurl)
    set upCommit = myTaminoU.commit()
    set upResult=myTaminoU.insert(newdoc)
    set upCommit=myTaminoU.commit()
    set inoseesion=myTaminoU.endsession()
    strResult=“Sucess fully updated”
    %>
    it is working some times and it is not working some times.but allways showing the message “Sucess fully updated”
    if any body can help me.please do it.
    Thanks
    RamRavi.


    #Tamino
    #API-Management
    #webMethods


  • 2.  RE: UpDating a Schema

    Posted Thu January 31, 2002 12:16 PM

    Your calls to the Tamino API return a TaminoResult object but you don’t check it for errors.

    Try changing your code to something like this:

    Set updateresult = myTaminoU.Process(propnode, myurl)
    if (updateresult.errorNo) {
    alert(updateresult.errorText);
    }

    [This message was edited by Bill Leeney on 31 Jan 2002 at 12:03.]


    #Tamino
    #API-Management
    #webMethods