How to specify custom SoapAction for WCF

前端 未结 2 1006
灰色年华
灰色年华 2021-02-13 22:58

I am creating a WCF service which will be called from another service.

In the WSDL soapaction is appearing as follows



        
2条回答
  •  隐瞒了意图╮
    2021-02-13 23:51

    You could specify it in the service contract definition:

    [ServiceContract(Namespace = "http://www.TextXYZ.com/FUNC/1/0/action")]
    public interface IMyServiceContract
    {
        [OperationContract]
        void MyMethod();
    }
    

提交回复
热议问题