I am having a devil of a time getting WSDL.EXE to consume a WSDL file
that describes a web service (known as AXL) on a Cisco phone switch.
The WSDL file references four schemas and (I believe) two namespaces
via imports and includes. If anyone can help me look at the actual
files, I'll be more than happy to provide them. What follows is the
text of a post on a Cisco programmers forum that describes the problem
I'm having. I'm posting here because I suspect I'll have better luck
finding someone that can help. It's been driving me crazy.
-- Cisco Forum Post --
Microsoft's wsdl.exe tool (used to consume a WSDL file and generate a
client proxy for the web service) errors out on AXLAPI.wsdl. I think it
is in the way that dependent XSD files are imported/included.
Here is the output when you enter:
wsdl axlapi.wsdl
Microsoft (R) Web Services Description Language Utility
[Microsoft (R) .NET Framework, Version 1.1.4322.915]
Copyright (C) Microsoft Corporation 1998-2002. All rights reserved.
Error: Unable to import binding 'AXLAPIBinding' from namespace
'http://www.cisco.co
m/AXLAPIService/'.
- Unable to import operation 'addPhone'.
- The element 'http://www.cisco.com/AXL/API/1.0:addPhone' is missing.
I've tried various things. An MS article
(http://support.microsoft.com/default...b;en-us;820122) seemed
to be a lead. The work around is to edit the files (the WSDL and
referenced schema files) a bit. But I couldn't come up with the right
combination. I will tell you that if you add arguments to the wsdl
command, you get different messages. For example:
wsdl AXLAPI.WSDL axlsoap.xsd axl.xsd
Microsoft (R) Web Services Description Language Utility
[Microsoft (R) .NET Framework, Version 1.1.4322.915]
Copyright (C) Microsoft Corporation 1998-2002. All rights reserved.
Error: Unable to import binding 'AXLAPIBinding' from namespace
'http://www.cisco.co
m/AXLAPIService/'.
- Unable to import operation 'addPhone'.
- These members may not be derived.
I really don't want to have to roll my own SOAP/HTML to talk to the AXL
api. If I can get the proxy to generate, .NET makes the rest a piece of
cake. But this has stymied me so far.
Thanks for any and all help.