1

.net を使用して Web サービスに接続しようとしています。

このための「設計図」があります。ただし、それはPHPです。.net を使用してこれを行いたいのですが、基本的に Visual Studio がありません。WebMatrix を実行しています。

ASP.Netフォーラムをチェックしたところ、そこでこの回答が得られました

「WebMatrix は、Web 参照を管理するためのツールを提供していません。Visual Studio で Razor Web ページ サイトを開き、代わりにそれを使用してください。」

SO からこのLINKを取得しまし たが、これは素晴らしいですが、目的を果たせず、システムに Visual Studio をインストールできません。Web Matrix を回避する方法を見つけなければなりません。

ここにPHPコードがあります

<?php


//1. Include soap library
require_once('lib/nusoap.php');

//2. instantiate soapclient class with the url of the soap server 
$client = new nusoap_client("URL for wsdl");

//3. Make a call to the web service
//the parameters to the Web Service must be encapsulated in an array in which the keys are the names defined for the service
$result = $client->call("Parameters to the Web Service));

//Display your result
echo "the latitude is ".$result;

?>
4

1 に答える 1

0

無料 (登録が必要) の Visual Studio Express for Web を使用して、関連するサービス参照を追加し、プロキシ クライアントを生成できない場合は、必要なコードを生成するために使用できるSvcUtil.exeというコマンド ライン ツールがあります。あなた。

于 2013-08-08T08:54:21.437 に答える