[英]WCF. Leave an empty namespace in the SoapAction
我需要修改WSDL中的soapAction,使其內部僅包含ServiceOperation / ServiceMethod。
當我將名稱空間屬性留空時,將其設置為:
<soap:operation soapAction="urn:ServiceName/GetCustomers" style="document"/>
當我刪除命名空間屬性時,tempuri.org命名空間就會進入並破壞結果。
必須做什么:
<soap:operation soapAction="ServiceName/GetCustomers" style="document"/>
有什么辦法可以做到這一點? 謝謝你的幫助。
找出可以通過直接在方法上指定操作來完成的操作:
[OperationContract(Action = "ServiceName/GetCustomers")]
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.