PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WEBDEV 2024 → Calling webservice with parameters from browser
Calling webservice with parameters from browser
Débuté par Alfons, 02 déc. 2016 11:52 - 1 réponse
Posté le 02 décembre 2016 - 11:52
Hello,

I have a webservice with two parameters and I want that from a browser (without having to fill a form) you can make a call such as:

Http: //arm-pc/CFSATV30_WEBSERVICES_WEB/awws/ServicesToRouteAssignation.htm? SUser = ALBERTO & sRouteCode = 02

The problem is that this syntax is not accepted by the WebService created with WebDev. What should be the call to run the WebService with parameters directly?

Thank you very much
Alfons
Posté le 02 décembre 2016 - 14:05
Hi Alfons,

Http:
//arm-pc/CFSATV30_WEBSERVICES_WEB/awws/ServicesToRouteAssignation.htm?
SUser = ALBERTO & sRouteCode = 02


This type of call is for REST type webservice. The ones created with
windev or webdev are SOAP type and use something completely diferent and
not directly callable from browser.

To do what you want, you need to forget the webservice mode proposed by
webdev, and instead simply create an awp page accepting your parameter
and returning whatever you need to return with stringdisplay. That is in
fact a REST type webservice.

I'm using that system in wxreplication, and also on my web site to
confirm a user account creation.

Best regards


--
Fabrice Harari
Consultant WinDev, WebDev et WinDev Mobile International

A votre disposition : WXShowroom.com, WXReplication (open source) et
maintenant WXEDM (open source)

Plus d'information sur http://fabriceharari.com