Click here to Skip to main content
Click here to Skip to main content

Golabi Webservice Dynamic Invoker

By , 13 May 2013
 

Introduction

In some projects, we need to add a reference to an inter network web service that is not public on the Internet.

We need some kind of tool to make a reference to that web service without taking our development tools to that network.

Background

In this project, we use wsdl.exe to generate a class from a web service URL:

Then we use csc.exe to generate a DLL from the generated class from the last step:

In the last step, we use the System.Reflection class to invoke the methods of the DLL.

Using the Application

First of all, you should mention the URL and the version of .NET Framework you want to use for compiling the generated class. Then click Discover button in the form:

In the code tab, you can see the generated class from the given web service URL.

In the Explorer tab, you can see the reflected methods from the generated DLL:

By pressing Invoke button, the input form will be dynamically generated:

After giving the parameters, you can receive the result from web service:

Points of Interest

This tool is some kind of Code Generators Application. There are some cool Dynamic invocation tools inside this project that you should discover by yourself!

License

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

About the Author

Farhad Hazraty Eini
Software Developer SoftwareUUT
Iran (Islamic Republic Of) Iran (Islamic Republic Of)
Member
Software Engineer of Urmia University of Technology (دانشگاه صنعتی ارومیه),
MCTS in Mojtame Fanni Tehran (MFT),
 
Worked with :
C#,
C++,
ASP.net,
SQL Server
 
My Server Solution Blog

Comments and Discussions

Comment 0 messages have been posted for this article Visit http://www.codeproject.com/Tips/591608/GolabiplusWebserviceplusDynamicplusInvoker to post and view comments on this article, or click here to get a print view with messages.

Permalink | Advertise | Privacy | Mobile
Web02 | 2.6.130513.1 | Last Updated 13 May 2013
Article Copyright 2013 by Farhad Hazraty Eini
Everything else Copyright © CodeProject, 1999-2013
Terms of Use