Having the following wcf service issue
I am trying to access this endpoint from a browser,
https://localhost:443/Service1.svc/json/GetCustomerData/ABC US,ABC UK/MQA/
ABC US, ABC UK - Comma Separated String Arguments
The problem is that when I tried this on my local computer, it works fine, but when I try to do this on the remote host, the browser does not show the page that is not displayed. I am not sure if there are any settings for iis.
I host the service on iis.
this is a response from remote iis
can not
https://remoteserver:443/Service1.svc/json/GetCustomerData/ABC US,ABC UK/MQA/
the error that is written to the log is the maximum number of elements that can be serialized or deserialized in the object graph: "65536". Change the graph of the object or increase the quota MaxItemsInObjectGraph.
I think this is also misleading. I also use a self-signed certificate
passes (since the value separated by a comma is deleted and only one argument is passed)
https://remoteserver:443/Service1.svc/json/GetCustomerData/ABC UK/MQA/
following my code
[OperationContract] [WebInvoke(Method = "GET", UriTemplate = "GetCustomerData/{postcode}/{dept}", ResponseFormat = WebMessageFormat.Json)] IEnumerable<Customer> GetCustomerData(string postcode, string dept);
next configuration i am using
<system.serviceModel> <services> <service name="Service1" behaviorConfiguration="httpsBehavior"> <endpoint address="json" binding="webHttpBinding" contract="ICustomerData" behaviorConfiguration="web" bindingConfiguration="webHttpBindingTransportSecurity"/> <endpoint address="mex" binding="mexHttpsBinding" contract="IMetadataExchange" /> </service> </services> <bindings> <webHttpBinding> <binding name="webHttpBindingTransportSecurity" maxReceivedMessageSize="2147483647" maxBufferSize="2147483647"> <security mode="Transport" /> </binding> </webHttpBinding> </bindings> <behaviors> <serviceBehaviors> <behavior name="httpsBehavior"> <serviceMetadata httpGetEnabled="false" httpsGetEnabled="true"/> </behavior> </serviceBehaviors> <endpointBehaviors> <behavior name="web"> <webHttp/> <dataContractSerializer maxItemsInObjectGraph="2147483647"/> </behavior> </endpointBehaviors> </behaviors> </system.serviceModel>
Any help would be greatly appreciated