Powershell and SOAP web services with header

by alextt at 2012-11-22 02:22:40


This is my first post and here is my problem. I’m trying to download file from SOAP web service usign Powershell scripts but I’m not sure if that is possible. Would that work with System.Net.WebClient or Invoke-WebRequest? Any help is appriciated. Below is the example of header I need to pass to service.

<?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?>
<get_auth_cust_select_request dsn=&quot;RC12345_Live&quot;>
by MattG at 2012-11-22 05:57:22
If what you’re trying to do is interact with a REST-based web service, I think what you may be looking for is Invoke-RestMethod.