开发者

WCF BasicHttpBinding Http Post

开发者 https://www.devze.com 2023-01-23 05:47 出处:网络
Is it possible to post to a WCF service hosted in IIS? I know that that this is possible using REST but I really need the WSDL generation and SOAP headers. I need to transition an existing ASMX web se

Is it possible to post to a WCF service hosted in IIS? I know that that this is possible using REST but I really need the WSDL generation and SOAP headers. I need to transition an existing ASMX web services to WCF but I开发者_如何学编程 need to also allow my clients to continue to utilize the service via http posts (xml http request via javascript). Is REST my only option?


No, with a SOAP service, you need to use the SOAP methods and actions - you cannot use HTTP POST to "dump" some data on a SOAP service.

If you need HTTP POST, then REST is the way to go.


You can also use REST style WCF http://msdn.microsoft.com/en-us/netframework/cc950529.aspx

0

精彩评论

暂无评论...
验证码 换一张
取 消