1
.net을 사용하여 웹 서비스에 연결하려고합니다.WebMatrix에서 비누 클라이언트를 만드는 방법
나는 이것을위한 "청사진"을 가지고있다. 그러나 그것은 PHP에 있습니다. .NET을 사용하여이 작업을 수행하고 싶습니다. 기본적으로 Visual Studio가 없습니다. WebMatrix를 실행 중입니다.
나는 ASP.Net 포럼을 확인하고 내가 거기 이 대답을 얻었다"WebMatrix는. 웹 참조를 관리하기위한 어떤 툴을 제공하는 대신 Visual Studio 및 사용중인 면도기 웹 페이지 사이트를 엽니 다하지 않습니다 ".
나는 훌륭하지만 내 목적을 제공하지 않고 내 시스템에서 Visual Studio를 설치할 수 없습니다 SO에서이 LINK 을 얻었다. 웹 매트릭스를 사용하여 해결해야합니다. 여기
은 (등록 필요) 관련 서비스 참조를 추가하고 프록시 클라이언트를 생성하는 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;
?>