Web servisi (wsdl) için php proxy sınıf oluşturmak herhangi bir araç var mı?

2 Cevap php

Merhaba
php programlama dili için webservice için php proxy sınıf oluşturmak için herhangi bir araç var mı?
Web hizmetleri. Net olarak geliştirilmiştir.
Teşekkür
NRK

2 Cevap

Belki bu gerekenler:

Zend_Soap_Client

The Zend_Soap_Client class simplifies SOAP client development for PHP programmers.

It may be used in WSDL or non-WSDL mode.

Under the WSDL mode, the Zend_Soap_Client component uses a WSDL document to define transport layer options.

Örnek kod:

$client = new Zend_Soap_Client("MyService.wsdl");
$result1 = $client->method1(10);

Yerleşik PHP SoapClient sınıfını kullanın:

$client = new SoapClient("some.wsdl");

// To call an Add method on the .NET-based service, that takes 2 parameters:
$arguments->a = 1;
$arguments->b = 2;

$result = $client->Add( $arguments );

echo( "1 + 2 = " . $result->AddResult );