简体   繁体   中英

PHP and WSDL 2.0 SOAP

It is possible to use php with WSDL 2.0 soap webservice? I read a lot old posts, that tells me php soap doesn't support wsdl 2.0. Is there some solutions? I don't want to write webservice in php, I want get data from wsdl 2.0 service. Thank you.

You can use SoapClient or NuSoap. SoapClient is based of C and NuSoap in PHP

Here I am using SoapClient

$url_t0_wsdel = "www.example.com/wsdl"
$wsdelData = new SoapClient($url_t0_wsdel);

$result = $wsdelData->__soapCall('name_of_procedure', array(arguments));

$result will be array or object format

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM