Click here to Skip to main content
15,891,253 members
Articles / Web Development / ASP.NET

Dynamic Discovery and Invocation of Web Services

Rate me:
Please Sign up or sign in to vote.
4.71/5 (37 votes)
26 May 2007CPOL2 min read 164.2K   3.9K   76  
How to invoke web services without using add/Web reference
using System;
using System.Collections.Generic;
using System.Text;
using System.Reflection;

namespace WsdlReader
{
    class properties
    {
        public properties(int Capacity)
        {
            myValue = new string[Capacity];
            MyType = new Type[Capacity];
        }

        [System.ComponentModel.Category("Data"),
         System.ComponentModel.Description("The Type of parameter ")]
        public Type Type
        {
            get 
            { 
                return MyType[index]; 
            }

            set 
            { 
                MyType[index] = value;
            }
        }

        [System.ComponentModel.Category("Data"),
         System.ComponentModel.Description(" Enter value but whit attention Type parameter")]
        public string Value
        {
            get
            {
                return myValue[index];
            }
            set
            {
                myValue[index] = value;
            }
        }

        [System.ComponentModel.Browsable(false)]
        public int Index
        {
            set { index = value; }
            get { return index; }
        }

        [System.ComponentModel.Browsable(false)]
        public string[] MyValue
        {
            get { return myValue; }
        }

        [System.ComponentModel.Browsable(false)]
        public Type[] TypeParameter
        {
            get { return MyType; }
            set { MyType = value; }
        }



        private static string[] myValue;
        private static int index;
        private static Type[] MyType;
        
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Iran (Islamic Republic of) Iran (Islamic Republic of)
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions