The ASMX runtime will add all types exposed in your webmethod to the
WSDL (and thus, in turn, to your client projects when you add web
reference). In this case your WebMethod exposes only an int.
To prove the point create another WebMethod that returns an instance of
your BusinessObject....
However, the process by which objects enter and leave a Web Service is
XmlSerialization - and this is capable of serializing data only - so
your doBusiness() method wouldn't be visible.
It's important to get a grip on all this before venturing too far with
Web Services - so I recommend you read this:
http://msdn.microsoft.com/library/de...howwebmeth.asp,
in particular the section on Mapping XML to Objects.
Good Luck
Josh
http://www.thejoyofcode.com/