Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Does the UT web service work?
Message
De
04/08/2005 12:14:06
Mike Sue-Ping
Cambridge, Ontario, Canada
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Web Services
Titre:
Does the UT web service work?
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01038567
Message ID:
01038567
Vues:
72
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform