Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 3798a50be7

Fetching latest commit…

Cannot retrieve the latest commit at this time

..
Failed to load latest commit information.
ChangeLog
CommandLineOptions.cs
Driver.cs
Makefile
README
client-proxy-gen.exe.sources

README

This tool is to create client proxy types from an existing service contract
runtime type (I believe it should be part of svcutil, but seems like it is
not).

If you have below as test.dll:

--------
	using System.ServiceModel;

	[ServiceContract]
	public interface ITestService
	{
		[OperationContract]
		string Echo (string input);
	}
--------

running "mono --debug client-proxy-gen.exe test.dll" results in
"output.cs" like below:

--------
	[System.ServiceModel.ServiceContractAttribute()]
	public interface ITestService {

	    [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/ITestService/Echo", ReplyAction="http://tempuri.org/ITestService/EchoResponse")]
	    string Echo(string input);
	}

	public class TestServiceProxy : System.ServiceModel.ClientBase<ITestService>, ITestService {

	    TestServiceProxy() {
	    }

	    TestServiceProxy(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress endpoint) : 
	            base(binding, endpoint) {
	    }

	    public string Echo(string input) {
	        return base.InnerProxy.Echo(input);
	    }
	}
--------

Note that this tool does not assume we have working ClientBase<TChannel>.

Something went wrong with that request. Please try again.