2010-09-01 75 views
0

我已經使用NuSOAP創建了一個PHP SOAP WebService。我從C#應用程序添加WebReference。我輸入WSDL的URL,我可以在嚮導中看到方法,但沒有生成代理代碼。當我做更新Web引用,我收到錯誤消息框:NuSOAP PHP Web服務和.NET WebService參考 - 問題

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

任何提示的熱烈歡迎。

問候

多米尼克

+0

您的WSDL將有助於綁定區段......請貼。 – 2010-09-01 12:03:59

+0

我已經附上下面的綁定部分。 – cubesoft 2010-09-01 12:18:22

回答

0

這裏是我的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>