Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Does the UT web service work?
Message
From
04/08/2005 12:14:06
Mike Sue-Ping
Cambridge, Ontario, Canada
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Web Services
Title:
Does the UT web service work?
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01038567
Message ID:
01038567
Views:
74
Hi,

I'm trying to use the UT web service from a VFP program. The information on the web site shows some sample VFP code which I tried. It does not work and throws the error:
OLE IDispatch exception code 0 from ?: Server was unable to 
process request.--> The underlying connection was closed:
The server committed an HTTP protocol violation...
Here is the code that I copied from the web site. Of course I used my own username and password to login (and that works because it returns .T.).
* Create the SOAP object
loUniversalThread=Createobject("mssoap.soapclient30")
loUniversalThread.mssoapinit("http://www.levelextreme.com/WebService/universalthread.asmx?WSDL")

lcUsername='something'
lcPassword='something'

* Do the login
loUniversalThread.Login(lcUsername,lcPassword)

* Call a method
* Get the message for one day
lcXML=loUniversalThread.GetMessage(DATE(),5)
Can anyone get this code to work? It fails on the GetMessage() method.

TIA

Regards,

Mike
Next
Reply
Map
View

Click here to load this message in the networking platform