Building web service...

Discussion in 'ASP .Net Web Services' started by tascien, Nov 9, 2005.

  1. tascien

    tascien Guest

    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...
    tascien, Nov 9, 2005
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.

Share This Page