Results 1 to 3 of 3

Thread: Call a webservice method dynamically

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Oct 2003
    Posts
    17

    Call a webservice method dynamically

    Hello all,
    I have a webservice that I would like to coll some of its methods dynamically.

    I am using the following code:

    Code:
     Public Function getit(ByVal dictionaryname As String) As DataSet
            Dim methodname As String = dictionaryname + "DictionariesGet"
            Dim myds As DataSet
            Dim t As Type = GetType(ws.Rex)
            myds.Merge(t.InvokeMember(methodname, BindingFlags.DeclaredOnly Or BindingFlags.Public Or BindingFlags.NonPublic Or BindingFlags.Instance Or BindingFlags.GetProperty, Nothing, Nothing, Nothing))
            Return myds
        End Function
    I am getting a Missing member error but the member does exists. Can I do this or should I just code a long case statement and save the trouble.

    Tal

  2. #2
    I wonder how many charact
    Join Date
    Feb 2001
    Location
    Savage, MN, USA
    Posts
    3,704
    Just write one big Select-Case statement lazy boy.

  3. #3
    I wonder how many charact
    Join Date
    Feb 2001
    Location
    Savage, MN, USA
    Posts
    3,704

    Re: Call a webservice method dynamically

    Is your e-mail still piping?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width