Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Web Services Wizard running Application builder
Message
De
11/12/2001 08:07:22
Alexandre Palma
Harms Software, Inc.
Alverca, Portugal
 
 
À
11/12/2001 07:48:03
Information générale
Forum:
Visual FoxPro
Catégorie:
Web Services
Divers
Thread ID:
00592573
Message ID:
00592592
Vues:
17
This message has been marked as a message which has helped to the initial question of the thread.
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.
Alexandre Palma
Senior Application Architect
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform