Ok - this is getting ridiculous. I'm trying to create a very simple web service in VFP.
My server "GComAppDev" - Win2K - IIS5 - SOAP2sp2 - VFP7 runtimes
My local machine - Win2K - VFP7 - SOAP2 sp2
Here is what I do.
I have a prg based class as follows:
DEFINE CLASS gcomws AS SESSION OLEPUBLIC
NAME = "gcomws"
PROCEDURE DoTest() AS STRING
RETURN "This is a test from the web service"
ENDPROC
ENDDEF
1 - I create project, compile this into single-threaded dll DIRECTLY to my web folder which happens to be mapped from my local machine. I check and .dll, .tlb, and .vbr files are there.
I can instantiate dll from VFP directly and it works fine
2 - ON SERVER - I regsvr32 the dll - it succeeds
2 - I make sure the DLL has I-USER and I_WAM rights - full control
3 - ON MY MACHINE = I open the VFP Web Service Publisher via right clicking the project and choosing builders
4 - for COM Server I enter "H:\appdev\web\portal\gcomws.dll" - which is full path to where I just built my dll (H is a mapped drive)
5 - I note that my one class "gcomws" is selected in "Select Class" - no option to change that
6 - I click advanced tab and set up as follows:
URL:
http://gcomappdev/portal/gcomws.WSDL (this is correct w/ virtual directory)
FIle: h:\appdev\web\portal\gcomws.wsdl (it won't let me use \\appdev\)
Listener: ISAPI
Intellisense Scripts: is checked Name:gcomws
other boxes are unchecked
7 - I generate and get no errors
8 - In VFP command window I enter
o=Createobject("mssoap.soapclient")
o.mssoapinit("http://gcomappdev/portal/gcomws.wsdl", "",'')
so far so good
9 - now I try "? o.DoTest()" and get an error:
OLE IDispatchexception code 0 from SOAP-ENV:Server:
WSDLOperation: Instantiating the dispatch object for method
DoTest failed..
ARGHHH!!!!! what am I missing?
TIA,
Ken B. Matson
GCom2 Solutions