October 2017
Intermediate to advanced
440 pages
11h 47m
English
The New-WebServiceProxy command is used to connect a Web Services Description Language (WSDL) document. The document is written in XML and can be viewed in a browser.
The command accesses a service anonymously by default. If the current user should be passed on, the UseDefaultCredential parameter should be used. If explicit credentials are required, the Credential parameter can be used.
The following example creates a proxy, which is used to access a web service that exposes information about Mendeleev's periodic table of the elements:
$periodicTable= New-WebServiceProxy http://www.webservicex.net/periodictable.asmx?WSDL -Namespace Mendeleev
The object returned by the command holds information about the connection:
Read now
Unlock full access