Last post Nov 27, 2012 10:26 PM by Haixia Xie - MSFT
Nov 26, 2012 10:48 AM|c0pe|LINK
using VS 2010, added a 'service reference' for a Tivoli Endpoint Manager SOAP based API, it has WSDL.
1. I noticed that when using the 'service reference' all the methods have a 'Request' and 'Response' pair... for example, if I add a 'web reference' using this same WSDL, I get a 'GetRelevanceResult' method, whereas if I use a 'service reference' I get a
'GetRelevanceResultRequest' AND a 'GetRelevanceResultResponse' method?
2. Also, when adding a 'web reference', the main class to instantiate to start using the service is called 'RelevanceBinding', however when adding a 'service reference', that class is not there? ... and I'm not sure what class should be used to instantiate
the main class to begin using the service?
Nov 27, 2012 10:26 PM|Haixia Xie - MSFT|LINK
You can find the discussion of the difference between "Add Web Reference" and "Add Service Reference"
Add Web Reference is a wrapper over
wsdl.exe and can be used to create proxies for .NET 1.1 or 2.0 clients. Add Service Reference is a wrapper over
svcutil.exe and also creates clients proxies (and additionally
web.config entries). These proxies, however, can only be consumed by .NET 3.0+ clients.
Hope it helps.