You must Sign In to post a response.
  • Category: Webservices

    WCF Restful services

    Hi There

    My requirement is to pass multiple parameters in REST service (POST Method).
    I don't want to pass parameters in URL like "xxx?day={day}&Mon={Mon}.

    If possible please provide me with an example.

    Thanks in advance.

    Regards,
    Vijay.
  • #760588
    Hi

    Try like below using datacontract

    [DataContract ()]
    public class myClass
    {
    [DataMember ]
    public string Name{ get ; set; }
    [DataMember ]
    public string Password{ get ; set ; }
    }

    myClass obj = new myClass() { Name =
    "Sridhar" , Password= "sri" };

    Regards

    Sridhar Thota.
    "Poverty means.. Poverty of knowledge.."

    Sridhar Thota.
    Editor: DNS Forum.

  • #760890
    Thank you Sridhar Thota.


  • Sign In to post your comments