0
public class User {
    public string UserName{get;set;}
    public string Password{get;set;}
    public string FirstName{get;set;}
    public string LastName{get;set;}
}

// WCF service
public interface IUserService {
    void SaveUser(User user);
}

Can I bind Post/Get request to IUserService.SaveUser service?
Something like:

http://localhost:8080/UserService.svc/SaveUser/?UserName=bla&Password=bla&FirstName=bla

I know it is possible by passing JSON, but I want to pass simple get/post as the above.

Thanks.

Patrick
  • 1,717
  • 7
  • 21
  • 28
SexyMF
  • 10,657
  • 33
  • 102
  • 206
  • possible duplicate of [Making a WCF Web Service work with GET requests](http://stackoverflow.com/questions/944678/making-a-wcf-web-service-work-with-get-requests) – Kajal Sinha Jul 07 '14 at 04:59
  • @KajalSinha it is not, I am dealing here with complex ibjects – SexyMF Jul 07 '14 at 05:28

0 Answers0