Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/wcf/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
WCF REST&x2B;WebHttpRelayBinding(Azure AppFabric服务总线)_Wcf_Rest_Appfabric - Fatal编程技术网

WCF REST&x2B;WebHttpRelayBinding(Azure AppFabric服务总线)

WCF REST&x2B;WebHttpRelayBinding(Azure AppFabric服务总线),wcf,rest,appfabric,Wcf,Rest,Appfabric,我有一个自托管的WCF REST应用程序,该应用程序设计为使用WebMessageBodyStyle.Bare接受并返回JSON作为流。我使用WebContentTypeMapper和WebContentFormat.Raw绕过DataContractSerializer 它可以通过WebHttpBinding在本地正常工作,在Fiddler2中使用WebHttpRelayBinding和Content Type:text/plain时也可以正常工作,但无论何时使用Content Type:ap

我有一个自托管的WCF REST应用程序,该应用程序设计为使用WebMessageBodyStyle.Bare接受并返回JSON作为流。我使用WebContentTypeMapper和WebContentFormat.Raw绕过DataContractSerializer

它可以通过WebHttpBinding在本地正常工作,在Fiddler2中使用WebHttpRelayBinding和Content Type:text/plain时也可以正常工作,但无论何时使用Content Type:application/json,我都会收到以下信息:


500TrackingId:e0281df8-12b4-4914-ab87-314956fb0df3,时间戳:07/27/2010 12:32:47


有没有办法让WebHttpRelayBinding接受内容类型:application/json?

没有。我的参考资料说WebHttpBinding是为了支持xml和json格式以及REST服务而产生的。

我试图做的更多是沿着端口桥的路线(http://blogs.msdn.com/b/clemensv/archive/2009/11/18/port-bridge.aspx)或移袜器(http://socketshifter.codeplex.com/)对于Windows Azure服务总线。如果可能的话,将其作为我的自托管WCF REST应用程序的一部分似乎更有意义


我在Azure论坛上看到了关于将application/xml与WebMessageBodyStyle结合使用的其他问题。但是他们似乎也没有得到太多的回应。

我看到了相同类型的行为。Sat认为这个错误已经存在了两年多了。