views:

652

answers:

1

I really need to add some of my own convenience methods into the auto-generated proxy files that are output by wsdl.exe and svcutil.exe. What I am doing is adding another type of OperationAsync method for each service method. I would like to be able to invoke a tool from a command line like this:

superwsdl.exe [wsdl command-line arguments here]

supersvcutil.exe [svcutil command-line arguments here]

And have the outputted file include my extra methods. Does anyone know a way of doing this? If it has to be another format of command line, that is OK too.

A: 

It should be your consol application written in for eg. C#, which will take some arguments and do something like this:

...

Process svcUtil = new Process();
svcUtil.StartInfo.FileName   = "svcutil.exe";
svcUtil.StartInfo.Arguments = "... some arguments here: args[0], args[1], ...";
svcUtil.Start();

...

Vedran

Vedran