Connection to WCF service in PHP, which has NetTCP and BasicHttpBinding binding

I have a WCF service. It has several clients and three endpoints. Endpoint associations are nettcp, wsHttp, and basicHttp. If I try to connect to it via php'd the SoapClient built-in class, for example:

$service = new SoapClient
("http://service.companyname.local:6666/Service/?wsdl",
 array(
         "location" => "http://service.companyname.local:6666/Service/Basic",

    "trace" => true,
    'soap_version' => SOAP_1_1
     )
);

I get the following:

PHP Fatal error:  SOAP-ERROR: Parsing WSDL: PHP-SOAP doesn't support transport 'http://schemas.microsoft.com/soap/tcp' in c:\www\client.php on line 666

My current workaround is to manually save wsdl and remove the nettcp binding. Is there a workaround that will allow me to use the automatically generated wsdl? Is it possible to hide the binding from wsdl in web.config? Can I generate different wsdls for different bindings. I do not want to deploy two service hosts.

+3
source share
3

PHP. , . .

: . .
: , svn. PHP.
UPDATE: PHP 5.3.3 5.2.14.

0

, , , ServiceHost Windows. , , (, , ServiceHost ). , Windows, . , , , , WSDL. ().

, , - , WsdlExporter (. )

!

+1

Another option I'm currently exploring is a third-party soap client for PHP called WSF-PHP .

0
source

Source: https://habr.com/ru/post/1726132/


All Articles