# Powershell and SOAP web services with header

**URL:** <https://forums.powershell.org/t/powershell-and-soap-web-services-with-header/1019>\
**Category:** PowerShell Help\
**Created:** [December 31, 2011, 6:30pm UTC](https://forums.powershell.org/t/powershell-and-soap-web-services-with-header/1019 "2011-12-31T18:30:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![archives](https://avatars.discourse-cdn.com/v4/letter/a/bb73d2/32.png) [@archives](https://forums.powershell.org/u/archives)\
**Post date:** [December 31, 2011, 6:30pm UTC](https://forums.powershell.org/t/powershell-and-soap-web-services-with-header/1019/1 "2011-12-31T18:30:00Z")

</div>

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

> Hi,  
>   
> 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.  
>   
>   
> [https://208.79.10.10:443/processXML.slap](https://208.79.10.10:443/processXML.slap)  
>   
> \<?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?\>  
> \<get\_auth\_cust\_select\_request dsn=&quot;RC12345\_Live&quot;\>  
> \<user\_login\_data\>  
> \<login\>myuser\</login\>  
> \<password\>mypassword\</password\>  
> \</user\_login\_data\>  
> \</get\_auth\_cust\_select\_request\>

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.

---

<div class="post-metadata">

**Author:** ![dotnVo](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dotnVo](https://forums.powershell.org/u/dotnVo)\
**Post date:** [May 16, 2024, 9:03pm UTC](https://forums.powershell.org/t/powershell-and-soap-web-services-with-header/1019/2 "2024-05-16T21:03:48Z")

</div>


