110,567
社区成员
发帖
与我相关
我的任务
分享
<service behaviorConfiguration="MexBehavior" name="SOD.Service.JsonService">
<endpoint address="" behaviorConfiguration="WebHttpBindingBehavior" bindingConfiguration="webLargeSize" binding="webHttpBinding" contract="SOD.Service.IJsonService"/>
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>
</service>
[WebInvoke(UriTemplate = "FunctionName", RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json, Method = "POST", BodyStyle = WebMessageBodyStyle.Wrapped)]
public class JsonService : System.ServiceModel.ClientBase<IJsonService>, IJsonService
{
public JsonService(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) :
base(binding, remoteAddress)
{
}
}
不过貌似因为有【WebInvoke】,所以出问题了~