Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I customize WCF client code generation?

Tags:

.net

wsdl

wcf

t4

Are there any tools or code generation templates that will let me customize and extend the WCF cliend proxies? It's not that svcutil is horribly broken, but rather I'd like to be able to generatate additional code based on the service contract, not just be limited the svcutil output.

like image 695
Scott Weinstein Avatar asked Jun 23 '09 23:06

Scott Weinstein


People also ask

How will you specify a method is available to access by client in WCF?

With the service running, right click the project that will contain the WCF client proxy and select Add > Service Reference. In the Add Service Reference Dialog, type in the URL to the service you want to call and click the Go button. The dialog will display a list of services available at the address you specify.

What is required by the client to generate proxy?

A metadata exchange endpoint is required to support the dynamic generation of proxy and configuration for client applications. You must explicitly enable metadata exchange by adding the endpoint and enabling the metadata exchange behavior.


1 Answers

Have you looked at the Web Service Software Factory? It allows you to have complete control over the generation of proxy code.

like image 180
John Saunders Avatar answered Sep 29 '22 22:09

John Saunders