7

文字列のリスト(ワイドストリング)を返すListと呼ばれるメソッドを持つdll Webサービス(Delphiで作成)があります。

サービスを利用するためのクライアント アプリケーションを作成せずに、そのサービスを呼び出す方法はありますか?

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

4

2 に答える 2

11

Chrome アプリのPostmanは SOAP リクエストを送信できます。Web サービスの URL を指定し、POST を選択し、適切なコンテンツ タイプ ヘッダー (text/xml、application/soap+xml など) を設定し、要求で適切な xml ソープ ボディを提供するだけです。[送信] をクリックします。

以下は、無料の天気予報 Web サービスに投稿するリクエストの例です。

ここに画像の説明を入力

于 2014-10-23T14:30:43.907 に答える
-1

リクエストは次のようになります。

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

そして、応答は次のようになります。

<?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>
于 2015-06-08T11:30:13.867 に答える