error mess : Error Domain=BasicHttpBinding_IEenaduCommentsBindingResponseHTTP Code=415 "unsupported media type"
int id = Convert.ToInt32(Uid); string SlashRemoving = Token.Replace("wxyzwxyz", "/"); string DeodedTok = System.Web.HttpUtility.UrlDecode(SlashRemoving); string Enkey = objmenu.EncKey(id).ToString(); string DecTok = Decrypt(DeodedTok, true, Enkey); DataSet Tok = objmenu.Tok_Checker(id, DecTok); if (Tok.Tables[0].Rows.Count > 0) { Guid gudArticleId = new Guid(artid); objmenu.ArticleId = gudArticleId; objmenu.FirstName = name; objmenu.Email = email; objmenu.Commenttext = txtcmt; objmenu.Replyid = null; objmenu.InsertComments(); int intresponse = Convert.ToInt32(objmenu.Userid); return intresponse; } else { return 0; }
<service name="MyService" behaviorconfiguration="ServiceBehaviour"> <!-- Service Endpoints --> <endpoint address="http://stgen.eenaduindia.com/EenaduEnglishMobileFeed/EenaduComments/InsertComments" binding="wsHttpBinding" contract="EenaduEnglishMobileFeed.IEenaduComments" behaviorconfiguration="web"> </endpoint> <endpoint> address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/> </endpoint></service>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)