B
Burak
Hello,
I read in a book that if we want a class in a web
service to be available on the client, we should precede it with the
"WebService" attribute.
I created a simple web service as follows
Public Class Strings
Inherits System.Web.Services.WebService
<WebService()> _
Public Class MeasureClass
Public height As Integer
Public width As Integer
End Class
<WebService()> _
Public Class ColorClass
Public red As Integer
Public blue As Integer
Public green As Integer
End Class
<WebMethod()> _
Public Function ToUpper(ByVal inputString As String) As String
Return inputString.ToUpper
End Function
End Class
When I access this web service from a client, I only
see the Strings class and neither the MeasureClass nor
the ColorClass.
How can I make these two classes available to the
client?
Thank you,
Burak
I read in a book that if we want a class in a web
service to be available on the client, we should precede it with the
"WebService" attribute.
I created a simple web service as follows
Public Class Strings
Inherits System.Web.Services.WebService
<WebService()> _
Public Class MeasureClass
Public height As Integer
Public width As Integer
End Class
<WebService()> _
Public Class ColorClass
Public red As Integer
Public blue As Integer
Public green As Integer
End Class
<WebMethod()> _
Public Function ToUpper(ByVal inputString As String) As String
Return inputString.ToUpper
End Function
End Class
When I access this web service from a client, I only
see the Strings class and neither the MeasureClass nor
the ColorClass.
How can I make these two classes available to the
client?
Thank you,
Burak