passing comma separated string value to a wcf rest service -


Having the following problem with wcf rest service

I try to access this endpoint from a browser I am doing,

  https: // localhost: 443 / service1 SVC / Jason / GetCourtData / ABC America, ABC UK / MQA /  

ABC America, ABC UK is a string argument different from a comma

The problem occurs when I tried it on my local, it is absolutely free. The works, but when I tried it on a remote host browser only shows that the page can not be displayed. I'm not sure there is some setting on IIS.

I am hosting the service on IIS.

This is a response from remote IIS

failed

  https: // remoteserver: 443 / Service1.svc / json / GetCustomerData / ABC America, ABC UK / MQA /  

The error that is written in the log is the maximum number of objects, which can be serialized or discreased in the object graph, change the '65536' object graph or MaxItemsInObjectGraph Increase quota.

I think it is confusing, besides, I myself am using a signed certificate

pass (because the values ​​separated by comma are removed and only The following code is my < / P>

  [webinvok (method = "" get "UriTemplate =" GetCustomerData / {postcode} / {dept} ", response format = webmail format .jason)] IEnumerable & lt; customer & GetCustomerData (string postcode, string section); // Interface implementation IEnumerable & lt; customer & gt; GetCustomerData (string postcode, string section); {new customer {name = "customer1", add1 = "address line 1 "... etc};}  

The following is using I

  > LT; Services & gt; ; & Lt; Service name = "Service1" behavior configuration = "https Behavior" & gt; endpoint address = "json" binding = "web htmlbinding" contract = "ic client data" service Arasnvedn = "web" binding configuration = "Vebacteepi binding transport security" / & gt; & Lt; Endpoint address = "Max" binding = "Max HTPS binding" contract = "IMATAdata Exchange" / & gt; & Lt; / Services & gt; & Lt; / Services & gt; & Lt; Binding & gt; & Lt; WebHttpBinding & gt; & Lt; Bond name = "WEBHPPBITTRASPORT SECURITY" MAXRIESEVISESISIm = "2147483647" MAXBFERSICES = "2147483647" & gt; & Lt; Safety Mode = "Transportation" /> & Lt; / Binding & gt; & Lt; / WebHttpBinding & gt; & Lt; / Binding & gt; & Lt; Behavior & gt; & Lt; ServiceBehaviors & gt; & Lt; Behavior Name = "https Brahwari" & gt; & Lt; ServiceMetadata httpGetEnabled = "false" httpsGetEnabled = "true" /> & Lt; / Behavior & gt; & Lt; / ServiceBehaviors & gt; & Lt; Endpoint beehaviors & gt; & Lt; Behavior name = "web" & gt; & Lt; WebHttp / & gt; & Lt; Data Contractor Sirializer maxItemsInObjectGraph = "2147483647" /> & Lt; / Behavior & gt; & Lt; / EndpointBehaviors & gt; & Lt; / Behavior & gt; & Lt; /system.serviceModel>  

Any help would be greatly appreciated

This change I created it in config behavior to sort it,

  & lt; Behaviors & gt; & Lt; ServiceBehaviors & gt; & Lt; Behavior Name = "https Brahwari" & gt; & Lt; ServiceMetadata httpGetEnabled = "false" httpsGetEnabled = "true" /> & Lt; Data Contractor Sirializer maxItemsInObjectGraph = "2147483647" /> & Lt; / Behavior & gt; & Lt; / ServiceBehaviors & gt; & Lt; Endpoint beehaviors & gt; & Lt; Behavior name = "web" & gt; & Lt; WebHttp / & gt; & Lt; / Behavior & gt; & Lt; / EndpointBehaviors & gt; & Lt; / Behavior & gt;  

Originally moved from EndpointBuvers to Service Beehives


Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -