views:

43

answers:

2

Hi all,

How to generate client proxy for a WCF service to a particular location?

Suppose I want to create the proxy class in a folder "C:\Client\".

Please help.

+1  A: 

svcutil tool can help you

svcutil.exe /d:C:\Client\ /out:generatedProxy.cs http://localhost:8000/ServiceModelSamples/service
ArsenMkrt
Nice, I didn't know the /d switch.
Philippe
+1  A: 

When you run svcutil.exe, you can specify the output location using the o switch:

svcutil.exe whatever.wsdl /o:C:\Client\Services.cs

(Should be something like that, but maybe you have to quote the full path or something)

Philippe