PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

WSDL の作成方法について理解する> <SCA コンポーネントの配置
Last updated: Fri, 10 Oct 2008

view this page in

ウェブサービスとしてのサービスを提供する SCA コンポーネントの WSDL の取得

ウェブサービスのインターフェイスを公開している (つまり、@binding.soap アノテーションを持っている) SCA コンポーネントは、HTTP リクエストのパラメータに "wsdl" を指定されるとその WSDL 定義を返します。 つまり、WSDL を取得する一般的な方法は、URL の最後に "?wsdl" をつけることです。以下の例では、 file_get_contents() を使用してサービスの WSDL を取得し、それをテンポラリファイルに書き出します。 それをもとにして、サービスへのプロキシを取得します。 もちろん、WSDL をブラウザやその他の方法で取得して、自分でそれを保存することも可能です。

例1 作成された WSDL

<?php
$wsdl = file_get_contents('http://www.example.com/Services/Example.php?wsdl');
file_put_contents("service.wsdl",$wsdl); // wsdl をファイルに書き出します
$service = SCA::getService('service.wsdl'); 
?>

注意: wsdl が xsd をインポートしている場合は、 それを個別に取得する必要があります。



add a note add a note User Contributed Notes
ウェブサービスとしてのサービスを提供する SCA コンポーネントの WSDL の取得
There are no user contributed notes for this page.

 
show source | credits | sitemap | contact | advertising | mirror sites