Mahesh Bodepudi

Mahesh Bodepudi

  • NA
  • 90
  • 54.5k

Passing Json data to Wcf service from aspx.cs

Jan 6 2014 12:15 AM

Hi,
Good Morning,

 I am using restful wcf service concept and this is the method for the service in the interface.

 
 [OperationContract]
        [WebInvoke(Method = WebMethods.POST, UriTemplate = UriTemplates.CreateDoctorProfileUri, RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json)]
        hxResponseDTO CreateDoctorProfile(CreateDoctorProfileArg createDoctorProfileArg); 
 
where it is taking argument as the class file which accepts some parameters.
 
So now I need to pass the class file from aspx.cs  with the properties same as the class.So I declared the class in the front end and I need to pass the data.
 How can I do,please explain me with proper example?
 
 

Answers (1)