wsdl: Der Begriff 'wsdl' wird nicht als Name eines Cmdlets erkannt

647
Thufir

Wie verwende ich den wsdlBefehl von Windows 10?

PS C:\Users\thufir> PS C:\Users\thufir> wsdl http://holidaywebservice.com/HolidayService_v2/HolidayService2.asmx wsdl : The term 'wsdl' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1 + wsdl http://holidaywebservice.com/HolidayService_v2/HolidayService2.a ... + ~~~~ + CategoryInfo : ObjectNotFound: (wsdl:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException  PS C:\Users\thufir> 

Ich habe keinen Administratorzugang. Systeminformationen:

PS C:\Users\thufir> PS C:\Users\thufir> get-host   Name : ConsoleHost Version : 5.1.14393.1944 InstanceId : d740419c-8824-4cf5-a0cb-3b26437406bb UI : System.Management.Automation.Internal.Host.InternalHostUserInterface CurrentCulture : en-CA CurrentUICulture : en-US PrivateData : Microsoft.PowerShell.ConsoleHost+ConsoleColorProxy DebuggerEnabled : True IsRunspacePushed : False Runspace : System.Management.Automation.Runspaces.LocalRunspace    PS C:\Users\thufir> PS C:\Users\thufir> $PSVersionTable  Name Value ---- ----- PSVersion 5.1.14393.1944 PSEdition Desktop PSCompatibleVersions  BuildVersion 10.0.14393.1944 CLRVersion 4.0.30319.42000 WSManStackVersion 3.0 PSRemotingProtocolVersion 2.3 SerializationVersion 1.1.0.1   PS C:\Users\thufir> 

Seltsamerweise funktioniert der Befehl gut unter Linux PowerShell, jedoch nicht unter Windows 10 wie hier .

Zum Schutz der Privatsphäre habe ich die Powershell-Eingabeaufforderung geändert: Funktionsaufforderung {"thufir>"} Das pwdhat die Form: C:\Users\<username> >

0
Ich habe es in Powershell selbst ausprobiert und die reguläre cmd-Eingabeaufforderung. Dies ist unter Windows. (Ich werde das q aktualisieren, um das zu zeigen, bitte.) Nicht Linux. Thufir vor 6 Jahren 0
dazu: Windows 10 ist das Betriebssystem. Ich benutze manchmal Linux, aber dieses q ist schlichtes Vanille-Windows. voller Pfad für ...? Ich habe das q mit Pfadinformationen am unteren Rand aktualisiert. Thufir vor 6 Jahren 0
Wird nicht geprüft, ob das gesamte .NET @James installiert ist, wird geprüft. Vielen Dank. Wußte nichts von svcutil. Thufir vor 6 Jahren 0

1 Antwort auf die Frage

3
SiriA

Haben Sie .NET SDK installiert? Zuerst müssen Sie überprüfen, ob Sie die Datei wsdl.exe am folgenden Speicherort verfügbar haben:

C:\Program Files (x86)\Microsoft SDKs\Windows\<version folder>\bin folder 

Wenn nicht, installieren Sie das .NET SDK von der MSDN-Website.

Außerdem erwartet der Befehl wsdl die WSDL-URL des Web-Service. Sieht so aus, als würden Sie die ASMX-URL übergeben - was möglicherweise nicht hilft. In diesem Fall lautet die WSDL-URL http://holidaywebservice.com/HolidayService_v2/HolidayService2.asmx?wsdl