[WebMethod]
public Response ValidateAddress(Request request)
{
return new test_AddressValidation().GenerateResponse(
test_AddressValidation.ResponseType.Ambiguous);
}
...
public class Request
{
public Address Address;
}
public class Address
{
public string Address1;
public string Address2;
public string City;
public string State;
public string Zip;
public AddressClassification AddressClassification;
}
public class AddressClassification
{
public int Code;
public string Description;
}
Saturday, October 2, 2010
Building JSON object to send to an AJAX WebService
ป้ายกำกับ:
WebService JSON AJAX C#
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment