Hi All,
I am returning custom object as below from my service. Client will be consuming it through Java platform.
I am using all primitive datatypes here. Still, could there be any compatibility issues?
Is there any more information I need to provide except WSDL for client to be able to consume this service?
What are the best practices in such a scenario??
/// Summary description for Service1
/// </summary>
//[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[ToolboxItem(false)]
public class Service1 : System.Web.Services.WebService
{
[WebMethod]
public Employee GetEmployee()
{
return new Employee();
}
}
[Serializable]
public class Employee {
private string firstName;
public string FirstName {
get { return firstName; }
set { firstName = value; }
}
private string lastName;
public string LastName
{
get { return lastName; }
set { lastName = value; }
}
}
Thanks.