Author: bilbo_baggins | Posted on: 7/30/2009 12:33:03 PM | Views : 548

I have a web method that accepts a class of type Person and simply returns back the same person. I am trying to call this method from an AJAX client. The issue is that the properties of my Person class do not seem to be rendering within the client proxy Person class that is created when accessing MyWebService.asmx/js. Can anyone see what is wrong here?


WebService1.asmx.cs
using System;
using System.Runtime.Serialization;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;

namespace WebApplication2
{
public class Person
{
public Person(){}

public string Name { get; set; }
}

/// <summary>
/// Summary description for WebService1
/// </summary>
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = Wsi ...

Go to the complete details ...