开发者

WCF BasicHttpBinding Http Post

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜