[英]WCF. Leave an empty namespace in the SoapAction
I've got a requirement to modify the soapAction in my WSDL to contain only ServiceOperation/ServiceMethod inside. 我需要修改WSDL中的soapAction,使其内部仅包含ServiceOperation / ServiceMethod。
When I leave the namespace property empty it sets it to: 当我将名称空间属性留空时,将其设置为:
<soap:operation soapAction="urn:ServiceName/GetCustomers" style="document"/>
When I remove the namespace property, then the tempuri.org namespace steps in and spoils the result. 当我删除命名空间属性时,tempuri.org命名空间就会进入并破坏结果。
What has to be done: 必须做什么:
<soap:operation soapAction="ServiceName/GetCustomers" style="document"/>
Is there any way to achieve this? 有什么办法可以做到这一点? Thanks for any help. 谢谢你的帮助。
找出可以通过直接在方法上指定操作来完成的操作:
[OperationContract(Action = "ServiceName/GetCustomers")]
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.