Hi,
VS.NET 2005 - Visual Basic
I have just written my first Webservice and have exposed a couple of funtions/subs using:
<WebMethod()> Public Sub Finish(ByVal JobID As Integer, ByVal JobStatus As JobStatus)
I would like to expose a class also and its public properties. Is it possible to do this with Webservices? and how do I do this? Ideally, I dont want to have to create this as a function/sub and have all the variable properties as parameters.
If I put the <WebMethod()> Attribute before the class I want to make public i.e. <WebMethod()> Public Class EIMail
I get the following error....
Error 1 Attribute 'WebMethodAttribute' cannot be applied to 'EIMail' because the attribute is not valid on this declaration type. c:\inetpub\ 11 2
Please help.
thanks
VS.NET 2005 - Visual Basic
I have just written my first Webservice and have exposed a couple of funtions/subs using:
<WebMethod()> Public Sub Finish(ByVal JobID As Integer, ByVal JobStatus As JobStatus)
I would like to expose a class also and its public properties. Is it possible to do this with Webservices? and how do I do this? Ideally, I dont want to have to create this as a function/sub and have all the variable properties as parameters.
If I put the <WebMethod()> Attribute before the class I want to make public i.e. <WebMethod()> Public Class EIMail
I get the following error....
Error 1 Attribute 'WebMethodAttribute' cannot be applied to 'EIMail' because the attribute is not valid on this declaration type. c:\inetpub\ 11 2
Please help.
thanks