I’ve tried to find tutorials/documentation regarding consuming Web Services from Domino8, but there’s precious little around. Hello, IBM?!
I’ve succeeded with very basic services, but when I try to access Web Services requiring complex datatypes, I fail. I suspect I could have learned something from http://www-10.lotus.com/ldd/nd8forum.nsf/5f27803bba85d8e285256bf10054620d/5604b3c55a8acb848525755c0077a48b?OpenDocument&Highlight=0,wsdl , but I’m still struggling.
I’m trying to call this Web Service function from an agent:
Function sendSMS(in0 As StartInputDO_n2, in1 As XSD_STRING, in2 As XSD_LONG, Fault1 As WebServiceFault_n2) As VoidDO_n2
Set sendSMS = Service.Invoke(“sendSMS”, in0, in1, in2, Fault1)
End Function
My problem, I think, is how to build the data objects correctly. Here’s the definition for the main problem:
Class StartInputDO_n2 As XSD_ANYTYPE
Public clientVersion As XSD_STRING
Public useCache As XSD_BOOLEAN
Public clientMaxWait As XSD_LONG
Sub NEW
End Sub
End Class
Other possibly relevant parts of the Script Library generated from the WSDL:
Class WebServiceFault_n2 As WS_FAULT
Public serviceReference As XSD_STRING
Public faultLines As ArrayOfWebServiceFaultLine_n2
Public message As XSD_STRING
Public errorMessage As XSD_STRING
Sub NEW
End Sub
End Class
Const n2 = “http://framework1.company”
Const n1 = “http://framework2.company”
Const n0 = “http://framework3.company”
Class MyPortType_n1 As PortTypeBase
If there’s a tutorial anywhere with relevant examples, please point me towards it. I would also be happy if someone can suggest agent code, preferrably LotusScript, that will build the objects I need.
Oh, and I wondered whether I need to take special care with anything because there are several namespaces involved here?
Thank you!
Bjørn