Hi
I am trying to execute a Following method, This method returns a TaminoDocument. I have collection ‘AccidentReporting’ and an existing ino:id. I am getting an error in t_document (TaminoDocument) Base uri NotSupportedException.
Does it mean that TaminoUri / command.Retrive method is not suported. But there is good enough documentation so I thought there is implementation.
If any one has used it please let me know the fix.
Thanks
Jay
Public Function GetTaminoDocument(ByVal s_collection As String, _
ByVal s_inoId As String) As TaminoDocument
'Precondition check
If (s_collection Is Nothing Or s_inoId Is Nothing) Then
'Throw Error message
Throw New Exception(" Pre condition check Failed")
End If
Dim t_connection As TaminoConnection
Dim t_qResponse As TaminoQueryResponse
Try
'Create Tamino connection
t_connection = GetTaminoConnection()
'open connection
t_connection.Open(TaminoConnectionMode.AutoCommit)
’ create command for collection
Dim t_command As TaminoCommand _
= t_connection.CreateCommand(s_collection)
Dim t_taminoUri As TaminoUri = New TaminoUri(“./Form12209/@” & s_inoId)
Dim t_document As TaminoDocument = t_command.Retrieve(t_taminoUri)
Return t_document
Catch Ex As Exception
Console.Write(Ex.StackTrace)
End Try
End Function
#webMethods#API-Management#webMethods-Tamino-XML-Server-APIs