Click here to Skip to main content
15,922,309 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am unable to call service.

please help

Client Service

WCF rest Service

[WebInvoke(Method = "POST", ResponseFormat = WebMessageFormat.Json, UriTemplate = "PostMailToClient/Data?ClientID={ClientID}&Email={Email}", BodyStyle = WebMessageBodyStyle.WrappedRequest)]
         public Stream PostMailToClient(string ClientID, string Email)
             DataSet ds;
             DataAccessLibrary.clsDAL objEmail = new DataAccessLibrary.clsDAL();
             ds = objEmail.PostMailToClient(ClientID, Email);
             RestfulPrimaryServiceDatabase.Classes.clsClients objEmailClient = new Classes.clsClients();
             return dsEmailAPIToJSON(ds);
Updated 24-Mar-15 20:57pm
Rajat_RJT 26-Mar-15 1:33am    
what error you are getting?
yogesh kumar14 26-Mar-15 2:03am    
Method is not allowed
Rajat_RJT 27-Mar-15 5:40am    
You are hitting the request from client with GET method,not POST.
Check your service on rest client using POST method.
REST client addon for mozilla -
REST client addon for chrome -

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900