What happened to the "good" generated class names in .NET for web services?
I am using .NET 3.5 to call FedEx web service.
The Fedex (VS2005) sample code has things like:
AddressValidationService addressValidationService = new AddressValidationService();
AddressValidationReply reply = addressValidationService.addressValidation(request);
It's good. I like this. I am calling a method on "Service".
but in .NET 3.5 I get this generated from the same WSDL:
AddressValidationPortTypeClient addressValidationService = new AddressValidationPortTypeClient();
AddressValidationReply reply = addressValidationService.addressValidation(request);
What is this 'PortTypeClient' * # & $. I'm very happy with the progress, but it seems a little crazy. I do not know what it means.
Is there any documentation that tells me what has changed and why?
What tool are you using? wsdl.exe ? or svcutil.exe ? If you add a "service reference" it is WCF, so svcutil.exe is used - these are the names of things as clients. However, it is possible to use the old wsdl.exe tool. In the IDE, you do this by using "More ..." โ "Add Web Reference ..." - this will create a style 2.0 service proxy.
Enter names; WCF is correct - the proxy class is a client, not a service.