I created a LotusScript agent to use the web service consumer. If I run the agent in the Notes client it works OK. If I run the agent from a web browser I get “Error loading USE or USELSX module: WebServiceConsumer”.
Can anyone shed any light on what I’m doing wrong?
Public SOURCE As String
Public CONTENT As String
Sub NEW
End Sub
End Class
Class Quotes As PortTypeBase
Sub NEW
Call Service.Initialize ("UrnDefaultNamespaceQuotesService", _
"QuotesService.Domino", "http://www.timtripcony.com:80/services.nsf/quotes?OpenWebService", _
"Quotes")
End Sub
Function GETRANDOMQUOTE() As QUOTE
Set GETRANDOMQUOTE = Service.Invoke("GETRANDOMQUOTE")
End Function
The “WebServiceConsumer” should be the name of your Web Service Consumer library. Maybe a typo?
Tested the script and it works fine. The only thing to note when running on the server is that the agent needs to be set to run on schedule NEVER and no documents processed.
It’s not a typo as the same agent works fine if I run it from the Actions menu in the Notes client. “WebServiceConsumer” is the name of my web service consumer!
Maybe something to do with my understanding of how they can be used.
I am testing the agent in a web browser simply using
I changed the agent to run on schedule never, with a target of “None”. In this instance I get the error “Unknown trigger and search type; agent may be corrupt”.
If I set the agent trigger to “Agent list selection” and a target of “none” I get the previously mentioned error “Error loading USE or USELSX module: WebServiceConsumer”