我正在尝试连接PHP soap服务器和用C#编写的客户端。 WSDL以如下方式创建:如何在Zend_Soap_AutoDiscover生成的WSDL中更改名称
$autodiscover = new Zend_Soap_AutoDiscover('Zend_Soap_Wsdl_Strategy_ArrayOfTypeComplex');
$autodiscover->setClass('Soap_Service1');
$autodiscover->handle();
然后我得到:
<definitions xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:tns="http://www.xx.de/soap/version/1"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap-enc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
targetNamespace="http://www.xx.de/soap/version/1"
name="Soap_Services1"
>
这个 'NAME = “Soap_Services1”' 在C#中解析属性长相丑陋(Services.Soap_Services1Service)。当然名字与ServiceBinding和PortType连接。有没有办法改变它,而无需手动攻击zend库?