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
  • 1.  Tamino Command.Insert

    Posted Thu June 29, 2006 11:28 AM

    Wonder if anyone can help me with this.

    Im trying a simple insert of documents however I get two different errors depending on where the source code is run.

    When the application is trying to insert into a remote server the code manages two inserts before the 3rd times out. This happens every time.

    When the application is trying to insert into a local server the code manages 10 inserts before returning the error 403:Forbidden. Again this happens everytime.

    I’m using Tamino .NET API 4.5.1 on Tamino Version 4.4

    Any ideas?

    
    Try
    'Open the source document
    lobjXMLSourceDoc = New XmlDocument
    lobjXMLSourceDoc.Load(strSource)
    'Create and Open the Connection
    lobjTaminoConnection = New TaminoConnection(strURL)
    'Open the connection
    lobjTaminoConnection.Open(TaminoConnectionMode.AutoCommit)
    'Create the Command 
    lobjTaminoCommand = lobjTaminoConnection.CreateCommand(strCollection)
    
    
    For Each lobjNode In lobjXMLSourceDoc.SelectSingleNode("documents")
    
    'Create The XML Document to insert
    lobjXMLInsertDoc = New XmlDocument
    lobjXMLInsertDoc.LoadXml(lobjNode.InnerXml)
    'Create the Tamino XML Document 
    lobjTaminoDocument = New TaminoDocument(lobjXMLInsertDoc)
    'Do the Insert
    lobjTaminoResponse = lobjTaminoCommand.Insert(lobjTaminoDocument)
    
    If lobjTaminoResponse.ReturnValue <> 0 Then
    Throw New Exception(lobjTaminoResponse.ErrorText)
    Exit For
    End If
    
    Console.WriteLine("Document Inserted...")
    
    Next
    lobjTaminoConnection.Close()
    mstrStatus = "Complete"
    Catch ex As Exception
    lobjTaminoConnection.Close()
    mstrStatus = ex.Message
    End Try

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


  • 2.  RE: Tamino Command.Insert

    Posted Thu June 29, 2006 02:00 PM

    Is the web server that you are using IIS?


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


  • 3.  RE: Tamino Command.Insert

    Posted Thu June 29, 2006 02:08 PM


  • 4.  RE: Tamino Command.Insert

    Posted Thu June 29, 2006 02:29 PM

    It is likely that IIS is limiting you to 10 simultaneous connections.

    It is likely that IIS has “Connection: KeepAlive” turned on too.


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