SYMPTOMS
Visual Studio 2005 on Windows Vista when compiled Virtuozzo 3.0.3 web reference wsdl compiller gets errors:Error 1 Custom tool error: Unable to import WebService/Schema. Unable to import binding 'backmBinding' from namespace
'http://www.swsoft.com/webservices/vza/WSDL/3.0.3/backm'.
Unable to import operation 'backup_ve'. The XML element named 'operator_periodic' from namespace
'http://www.swsoft.com/webservices/vza/3.0.3/protocol' is already present in the current scope.
C:\AppDev\TestVZA\Properties\Settings.settings 1 1 TestVZA
CAUSE
Duplicate records in Reference.map file.RESOLUTION
Please open file %YOUR_PROJECT%\Web References\VZA\Reference.map. There are two includes of http://www.swsoft.com/webservices/vza/3.0.3/VZAProtocol.xsd in this file. Remove one of them and try to find the line with “filename="VZAProtocol0.xsd” - remove or comment it as well.E.g.
<DiscoveryClientResult referenceType="System.Web.Services.Discovery.SchemaReference"
url="http://www.swsoft.com/webservices/vza/3.0.3/VZAProtocol.xsd" filename="VZAProtocol0.xsd" /> After that, please add Reference.cs to project (if it was not added automatically) and try to compile it again. WSDL compiler gets some number of warnings, BUT generates Reference.cs file.