Sending raw SOAP XML directly to WCF service from C#

后端 未结 3 655
陌清茗
陌清茗 2021-01-30 06:09

I have a WCF service reference:

http://.../Service.svc(?WSDL)

and I have an XML file containing a compliant SOAP envelope



        
3条回答
  •  执笔经年
    2021-01-30 06:15

    I just want to comment that Darin's response worked for me, except that I had to take out the extra quotes around the SOAPAction header value (substitute your uri, of course):

    client.Headers.Add("SOAPAction", "http://www.example.com/services/ISomeOperationContract/GetContract");
    

提交回复
热议问题