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

    How to pass a class as a parameter in wcf

    Hi every one,
    i trie'd to pass class as a parameter in wcf for mobile application.and how i can retrive that class data with loop in wcf.i hope u are all understand.
    thank u.
  • #770391
    you need to create a model for your requirement and then pass that parameter like wanted to pass location class as parameter to wcf end point then

    creation of model for location

    class location{
    private int loc_id;
    private string loc_name;
    }

    creation of wcf method

    public IActionResult SaveLocation(Location location)
    {
    // action
    }

    Thanks!
    B.Ramana Reddy


  • Sign In to post your comments