# webservice request with Powershell

**URL:** <https://forums.powershell.org/t/webservice-request-with-powershell/8082>\
**Category:** PowerShell Help\
**Created:** [February 17, 2017, 8:32am UTC](https://forums.powershell.org/t/webservice-request-with-powershell/8082 "2017-02-17T08:32:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tripelm](https://avatars.discourse-cdn.com/v4/letter/t/e495f1/32.png) [@tripelm](https://forums.powershell.org/u/tripelm)\
**Post date:** [February 17, 2017, 8:32am UTC](https://forums.powershell.org/t/webservice-request-with-powershell/8082/1 "2017-02-17T08:32:00Z")

</div>

Hello,

i want to use this webservice:

[http://ec.europa.eu/taxation\_customs/vies/services/checkVatService](http://ec.europa.eu/taxation_customs/vies/services/checkVatService)  
Method: POST  
Content-Type application/xml

this is my request:

[https://gist.github.com/anonymous/6f3902dc106e1ff996c2723a42a56986](https://gist.github.com/anonymous/6f3902dc106e1ff996c2723a42a56986)

The wsdl is here: [http://ec.europa.eu/taxation\_customs/vies/checkVatService.wsdl](http://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl)

How can i send the xml request with powershell and get the response there?

Thank you in advance.

---

<div class="post-metadata">

**Author:** ![daniel-krebs](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/daniel-krebs/32/484_2.png) [@daniel-krebs](https://forums.powershell.org/u/daniel-krebs)\
**Post date:** [February 17, 2017, 2:30pm UTC](https://forums.powershell.org/t/webservice-request-with-powershell/8082/2 "2017-02-17T14:30:21Z")

</div>

Please check out the New-WebServiceProxy cmdlet. Here are a few links with examples:

[https://msdn.microsoft.com/en-us/powershell/reference/4.0/microsoft.powershell.management/new-webserviceproxy](https://msdn.microsoft.com/en-us/powershell/reference/4.0/microsoft.powershell.management/new-webserviceproxy)

> **[Using Powershell to call a webservice with a complex data type](https://manuelpaeth.blogspot.com/2013/01/using-powershell-to-call-webservice.html)**
>
> Hey, in the last time I often had to implement webservice calls into my powershell scripts. I havent done this very often in the past, so I...

> **[ITPro Today: IT News, How-Tos, Trends, Case Studies, Career Tips, More](https://www.itprotoday.com)**
>
> IT Pro Today Homepage

---

<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, 8:39pm UTC](https://forums.powershell.org/t/webservice-request-with-powershell/8082/3 "2024-05-16T20:39:30Z")

</div>


