问题
I have wcf services using .net framework 4.0, all setting is default of visual studio WCF project
namespace ApiFrame{
[ServiceContract(Namespace="http://abc.com.vn/")]public interface IApiframe
{
[OperationContract(Name = "process", Action="")]
string testprocess(string request);
this is what my service result (based on SOAPUI):
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:api="http://abc.com.vn/">
<soapenv:Header/>
<soapenv:Body>
<api:testprocess><!-- I want to remove this! -->
<!--Optional:-->
<api:request></api:request>
</api:testprocess><!-- I want to remove this! -->
</soapenv:Body>
</soapenv:Envelope>
I want to remove <api:process> xml tag.
来源:https://stackoverflow.com/questions/32647221/how-do-i-remove-operation-element-from-soap-body-in-wcf