We are trying to consume ASP.NET webservice in lotusnotes. We have written the below code Shared Code → Script Libraries.
But, at line “service.invoke” we are getting the error "Webservice LotusNotesSeviceSoap_n0 method Helloworld error(403) forbidden.
Do i need to give any specific permission on the lotusnotes server to access the ASP.net webservice. Please suggest.
Const n0 = “http://tempuri.org/”
Class LotusNotesServiceSoap_n0 As PortTypeBase
Sub NEW
Call Service.Initialize (“HttpTempuriOrgLotusNotesService”, _
“LotusNotesService.LotusNotesServiceSoap”, “http://iisserver/testWebService/LotusNotesService.asmx”, _
“LotusNotesServiceSoap_n0”)
End Sub
Function HelloWorld() As XSD_STRING
Dim res As String
Set HelloWorldobj = Service.Invoke(“HelloWorld”)
res=HelloWorldobj.HelloWorld()
Messagebox res
End Function
End Class