R
Robbo
Hi,
I am creating a webservice which will be consumed by a 3rd party, non dotnet
client.
I want to return a custom datatype from my webservice. It's a relatively
simple Customer object which just contains strings.
eg:
[WebMethod]
public Customer GetCustomer(int custId)
{
return new Customer();
}
now, my Customer class is defined as follows:
[Serializable]
public class Customer
{
// properties are forename, surname, title, address etc (all strings)
}
My question is this...when I expose this webmethod the clients do not see
any of the Customer type definition in the WDSL, so they don't actually know
what data they are getting back.
Am I missing something here? I was expecting the Customer object structure
to be present in the WDSL?
Thanks,
Rob
I am creating a webservice which will be consumed by a 3rd party, non dotnet
client.
I want to return a custom datatype from my webservice. It's a relatively
simple Customer object which just contains strings.
eg:
[WebMethod]
public Customer GetCustomer(int custId)
{
return new Customer();
}
now, my Customer class is defined as follows:
[Serializable]
public class Customer
{
// properties are forename, surname, title, address etc (all strings)
}
My question is this...when I expose this webmethod the clients do not see
any of the Customer type definition in the WDSL, so they don't actually know
what data they are getting back.
Am I missing something here? I was expecting the Customer object structure
to be present in the WDSL?
Thanks,
Rob