"PHP SoapClient 사용해보기"의 두 판 사이의 차이

10번째 줄: 10번째 줄:
<source lang='php'>
<source lang='php'>
<?php
<?php
require_once '/var/www/html/lib/nusoap.php';
$client = new SoapClient("http://jmnote.com/nusoap/server.php?wsdl");
$client = new SoapClient("http://jmnote.com/nusoap/server.php?wsdl");
$result = $client->hello('John Smith');
$result = $client->hello('John Smith');
print_r($result);
print_r($result);
?>
</source>
</source>
*예시: http://jmnote.com/nusoap/client1b.php
*예시: http://jmnote.com/nusoap/client1b.php

2013년 12월 28일 (토) 13:20 판

PHP SoapClient 사용해보기

1 사전 작업

여기서는 nusoap_client 대신 PHP에 기본으로 탑재된 SoapClient를 이용해보자. SOAP서버는 그대로 NuSOAP의 것을 사용할 것이다.

2 client1b.php

<?php
$client = new SoapClient("http://jmnote.com/nusoap/server.php?wsdl");
$result = $client->hello('John Smith');
print_r($result);

3 같이 보기

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}