I'm trying to consume a SOAP web service at PowerShell 6. I used to do this task with the New-WebServiceProxy
command on early versions but no longer exists on PowerShell 6. Is there any similar command?
I'm using currently PowerShell 7 and the lack of New-WebServiceProxy affect me in several Scripts that was running with this CmdLet as expected in PS 5.1.
As 'danno' answered before, Invoke-WebRequest is the natural option in Core editions.
Googling I found two sites with examples to implement a workaround for SOAP Web Services:
https://www.itprotoday.com/powershell/getting-started-soap-based-web-services-and-powershell
... and ...
https://www.powershellbros.com/send-soap-message-powershell/
Maybe someone says it that this is go back, but really works!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With