Hi Guys
Our existing VFP Apps consume many different web services from banks, finance houses, insurance companies etc and we use West-Wind to fill in the gaps very effectively.
We have tried & tried to use our existing West-Wind setups in Lianja but they just don't seem compatible. None of the prgs or classes will run and the #INCLUDE statements don't seem to work etc etc. and there are lots of creashes.
So we are trying to use Lianja for simple HTTP GETs but struggling with that too. For instance our existing UK parameterised postcode lookup code of :
lpostcode = "CW82BA" && valid UK postcode
lidentifier = "41.42.43.44" && relevant IP
lusername = "someusername"
lpassword = "somepassword")
loSOAP.AddParameter("postcode",lpostcode)
loSOAP.AddParameter("identifier",lidentifier)
loSOAP.AddParameter("username", lusername)
loSOAP.AddParameter("password", lpassword)
lcXML = loSOAP.CallWSDLMethod("getThrfareAddresses") && calls getThrfareAddresses method & works great
should work in Lianja as :
response = posturl("http://www.postcoderwebsoap.co.uk/websoap/websoap.php/getThrfareAddresses", 30,array("type" => "Content-Type: application/x-www-form-urlencoded"), ;
"postcode=lpostcode&identifier=lidentifier"&userna me=lusername&password=lpassword")
returns nothing but no error
Also tried
response = posturl("http://www.postcoderwebsoap.co.uk/websoap/websoap.php/getThrfareAddresses", 30, ;
array("type" => "Content-Type: text/xml"), ;
"PostcodeSend.xml")
where PostCodeSend has all the parameters in an xml file or a variable.
Same answer - returns nothing....
This is about as simple as it gets - what are we missing?
Thanks in advance
SprinBox
Bookmarks