T
triffid
Hi,
I'm trying to use VS 2003's WSDL.exe to create the web service proxies
for a book example (Sams Teach Yourself Web Programming in 21 Days,
ahem).
Typing at the VS prompt:-
D:\workdir\src\timeservice> wsdl /l:CD /n:WebBook /out:TimeProxy.cs
http://localhost/TimeService/TimeUtils.asmx?WSDL
gives
"Error: Method not found: Void
System.Web.Services.Discovery.DiscoveryClientProtocol.LoadExternals()"
On MS's site
( http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1454967&SiteID=1
)
someone having a similar problem is told
"seems like the wsdl.exe you're using is of the wrong version. make
sure you are using the same version as the System.Web.Services.dll
available on your machine."
Makes sense. I only have one wsdl.exe, and I have two
System.Web.Services.dlls. I also know that VS '03 is pretty old now,
and will be using an older version of .Net.
However, looking at my PATH, it seems like the first one should be
used, and even explicitly altering my path (see after sig) to remove
the directory containing the wrong version of the DLL (corresponding
to ASP.Net v2.0 instead of 1.1, I assume) doesn't change anything- I
still get the error.
Any thoughts?
- Triffid
Original PATH:-
Y:\Program Files\Microsoft Visual Studio .NET 2003\Common7\IDE;Y:
\Program Files\
Microsoft Visual Studio .NET 2003\VC7\BIN;Y:\Program Files\Microsoft
Visual Stud
io .NET 2003\Common7\Tools;Y:\Program Files\Microsoft Visual
Studio .NET 2003\Co
mmon7\Tools\bin\prerelease;Y:\Program Files\Microsoft Visual
Studio .NET 2003\Co
mmon7\Tools\bin;Y:\Program Files\Microsoft Visual Studio .NET 2003\SDK
\v1.1\bin;
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322;C:\WINDOWS\system32;C:
\WINDOWS;C:\W
INDOWS\System32\Wbem;Y:\Program Files\Common Files\GTK\2.0\bin;Y:
\Program Files\
Java\jdk1.5.0_07\bin;C:\Program Files\Common Files\Adobe\AGL;"Y:
\Program Files\Z
one Labs\ZoneAlarm\MailFrontier";C:\Program Files\Microsoft SQL Server
\90\Tools\
binn\;C:\Program Files\Common Files\Ulead Systems\MPEG;C:\WINDOWS
\Microsoft.NET\
Framework\v2.0.50727;Y:\Program Files\QuickTime\QTSystem\;
Altered PATH:-
Y:\Program Files\Microsoft Visual Studio .NET 2003\Common7\IDE;Y:
\Program Files\Microsoft Visual Studio .NET 2003\VC7\BIN;Y:\Program
Files\Microsoft Visual Studio .NET 2003\Common7\Tools;Y:\Program Files
\Microsoft Visual Studio .NET 2003\Common7\Tools\bin\prerelease;Y:
\Program Files\Microsoft Visual Studio .NET 2003\Common7\Tools\bin;Y:
\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\bin; C:
\WINDOWS\Microsoft.NET\Framework\v1.1.4322;C:\WINDOWS\system32;C:
\WINDOWS;C:\WINDOWS\System32\Wbem;Y:\Program Files\Common Files\GTK
\2.0\bin;Y:\Program Files\Java\jdk1.5.0_07\bin;C:\Program Files\Common
Files\Adobe\AGL;"Y:\Program Files\Zone Labs\ZoneAlarm\MailFrontier";C:
\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files
\Common Files\Ulead Systems\MPEG;
I'm trying to use VS 2003's WSDL.exe to create the web service proxies
for a book example (Sams Teach Yourself Web Programming in 21 Days,
ahem).
Typing at the VS prompt:-
D:\workdir\src\timeservice> wsdl /l:CD /n:WebBook /out:TimeProxy.cs
http://localhost/TimeService/TimeUtils.asmx?WSDL
gives
"Error: Method not found: Void
System.Web.Services.Discovery.DiscoveryClientProtocol.LoadExternals()"
On MS's site
( http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1454967&SiteID=1
)
someone having a similar problem is told
"seems like the wsdl.exe you're using is of the wrong version. make
sure you are using the same version as the System.Web.Services.dll
available on your machine."
Makes sense. I only have one wsdl.exe, and I have two
System.Web.Services.dlls. I also know that VS '03 is pretty old now,
and will be using an older version of .Net.
However, looking at my PATH, it seems like the first one should be
used, and even explicitly altering my path (see after sig) to remove
the directory containing the wrong version of the DLL (corresponding
to ASP.Net v2.0 instead of 1.1, I assume) doesn't change anything- I
still get the error.
Any thoughts?
- Triffid
Original PATH:-
Y:\Program Files\Microsoft Visual Studio .NET 2003\Common7\IDE;Y:
\Program Files\
Microsoft Visual Studio .NET 2003\VC7\BIN;Y:\Program Files\Microsoft
Visual Stud
io .NET 2003\Common7\Tools;Y:\Program Files\Microsoft Visual
Studio .NET 2003\Co
mmon7\Tools\bin\prerelease;Y:\Program Files\Microsoft Visual
Studio .NET 2003\Co
mmon7\Tools\bin;Y:\Program Files\Microsoft Visual Studio .NET 2003\SDK
\v1.1\bin;
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322;C:\WINDOWS\system32;C:
\WINDOWS;C:\W
INDOWS\System32\Wbem;Y:\Program Files\Common Files\GTK\2.0\bin;Y:
\Program Files\
Java\jdk1.5.0_07\bin;C:\Program Files\Common Files\Adobe\AGL;"Y:
\Program Files\Z
one Labs\ZoneAlarm\MailFrontier";C:\Program Files\Microsoft SQL Server
\90\Tools\
binn\;C:\Program Files\Common Files\Ulead Systems\MPEG;C:\WINDOWS
\Microsoft.NET\
Framework\v2.0.50727;Y:\Program Files\QuickTime\QTSystem\;
Altered PATH:-
Y:\Program Files\Microsoft Visual Studio .NET 2003\Common7\IDE;Y:
\Program Files\Microsoft Visual Studio .NET 2003\VC7\BIN;Y:\Program
Files\Microsoft Visual Studio .NET 2003\Common7\Tools;Y:\Program Files
\Microsoft Visual Studio .NET 2003\Common7\Tools\bin\prerelease;Y:
\Program Files\Microsoft Visual Studio .NET 2003\Common7\Tools\bin;Y:
\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\bin; C:
\WINDOWS\Microsoft.NET\Framework\v1.1.4322;C:\WINDOWS\system32;C:
\WINDOWS;C:\WINDOWS\System32\Wbem;Y:\Program Files\Common Files\GTK
\2.0\bin;Y:\Program Files\Java\jdk1.5.0_07\bin;C:\Program Files\Common
Files\Adobe\AGL;"Y:\Program Files\Zone Labs\ZoneAlarm\MailFrontier";C:
\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files
\Common Files\Ulead Systems\MPEG;