【问题标题】:NuSOAP PHP web service and .NET WebService reference - problemNuSOAP PHP Web 服务和 .NET WebService 参考 - 问题
【发布时间】:2010-09-01 12:02:11
【问题描述】:

我用 NuSOAP 创建了一个 PHP SOAP WebService。我从 C# 应用程序添加了一个 WebReference。我输入 WSDL 的 URL,我可以在向导中看到方法,但没有生成代理代码。当我更新网络参考时,我收到错误消息框:

The custom tool 'MSDiscoCodeGenerator' failed. Unable to import binding 'XXXSoapBinding' from namespace 'URL of my namespace'

热烈欢迎任何提示。

问候

多米尼克

【问题讨论】:

  • WSDL 的绑定部分会有所帮助...请粘贴。
  • 我在下面附上了装订部分。

标签: php .net web-services soap wsdl


【解决方案1】:

这是我的 WSDL 的绑定部分:

<binding name="MyAppMobileWebServiceSoapBinding" type="tns:MyAppMobileWebServiceSoapPortType">
  <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
  <operation name="Login">
    <soap:operation soapAction="http://mobile.mydomain.pl/index.php/Login" style="rpc"/>
    <input><soap:body use="encoded" namespace="http://mobile.mydomain.pl/index.php" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></input>
    <output><soap:body use="encoded" namespace="http://mobile.mydomain.pl/index.php" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></output>
  </operation>
  <operation name="Logout">
    <soap:operation soapAction="http://mobile.mydomain.pl/index.php/Logout" style="rpc"/>
    <input><soap:body use="encoded" namespace="http://mobile.mydomain.pl/index.php" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></input>
    <output><soap:body use="encoded" namespace="http://mobile.mydomain.pl/index.php" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></output>
  </operation>
  <operation name="GetPaletStatus">
    <soap:operation soapAction="http://mobile.mydomain.pl/index.php/GetPaletStatus" style="rpc"/>
    <input><soap:body use="encoded" namespace="http://mobile.mydomain.pl/index.php" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></input>
    <output><soap:body use="encoded" namespace="http://mobile.mydomain.pl/index.php" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></output>
  </operation>
  <operation name="GetPaletsInfo">
    <soap:operation soapAction="http://mobile.mydomain.pl/index.php/GetPaletsInfo" style="rpc"/>
    <input><soap:body use="encoded" namespace="http://mobile.mydomain.pl/index.php" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></input>
    <output><soap:body use="encoded" namespace="http://mobile.mydomain.pl/index.php" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></output>
  </operation>
  <operation name="GetParcelDeliveryPaletsStatus">
    <soap:operation soapAction="http://mobile.mydomain.pl/index.php/GetParcelDeliveryPaletsStatus" style="rpc"/>
    <input><soap:body use="encoded" namespace="http://mobile.mydomain.pl/index.php" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></input>
    <output><soap:body use="encoded" namespace="http://mobile.mydomain.pl/index.php" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></output>
  </operation>
  <operation name="GetParcelReceptionPaletsStatus">
    <soap:operation soapAction="http://mobile.mydomain.pl/index.php/GetParcelReceptionPaletsStatus" style="rpc"/>
    <input><soap:body use="encoded" namespace="http://mobile.mydomain.pl/index.php" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></input>
    <output><soap:body use="encoded" namespace="http://mobile.mydomain.pl/index.php" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></output>
  </operation>
  <operation name="GetParcelReloadPaletsStatus">
    <soap:operation soapAction="http://mobile.mydomain.pl/index.php/GetParcelReloadPaletsStatus" style="rpc"/>
    <input><soap:body use="encoded" namespace="http://mobile.mydomain.pl/index.php" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></input>
    <output><soap:body use="encoded" namespace="http://mobile.mydomain.pl/index.php" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></output>
  </operation>
  <operation name="GetPaletCategories">
    <soap:operation soapAction="http://mobile.mydomain.pl/index.php/GetPaletCategories" style="rpc"/>
    <input><soap:body use="encoded" namespace="http://mobile.mydomain.pl/index.php" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></input>
    <output><soap:body use="encoded" namespace="http://mobile.mydomain.pl/index.php" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></output>
  </operation>
  <operation name="GetPaletHeights">
    <soap:operation soapAction="http://mobile.mydomain.pl/index.php/GetPaletHeights" style="rpc"/>
    <input><soap:body use="encoded" namespace="http://mobile.mydomain.pl/index.php" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></input>
    <output><soap:body use="encoded" namespace="http://mobile.mydomain.pl/index.php" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></output>
  </operation>
  <operation name="GetPaletTypes">
    <soap:operation soapAction="http://mobile.mydomain.pl/index.php/GetPaletTypes" style="rpc"/>
    <input><soap:body use="encoded" namespace="http://mobile.mydomain.pl/index.php" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></input>
    <output><soap:body use="encoded" namespace="http://mobile.mydomain.pl/index.php" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></output>
  </operation>
  <operation name="GetPaletWeights">
    <soap:operation soapAction="http://mobile.mydomain.pl/index.php/GetPaletWeights" style="rpc"/>
    <input><soap:body use="encoded" namespace="http://mobile.mydomain.pl/index.php" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></input>
    <output><soap:body use="encoded" namespace="http://mobile.mydomain.pl/index.php" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></output>
  </operation>
  <operation name="GetUsers">
    <soap:operation soapAction="http://mobile.mydomain.pl/index.php/GetUsers" style="rpc"/>
    <input><soap:body use="encoded" namespace="http://mobile.mydomain.pl/index.php" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></input>
    <output><soap:body use="encoded" namespace="http://mobile.mydomain.pl/index.php" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></output>
  </operation>
  <operation name="GetDepartmentList">
    <soap:operation soapAction="http://mobile.mydomain.pl/index.php/GetDepartmentList" style="rpc"/>
    <input><soap:body use="encoded" namespace="http://mobile.mydomain.pl/index.php" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></input>
    <output><soap:body use="encoded" namespace="http://mobile.mydomain.pl/index.php" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></output>
  </operation>
</binding>
<service name="MyAppMobileWebServiceSoap">
  <port name="MyAppMobileWebServiceSoapPort" binding="tns:MyAppMobileWebServiceSoapBinding">
    <soap:address location="http://mobile.mydomain.pl/index.php"/>
  </port>
</service>

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-07-15
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-09-18
    • 1970-01-01
    相关资源
    最近更新 更多