I'd like to access a web service with a given (simple) WSDL from within Windows PowerShell.
Is there an easy way to do this?
I'd like to access a web service with a given (simple) WSDL from within Windows PowerShell.
Is there an easy way to do this?
One way would be to use WSDL.exe to generate wrapper classes - compile the generated source and use the strongly typed classes from PowerShell. The whole generate - compile - instantiate process can be easily done automatically from PowerShell.
If you are using PowerShell 2.0, use New-WebServiceProxy as suggested in the other answer.