webservice request with Powershell

Hello,

i want to use this webservice:

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

The wsdl is here: 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.

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://manuelpaeth.blogspot.co.uk/2013/01/using-powershell-to-call-webservice.html
http://windowsitpro.com/windows-client/powershell-web-service-proxies