Click here to Skip to main content
13,351,050 members (55,011 online)
Click here to Skip to main content
Add your own
alternative version


9 bookmarked
Posted 13 Jun 2007

Generate .NET 2.0 C# proxy file from a JBOSS Web Service

, 13 Jun 2007
Rate this:
Please Sign up or sign in to vote.
Solve the problem of failing to update a WebService after upgrading to NET 2.0 using VS2005 (using JBOSS).

Screenshot - screenshot.jpg


I had a problem when converting my application from VS2003 to VS 2005: Failed to update the Web Service - got an error indicating bad schema format.


This class provides a solution for the .NET 2.0 WSDL - JBOSS problem: When converting a web project from .NET 1.1 to .NET 2.0 and trying to update a Web Service that is connected to a WSDL on a JBOSS service, an error is raised. This util uses WSDL.exe of .NET 1.1 to generate and update the proxy class file.

Using the Code

Execute the application, enter the parameters as described, and click "Execute". The result is a new C# proxy class file, in the destination folder that you entered before execution.

The following code shows how to use WSDL.exe as an external util:

//Declare and instantiate a new process component.
System.Diagnostics.Process process1;
process1 = new System.Diagnostics.Process();
    //Do not receive an event when the process exits.
    process1.EnableRaisingEvents = false;
    process1.StartInfo.FileName = "wsdl.exe";
    process1.StartInfo.WorkingDirectory = wsdlCommandPath;
    process1.StartInfo.Arguments = "/n:" + nameSpace + @" /out:" + 
                                   generatedFileName+ " " + wsdlFilePath;

    process1.StartInfo.UseShellExecute = false;
    process1.StartInfo.RedirectStandardError = true;
    process1.StartInfo.RedirectStandardOutput = true;

    string output = process1.StandardOutput.ReadToEnd();
    txtOutput.Text = output;

    string outputErr = process1.StandardError.ReadToEnd();
    if (outputErr != "") 
    txtError.Text = outputErr;


Points of Interest

I can't help wonder why Microsoft can't make the conversion go smoothly. Why?


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


About the Author

Web Developer
Israel Israel
My name is Tohar Trabinovitch. I am 32 years old. I am a Software Engineer, graduated on 2002. My expertise is in GUI / Web applications. I am developing in the following technologies for the last 7 years: Web applications using ASP, PHP, JS, AJAX (and before it called AJAX), and .NET (1.1 / 2.0) using C# language (Smart Client / web Services).

You may also be interested in...


Comments and Discussions

GeneralGreat idea. Respect. Pin
Michael Lvov13-Jun-07 2:40
memberMichael Lvov13-Jun-07 2:40 
Rose | [Rose]
GeneralUseful utility Pin
Avner Raz13-Jun-07 2:26
memberAvner Raz13-Jun-07 2:26 

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

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

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.180111.1 | Last Updated 13 Jun 2007
Article Copyright 2007 by Tohar
Everything else Copyright © CodeProject, 1999-2018
Layout: fixed | fluid