Highlighted

How to call Web method with Custom Type?

Avatar

Avatar

SkyKim

Avatar

SkyKim

SkyKim

28-12-2008

how to call a web method of ASP.NET with Custom type
parameter.



Could you give me a flex code or example to calling the
following web method?

example)

[WebMethod]

public int InsertUser(UserObjectInfo obj){

//save UserObjectInfo to Database and return id.

}

// this defined in .NET side.

public class UserObjectInfo {

public string FirstName{ get{}set{}}

public string LastName{ get{}set{}}

}



My concern is how the flex creates proxy class of
UserObjectInfo .

It's easy if the web method accepts only primitive type
params. But, my existing web methods are accepting Custom types as
most of OOP .NET applications.



Any comment will helps.

Thank you.