tags:

views:

305

answers:

2

Hi

Is there any tool for generating php proxy classes for webservice for php programming language?
Web services are developed in .net.

Thanks
nRk

+1  A: 

Maybe this is what you need:

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.

Example code:

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

Use the built-in PHP SoapClient class:

$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 );
Jon Benedicto