I created two WCF web services. The 1st service is a get service returning JSON string and the 2nd service is a post service accepting this JSON string as an Input and storing those data in database.
Both the service working fine on Local but when I upload my code on the server 2nd service, i.e post service, returns an error: Error 400 Bad Request.
I think I am missing somthing in my web.config file. I am adding my web.conging here :
xml version="1.0"?> name="Conn" connectionString="Data Source=*;Initial Catalog=SunshineDB;Integrated Security=True"/> name="NetTcpBinding_IClaims" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" transferMode="Buffered" hostNameComparisonMode="StrongWildcard" maxBufferPoolSize="2147483647" maxBufferSize="2147483647" maxReceivedMessageSize="2147483647"> maxDepth="32" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="16384"/> mode="None"> clientCredentialType="None" /> name="wsBufferedHttpsBinding" messageEncoding="Mtom" maxReceivedMessageSize="11534336" maxBufferPoolSize="524288" sendTimeout="00:05:00" receiveTimeout="00:05:00" openTimeout="00:05:00" closeTimeout="00:05:00" > maxDepth="64" maxStringContentLength="11534336" maxArrayLength="11534336" maxBytesPerRead="11534336" maxNameTableCharCount="16384" /> name="basicConfig"> transferMode="Streamed" maxReceivedMessageSize="67108864"/> name="SunShineServices.Service1"> address="" binding="webHttpBinding" behaviorConfiguration="EndBehave" contract="SunShineServices.ISunShineServices"> value="localhost" /> name="EndBehave"> httpGetEnabled="true"/> includeExceptionDetailInFaults="true"/> multipleSiteBindingsEnabled="true"/> runAllManagedModulesForAllRequests="true"/> 
Replies
Know the answer? Post it — somebody with the same question will find it here.