Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Web Services Wizard running Application builder
Message
From
11/12/2001 08:36:14
 
 
To
11/12/2001 08:33:54
General information
Forum:
Visual FoxPro
Category:
Web Services
Miscellaneous
Thread ID:
00592573
Message ID:
00592603
Views:
17
Sorry had to repost this because I missed the exception code out the first time


>Thanks Alex and Ed
>
>I tried the following
>
>>
>>oWeb =loWS.SetupClient("http://TE17829/Webpub/wsclass.WSDL","wsclass web service",'')
>>or
>>oWeb =loWS.SetupClient("http://TE17829/Webpub/wsclass.WSDL","",'')
>>
>
>The first one complained it could not find the web service in the WSDL
>and the second one gave me the usual message shown in full below
>
>
>OLE IDispatch exception code 0 from SOAP-END:Server:
>WSDLOperation: Instantiating the dispatch object for method
>SendText failed
>>
>
>I am using version 2.00 of the SOAP toolkit rather than version 2.2 is that likely to make a difference?
>
>
>
>
>
>>Hi Mark do the following replace your setupclient call with this one
>>
>>oWeb =loWS.SetupClient("http://TE17829/Webpub/wsclass.WSDL","wsclass web service",'')
>>or
>>oWeb =loWS.SetupClient("http://TE17829/Webpub/wsclass.WSDL","",'')
>>
>>
>>if you look at the webservices wizard on thwe advance settings the intellinsence script name wby default is class name plus web service you can change this to only class name and your test will work or change the client code as above you decide.
>>
>>>Thanks Ed and Alex
>>>
>>>Using the info you provided I was able to run the builder directly.
>>>
>>>however when I try and run a method in my object I now get
>>>
>>>WSDLOperation: Instantiating the dispatch object for method AddNumbers 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","wsclass",'') &&,"wsclassSoapPort")    &&,"foxcentral", "foxcentralSoapPort")
>>>
>>>oweb.sendtext()
>>>
>>>any ideas?
>>>
>>>
>>>
>>>
>>>
>>>
>>>>>I am trying to follow Mike's web services article in VFUG but whenever I try and run the web services wizard it runs the Application builder wizard instead.
>>>>>
>>>>>This happens even if I choose the web services builder from the wizards menu.
>>>>>
>>>>>I need to demo this tomorrow at the developers meeting so all help most gratefully received.
>>>>
>>>>It sounds like something has happened to the Wizards application or database - check under Tools/Options/File Location/Wizards to make sure you're pointed at the VFP 7 wizard.app file, and that the WIZARD.DBF file in the Wizards subfolder is intact and uncorrupted. You may want to recompile the app or copy it and the Wizards folder over from the distribution fresh.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform