我正在開發c#桌面應用程序,並使用在php應用程序中開發的webservies,當我嘗試使用該應用程序時。我只想補充一點,Web服務的Web引用,並嘗試訪問throught下面的代碼有關在c#中使用php web服務的問題桌面應用程序
WebReference.TestWSDL pdl = new testingApp.WebReference.TestWSDL();
string copy = pdl.verify("testing");
它拋出的錯誤,當我嘗試調用的方法驗證。錯誤是
可能的SOAP版本不匹配:信封命名空間http://schemas.xmlsoap.org/wsdl/是意外的。期待http://schemas.xmlsoap.org/soap/envelope/。
和Web服務的鏈接就像
http://171.139.101.12/code/index.php/webservice/wsdl
也許你的WSDL是用無效的命名空間生成的?查看生成的Web服務文件並嘗試將命名空間更改爲預期的名稱空間。 – 2010-01-14 07:24:42