Hello
I was trying out the WEB Service example in VFP7 CD under technical article. Following is the code executed in PRG.
LOCAL x as myWServ1
LOCAL loWS
loWS = NEWOBJECT("Wsclient",HOME()+"ffc\_webservices.vcx")
loWS.cWSName = "myWServ1"
x = loWS.SetupClient ("http://YAJNAS/myWServ1/showem.WSDL", "showem", "showemSoapPort")
? x.justshow()
* JUSTSHOW() method code is the same as in Tech Article
This is not working for me and i am getting the following the error
OLE error code 0x800a13be: Unknown COM Status Code
Has anyone tried this example OR can tell me what went wrong OR what is wrong? PN: I have double checked my settings and have re-generated my COM server
After this un-successfull attempt i made another COM server with a method HELLO in which there was only one line of code -
=Messagebox("HELLO WORLD",0)
but this would not work as well. Following is the error message -
OLE IDispatch exception code 0 from SamCom.SamServer
SamCom.SamServer : SamServer.Hello
C:\Temp\Test2\SamServer.VCT Error in Line 3 UserInterface. Operation not allowed at this time
I later changed the code in Hello() to -
CREATE TABLE Test99 (name c(10),address c(100))
This worked well without giving any errors and also created the table.
Can anyone tell me why we cannot send the output to the screen directly or is this a BUG?
Sanjay Dhiraj Patel
MCSE, MCDBA
Net2Biz (Thailand)