I’ve written an LotusScript agent that uses a web service consumer to consume a .Net web service.
I’m having a bit of trouble in pushing data to the .Net web service.
The trouble I’m having with is to do with using class objects.
Basics of my agent’s code:
Sub pushData( )
On Error Goto myErrorHandler
currentLog.LogAction “Sub: pushData() - started”
Dim webService As New IAppService_n1
Dim results_xsd As New XSD_String( )
Dim dataObj As New NAV_Data_n1 ’ NAV_Data_n1 has the class object
Dim tmpValue As New XSD_String( )
tmpValue.setValueFromString( “INSERT” )
Set dataObj.ActionType = tmpValue
tmpValue.setValueFromString( “123” )
Set dataObj.Ref = tmpValue
tmpValue.setValueFromString( “Some Data” )
Set dataObj.DataName = tmpValu
set results_xsd = webService.receiveData( dataObj )
Print "results: " + results_xsd.GetValueAsString
Goto quitMe
myErrorHandler:
currentLog.LogError Err , "Line: " + Cstr( Erl ) + ", code: " + Cstr( Err ) + ", msg: " + Error
Resume quitMe
quitMe:
currentLog.LogAction “Sub: pushData() - finished”
End Sub
The line “set results_xsd = webService.receiveData( dataObj )” is causing me headaches - the error message that I receive is:
“Code: 4747, msg: The Web Service IAppService_n1 method receiveData has returned a fault.”
Can someone give me an idea how to resolve this error?