关于zend soap,该如何解决

WBOY
Libérer: 2016-06-13 12:58:21
original
898 Les gens l'ont consulté

关于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 />
Copier après la connexion

基中





这几个参数都应该是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>
Copier après la connexion
Étiquettes associées:
source:php.cn
Déclaration de ce site Web
Le contenu de cet article est volontairement contribué par les internautes et les droits d'auteur appartiennent à l'auteur original. Ce site n'assume aucune responsabilité légale correspondante. Si vous trouvez un contenu suspecté de plagiat ou de contrefaçon, veuillez contacter admin@php.cn
Tutoriels populaires
Plus>
Derniers téléchargements
Plus>
effets Web
Code source du site Web
Matériel du site Web
Modèle frontal