Does anyone have a naming strategy that works well for proxy classes?
For example, if I am provided with three web services in two projects:
XWs AService.asmx YWs BService.svc CService.svc
What will be used as the service reference name and namespace for AService , BService and CService ?
In general, I would like to indicate something in the proxy name / namespace that the thing used is not a specific class, but is a proxy server, so it does not interfere with the use of specific classes [and forced use of aliasing or class names with names], and therefore we do not hide the fact that the flight is taking place (I believe that by default for the Wcf Service Proxy the suffix Client is used by default). It is also important that it deals with cases where you write a wrapper service / shim that redirects the [sub] set of calls to another reference service.
I used various styles (adding Ws , ServiceProxy , Ref or Proxy suffixes? Prefix using ServiceName. ), But they were never fully satisfied with them.
What worked for you? Do any style guides reference a naming style?
Edit: although the answer โChisoโ covers the bulk of my question, I'm still interested in hearing answers to:
- Strategy for proxy class names, as in the example above
- A style guide that mentions a proxy naming strategy.
coding-style web-services naming-conventions proxy-classes wcf
Ruben bartelink
source share