Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Login fails, sort of, to UT Web Service using Intellisense
Message
From
28/01/2002 09:21:41
 
 
To
All
General information
Forum:
Level Extreme
Category:
Other
Title:
Login fails, sort of, to UT Web Service using Intellisense
Miscellaneous
Thread ID:
00611500
Message ID:
00611500
Views:
32
When I run this code, the IF line returns .t., but the line right after ENDIF fails with "you must be logged on" error. ??? The same username and password work with the sample UT access code. Too bad: would make for a good demo of VFP's web services capabilities. (And yes, I can access other Web Services.)

Hank Fay
LOCAL loUT as UniversalThread
LOCAL loWS
ON error
loWS = NEWOBJECT("Wsclient",HOME()+"ffc\_webservices.vcx")
loWS.cWSName = "UniversalThread"
loUT = loWS.SetupClient("http://www.levelextreme.com/universalthread.wsdl", "UniversalThread", "WebServiceSoapPort")
lcUser = "<myusername>" && real username used in real code
lcPassword = "<mypwd>" && real password used in real code
IF !loUT.login(lcUser,lcPassword)
	is(loUT.Login(lcUser,lcPassword))
	RETURN
ENDIF
lcMsgs = loUT.GetMessage(DATE()-2)
=XMLTOCURSOR(lcMsgs,"_msgs")
SELECT _msgs
browse
Next
Reply
Map
View

Click here to load this message in the networking platform