W
Water Cooler v2
I create a test Web service like so:
[WebService(Namespace="http://blah.com")]
public class ServiceThingy: System.Web.Services.WebService
{
[WebMethod]
public int ReturnFour()
{
return 4;
}
}
I create another class other than this, like so:
class BusinessObject
{
public string doBusiness()
{
return "Did business. It was nice.";
}
}
I compile.
I make a new Console application project.
I add a Web Reference to this service asmx in my new console
application project.
When I do this:
localhost.
I expect the BusinessObject class also to show up, but it doesn't. The
main service class shows up, though.
Now, earlier on, only a few days ago, I developed a huge Web Service
app with a lot of business objects and all the business object/classes
showed up in the client. What's the deal here? Am I missing something
obvious?
[WebService(Namespace="http://blah.com")]
public class ServiceThingy: System.Web.Services.WebService
{
[WebMethod]
public int ReturnFour()
{
return 4;
}
}
I create another class other than this, like so:
class BusinessObject
{
public string doBusiness()
{
return "Did business. It was nice.";
}
}
I compile.
I make a new Console application project.
I add a Web Reference to this service asmx in my new console
application project.
When I do this:
localhost.
I expect the BusinessObject class also to show up, but it doesn't. The
main service class shows up, though.
Now, earlier on, only a few days ago, I developed a huge Web Service
app with a lot of business objects and all the business object/classes
showed up in the client. What's the deal here? Am I missing something
obvious?