Every few months I seem to have a need to do a web service and each time I seem to have to relearn it - I think I'm getting old! Enough of my whining, here's the problem on my latest "hello world".
I have a very simple Web Service that merely returns a wrapped up string (
www.johncunningham.info/s_test.htm for this server source). I have built an MTDLL on the server, and registered it. Howver, when I run the following test program:
*****
LOCAL loWSHandler AS Object
LOCAL loService AS "XML Web Service"
loWSHandler = NEWOBJECT("WSHandler",IIF(VERSION(2)=0,"",HOME()+"FFC\")+"_ws3client.vcx")
loService = loWSHandler.SetupClient ("
HTTP://www.johncunningham.info/soap/esser.WSDL")
?loService.Tester('Hello World')
***
..then on that last line I get the primary message "OLE IDispatch exception code 0 from Connector: Connector:Host not found. HRESULT=0x800A1521 - Client:An unanticipated error occurred during the processing". When I then ask for loService.FaultString, I get "Client:Incorrect number of parameters supplied for SOAP request".
Any ideas?