我有一個帶回調的WCF服務。我想創建一個客戶端,但是我想使用Visual Studio中的「添加服務引用」自動執行此操作。我能夠發現服務並添加它。我也可以更新服務參考。所以它在那裏。問題在於創建一個客戶端。 如果服務名是(在服務引用)「爲MyService」,那麼對於一個正常(非回調)服務創建客戶端將是: var myService = new MyServiceClient();
var da
how to add <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema- instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> in xml soap reque