关于zend soap,该如何解决

WBOY
Release: 2016-06-13 12:58:21
Original
897 people have browsed it

关于zend soap

本帖最后由 ihelloworld 于 2012-01-17 16:47:47 编辑 使用Zend_Soap_AutoDiscover自动生成的wsdl在windows下正常,同样的代码换到linux环境中就不行了,
<br />
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap-enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" name="Bss_Mailservice" targetNamespace="http://split.bss.com/interface/index/mailservice"><br />
<types><br />
<xsd:schema targetNamespace="http://split.bss.com/interface/index/mailservice"/><br />
</types><br />
<portType name="Bss_MailservicePort"><br />
<operation name="auth"><br />
<documentation>auth</documentation><br />
<input message="tns:authIn"/><br />
</operation><br />
<operation name="send"><br />
<documentation>send</documentation><br />
<input message="tns:sendIn"/><br />
</operation><br />
</portType><br />
<binding name="Bss_MailserviceBinding" type="tns:Bss_MailservicePort"><br />
<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/><br />
<operation name="auth"><br />
<soap:operation soapAction="http://split.bss.com/interface/index/mailservice#auth"/><br />
<input><br />
<soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://split.bss.com/interface/index/mailservice"/><br />
</input><br />
<output><br />
<soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://split.bss.com/interface/index/mailservice"/><br />
</output><br />
</operation><br />
<operation name="send"><br />
<soap:operation soapAction="http://split.bss.com/interface/index/mailservice#send"/><br />
<input><br />
<soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://split.bss.com/interface/index/mailservice"/><br />
</input><br />
<output><br />
<soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://split.bss.com/interface/index/mailservice"/><br />
</output><br />
</operation><br />
</binding><br />
<service name="Bss_MailserviceService"><br />
<port name="Bss_MailservicePort" binding="tns:Bss_MailserviceBinding"><br />
<soap:address location="http://split.bss.com/interface/index/mailservice"/><br />
</port><br />
</service><br />
<message name="authIn"><br />
<part name="appkey" type="xsd:anyType"/><br />
</message><br />
<message name="sendIn"><br />
<part name="to" type="xsd:anyType"/><br />
<part name="cc" type="xsd:anyType"/><br />
<part name="bcc" type="xsd:anyType"/><br />
<part name="subject" type="xsd:anyType"/><br />
<part name="body" type="xsd:anyType"/><br />
</message><br />
</definitions><br />
Copy after login

基中





这几个参数都应该是string类型,但在linux下生成的是anyType,另外我在方法的注释中己经写了返回值的注释,但也不管用
<br>
   /**<br>
     * <br>
     * 发送邮件<br>
     * @param string $to<br>
     * @param string $cc<br>
     * @param string $bcc<br>
     * @param string $subject<br>
     * @param string $body <div class="clear">
                 
              
              
        
            </div>
Copy after login
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template