Accessing a web service

I’m trying to access and write to a web service in LotusScript. I have the WSDL for the service, and have parts of the class defined, but I’ve run into problems.

The web service was specifically written to be called from inside Outlook to save messages to Sharepoint folders. It has lots of methods which either return of need parameters of type “MSXML2.IXMLDOMNodeList”. Every time I try to instantiate an IXMLDOMNodeList, I get the errror “Cannot create automation object”

Any ideas on how to get a handle on these these in LS?

Subject: Accessing a web service

Hi,

I know this is too late reply. But, it might be helpful to others.

I recently learned web service and had researched this kind of issue and I found the answer here …

http://datatribesoftwerks.com/members/datatribe/DatatribeBlog.nsf/archive/20060918-0769DD

Basically, you have to use the functions length() to get the number of nodes and then use item() to iterate on each using nodeName() and text() to get the values you need.

much like this (from the site mentioned above):

Dim Nodes as variant

set Nodes = soapClient.MyOperation(“myParms”) 'change this according to your WSDL

for i = 0 to Nodes.length()-1

 strResponse = strResponse + Nodes.item(i).nodeName()  + "=" + Nodes.item(i).text() + chr(13)

next

msgbox strResponse


HTH,

Chiqui