0
我想用這個Web服務:web服務(checkVatService)PowerShell的
http://ec.europa.eu/taxation_customs/vies/services/checkVatService 方法:POST 內容類型的應用程序/ XML
,這是我的要求:
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:ec.europa.eu:taxud:vies:services:checkVat:types">
<soapenv:Header/>
<soapenv:Body>
<urn:checkVat>
<urn:countryCode>ES</urn:countryCode>
<urn:vatNumber>A28017895</urn:vatNumber>
</urn:checkVat>
</soapenv:Body>
wsdl在這裏:http://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl
如何發送xml請求與powershell並獲得響應那裏?
預先感謝您。
當我嘗試這方面,我得到這個錯誤: 調用-的WebRequest:響應的內容不能被解析,因爲Internet Explorer的引擎不可用,或Internet Explorer的首次啓動配置不完整。指定UseBasicParsing參數並重試。 – TripelM
根據[此鏈接](https://stackoverflow.com/questions/38005341/the-response-content-cannot-be-parsed-because-the-internet-explorer-engine-is-no)使用' - UseBasicParsing'開關作爲錯誤狀態應該可以解決這個問題。它似乎也打開IE並完成初始設置也應該起作用。 –
它工作:)謝謝。 – TripelM