请给我解释下这个服务器描述语言是什么意思?? 本帖最后由 wkhegx 于 2014-06-18 15:15:03 编辑 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 这是 Web Service 使用的,与客户沟通用说明文件他告知用户,本 Web Service 提供了如下方法: [0] => boolean auth(string $email, string $password) [1] => string latest(integer $date) [2] => boolean send(string $email, string $password, string $message) Web Service 是服务器,使用 SOAP 协议服务端使用 SoapServer 类形成服务客户端通过 SoapClient 类进行访问解析 WSDL 可由SoapClient::__getFunctionsSoapClient::__getTypes方法进行相关文件你的项目应该都提供了,你可以通过搜索包含“WSDL”字样的文件,找到他们 根据你的说法,我看懂了你写出来的,但是对于下来的代码还是不知道是什么意思。 <portType name="chatPortType"> <operation name="auth"> <input message="typens:auth"/> <output message="typens:authResponse"/> </operation> <operation name="latest"> <input message="typens:latest"/> <output message="typens:latestResponse"/> </operation> <operation name="send"> <input message="typens:send"/> <output message="typens:sendResponse"/> </operation> </portType> <binding name="chatBinding" type="typens:chatPortType"> <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/> <operation name="auth"> <soap:operation soapAction="urn:chatAction"/> <input> <soap:body namespace="urn:soap" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body namespace="urn:soap" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> <operation name="latest"> <soap:operation soapAction="urn:chatAction"/> <input> <soap:body namespace="urn:soap" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body namespace="urn:soap" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> <operation name="send"> <soap:operation soapAction="urn:chatAction"/> <input> <soap:body namespace="urn:soap" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body namespace="urn:soap" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> </binding> <service name="soapService"> <port name="chatPort" binding="typens:chatBinding"> <soap:address location=""/> </port> </service></definitions> WSDL 文件有严格的语法格式,相关解释网上都能找到WSDL 都是用工具生成的,很少会有人手工书写php 的 soap 扩展虽然没有提供 WSDL 书写工具但已有高人书写了 SoapDiscovery.class.php 用于从你写好的服务端工作类上才生出 WSDL 文档因此像我等懒人也就没有必要研读 WDSL 的文法了 希望能够给我推荐一个生成wdsl的工具,我知道zend studio可以,但是现在新版的Zend Studio也不能自动生成了。 如何通过exec的返回值确定被调程序崩溃与否 关于php项目里一个文件的作用,请高人指点 关于return php 处理数据 到数组当中 请问$_POST['name']里面的name 有什么方法读取出来 php与apache配置 小女子问个问题: 下载图片保存问题,急!急!急! 高分求类似网易通行证的设计方案~~ 请问如何添加特定条目到某一存在的html的特定位置? 一句 SQL 插入多条数据,能把所有lastInsertId都取回来吗? php如何读oracle
他告知用户,本 Web Service 提供了如下方法:
[0] => boolean auth(string $email, string $password)
[1] => string latest(integer $date)
[2] => boolean send(string $email, string $password, string $message)
服务端使用 SoapServer 类形成服务
客户端通过 SoapClient 类进行访问
解析 WSDL 可由
SoapClient::__getFunctions
SoapClient::__getTypes
方法进行相关文件你的项目应该都提供了,你可以通过搜索包含“WSDL”字样的文件,找到他们
<portType name="chatPortType">
<operation name="auth">
<input message="typens:auth"/>
<output message="typens:authResponse"/>
</operation>
<operation name="latest">
<input message="typens:latest"/>
<output message="typens:latestResponse"/>
</operation>
<operation name="send">
<input message="typens:send"/>
<output message="typens:sendResponse"/>
</operation>
</portType>
<binding name="chatBinding" type="typens:chatPortType">
<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="auth">
<soap:operation soapAction="urn:chatAction"/>
<input>
<soap:body namespace="urn:soap" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
</input>
<output>
<soap:body namespace="urn:soap" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
</output>
</operation>
<operation name="latest">
<soap:operation soapAction="urn:chatAction"/>
<input>
<soap:body namespace="urn:soap" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
</input>
<output>
<soap:body namespace="urn:soap" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
</output>
</operation>
<operation name="send">
<soap:operation soapAction="urn:chatAction"/>
<input>
<soap:body namespace="urn:soap" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
</input>
<output>
<soap:body namespace="urn:soap" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
</output>
</operation>
</binding>
<service name="soapService">
<port name="chatPort" binding="typens:chatBinding">
<soap:address location=""/>
</port>
</service>
</definitions>
WSDL 都是用工具生成的,很少会有人手工书写php 的 soap 扩展虽然没有提供 WSDL 书写工具
但已有高人书写了 SoapDiscovery.class.php 用于从你写好的服务端工作类上才生出 WSDL 文档因此像我等懒人也就没有必要研读 WDSL 的文法了