Consuming Web Services in the client

I am trying to get the Lotus Notes client (Using LS) to consume web services, I am using the MS SOAP to do this. If the web service only requires one parameter it works fine, however if it requires two or moe, it fails.

Example

Objname = “MSSOAP.SoapClient”

Set SoapObj = CreateObject(objname)

Call SoapObj.mssoapinit (“http://services.xmethods.net/soap/urn:xmethods-CurrencyExchange.wsdl”)

result = SoapObj.getRate(uk, usa)

I am guessing sending two or more parameters is a little more tricky, has anyone got idea’s

cheers

Rich

Subject: Consuming Web Services in the client

Ok, I was going to post a brand new thread on this topic today, but since it’s so similar to this one…

I need to consume a web service using a scheduled agent, Lotuscript preferably (so I don’t have to deal with JRE version issues). The web service will use SSL, so the protocol will have to be https. The server is windows 2003 server. Are there any issues with doing it in this manner? I’d prefer to use a Microsoft COM object instead of resorting to Java. This is new territory for me, so if anyone has any specific experience in this regard, I’d greatly appreciate some general guidance.

Thanks,

J

Subject: RE: Consuming Web Services in the client

Search the forum for JSSE and SSL

Subject: Consuming Web Services in the client

shouldn’t be :

result = SoapObj.getRate(“uk usa”)

.::AleX::.

Subject: RE: Consuming Web Services in the client

Hi Alex,

I have tried your suggestion and still get an error

code:

Objname = “MSSOAP.SoapClient”

Set SoapObj = CreateObject(objname)

'Initialize connection to the WSDL file

Call SoapObj.mssoapinit ("http://services.xmethods.net/soap/urn:xmethods-CurrencyExchange.wsdl")





result = SoapObj.getRate("great britain usa")

Subject: Consuming Web Services in the client

What does your WSDL file define as the number of paramaters that can be passed into this web service function. Furthermore what does your WSDL file define as the format? For example, if mulitple paramaters are allowed, should they defined as a string delimeted paramater instead of the mulitple paramaters you’re passing in now.

Subject: RE: Consuming Web Services in the client

Hi Brian

As far as I can tell (I am new to this) the ‘getRate’ operation

requires two parameters.

extract from WSDL below

operation name=“getRate” parameterOrder="country1 country2

I also change the code to pass two string values, this seemed to have no effect.

Subject: RE: Consuming Web Services in the client

I’ll take a look at your wsdl and get back with you.