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

Tagged as

Golabi Webservice Dynamic Invoker

, 13 May 2013 CPOL
Rate this:
Please Sign up or sign in to vote.
Dynamic web service code generator

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)

Share

About the Author

Farhad Hazraty Eini
Software Developer رایان پایا داده محاسب
Iran (Islamic Republic Of) Iran (Islamic Republic Of)
Bachelor of computer software engineer at Urmia University of Technology,
 
Masters of computer software engineer at Shahid Beheshti University,
 
Microsoft Certified Solution Developer : Web Applications,
 
Microsoft Specialist : HTML5 , CSS3 , javascript,
 
MCTS at Mojtame Fanni Tehran (MFT)
 

My Server Solution Blog
Follow on   Google+

Comments and Discussions

 
GeneralMy vote of 5 PinmemberKChandos14-May-13 8:01 
GeneralRe: My vote of 5 PinmemberFarhad Hazraty Eini15-May-13 18:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.141223.1 | Last Updated 14 May 2013
Article Copyright 2013 by Farhad Hazraty Eini
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid