7

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

Is there any method for calling that service without having to write a client application for consuming it?.

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

Jan Doggen
  • 8,799
  • 13
  • 70
  • 144
NizamUlMulk
  • 386
  • 1
  • 4
  • 21
  • 1
    I don't understand the question. You want to call methods in the ws without writing a client application? Can't you do that by using a browser or maybe even curl? – Birger Jul 29 '13 at 13:04
  • 2
    you must use an application like SOAP UI or equivalents. – whosrdaddy Jul 29 '13 at 13:32
  • You have to describe more about how the webservice is built. For instance, if it was built with DataSnap and HTTP support, then you can use a web browser to call any of the methods. – James L. Jul 29 '13 at 22:56

2 Answers2

11

The Chrome App Postman can send SOAP requests. You just need to provide the Web Service URL, select POST, set the proper content-type header (text/xml, application/soap+xml, etc.), and provide the proper xml soap body in the request. Click Send.

Below is an example request which posts to a free weather web service.

enter image description here

James Lawruk
  • 30,112
  • 19
  • 130
  • 137
-1

Your request could be something like:

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 response 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>