PHP SoapClient 사용해보기

Jmnote (토론 | 기여)님의 2015년 8월 20일 (목) 11:11 판 (→‎client1b.php)

1 개요

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

2 사전 작업

3 soap-client.php

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

4 같이 보기

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