Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problems Still with Web Services
Message
 
To
04/12/2002 12:02:55
General information
Forum:
Visual FoxPro
Category:
Web Services
Miscellaneous
Thread ID:
00729495
Message ID:
00729744
Views:
10
Try using the ASP publisher first. The ISAPI publisher doesn't work unless you manually configure the script maps.

Also make sure the COM object is properly registered and works on the remote machine. The easiest way to do this is to load it yourself from an ASP page and echo some data back.

+++ Rick ---

>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,
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Previous
Reply
Map
View

Click here to load this message in the networking platform