How to call the webservice method for testing, for example. from browser

There is a webservice dll (with Delphi) that has a List method that returns a list of strings (widestring).

Is there any method to call this service without having to write a client application to use it?

Example: http://misitio.com:8080/miwebservice.dll?methodname=list

+6
source share
2 answers

The Chrome Postman app can send SOAP requests. You just need to specify the web service URL, select POST, set the correct content type header (text / xml, application / soap + xml, etc.) and provide the correct xml soap body in the request. Click Submit.

The following is an example of a query that places in a free weather web service .

enter image description here

+8
source

Your query might look something like this:

POST /WeatherWS/Weather.asmx/GetCityWeatherByZIP HTTP/1.1 Host: wsf.cdyne.com Cache-Control: no-cache Postman-Token: e5bc46a4-71ac-f357-78a7-c4b4de894afb Content-Type: application/x-www-form-urlencoded ZIP=90210 

And the answer will be:

 <?xml version="1.0" encoding="utf-8"?> <WeatherReturn xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://ws.cdyne.com/WeatherWS/"> <Success>true</Success> <ResponseText>City Found</ResponseText> <State>CA</State> <City>Beverly Hills</City> <WeatherStationCity>Van Nuys</WeatherStationCity> <WeatherID>4</WeatherID> <Description>Sunny</Description> <Temperature>68</Temperature> <RelativeHumidity>54</RelativeHumidity> <Wind>CALM</Wind> <Pressure>29.89R</Pressure> <Visibility /> <WindChill /> <Remarks /> </WeatherReturn> 
-2
source

Source: https://habr.com/ru/post/950528/


All Articles