Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Execute SOAP in Powershell

$
0
0

Hi Smart people,

I need to execute a soap request using powershell, below is the website that the information is found and the service:

http://www.facilities.co.za/valid8service/valid8service.asmx?op=Valid8Address

SOAP 1.1

POST /valid8service/valid8service.asmx HTTP/1.1
Host: legacyexternal.facilities.co.za
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://www.facilities.co.za/valid8service/valid8service/Valid8Address"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <Valid8Address xmlns="http://www.facilities.co.za/valid8service/valid8service">
      <ID>string</ID>
      <Address1>string</Address1>
      <Address2>string</Address2>
      <Address3>string</Address3>
      <Address4>string</Address4>
      <Address5>string</Address5>
      <Address6>string</Address6>
      <PostCode>string</PostCode>
    </Valid8Address>
  </soap:Body>
</soap:Envelope>  


([string](0..40|%{[char][int](32+("46738372797663 0357269848489088380727378888884697673676584723289657279791467797709").substring(($_*2),2))}) -replace "\s{1}","")

Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>