Building web service...

T

tascien

Is it possible to put a <WebMethod> inside a class? here is an example:

Class ws
Inherits WebService

public del as Delegated

Class InnerClass
<WebMethod> function MyMethod()
end function
End Class

<WebMethod> function OtherMethod(InnerClass cls)

End Function
End Class

Class Delegated
<WebMethod> function MyMethod2()
End function
End Class

so, the client will access like:

dim inner as new ws.InnerClass
inner.MyMethod()

ws.OtherMethod(inner)

ws.del.MyMethod2()

etc....

Just want to build a good object model...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,239
Members
46,827
Latest member
DMUK_Beginner

Latest Threads

Top