Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Method not appearing in web service object
Message
From
11/12/2001 13:07:31
 
 
To
11/12/2001 12:41:14
Alexandre Palma
Harms Software, Inc.
Alverca, Portugal
General information
Forum:
Visual FoxPro
Category:
Web Services
Miscellaneous
Thread ID:
00592764
Message ID:
00592802
Views:
15
Thanks Alex

You solved this problem for me earlier and everything is now working:)

My problem was that I was registering the DLL from a network drive instead of from on drive C:

AS you pointed out the DLL was not registered properly.



>Mark on the computer where you have the web service running do you have also vfp if so try the following on VFP do lo=CREATEOBJECT("MyDLL.wsclass") then do ?lo.SendText()
>If you get an error then is a problem with the dll.
>
>
>>I am getting the following error method when trying to call the method sendtext in my web services com object
>>
>>
>>OLE IDispatch exception code 0 from SOAP-END:Server:
>>WSDLOperation: Instantiating the dispatch object for method
>>SendText failed
>>
>>
>>
>>Here is the code in my project
>>
>>DEFINE CLASS wsclass AS Session OLEPUBLIC
>>        * A function to add numbers together
>>        FUNCTION AddNumbers(tnNumber1 AS Number, tnNumber2 AS Number) AS Number
>>        RETURN tnNumber1 + tnNumber2
>>
>>        * A function to return a string
>>        FUNCTION SendText() AS String
>>        RETURN "This message has been brought to you by web services"
>>
>>ENDDEFINE
>>
>>Here is how I am calling it
>>
>>
>>PUBLIC lows,oWeb
>>loWS =NEWOBJECT("Wsclient",HOME()+"ffc\_webservices.vcx")
>>oWeb =loWS.SetupClient("http://TE17829/Webpub/wsclass.WSDL","","") &&,"wsclassSoapPort")
>>
>>? oweb.sendtext()
>>
>>It is the ? oweb.sendtext() in the above code that generates the error message
>>
>>I am hoping it is a problem with the DLL not registering properly and am working on that now.
>>
>>I have run REGSRV32 on my DLL and it says it has registered it but I wonder if it is telling me the truth:(
Previous
Reply
Map
View

Click here to load this message in the networking platform