-
-
Save lopex/3a470d1443338d37e45042ca4336fd55 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/sh | |
cat message.xml | \ | |
sed s/_NIP_/jakisnip/ | \ | |
curl -s -d @- -X POST \ | |
-H "Content-Type: text/xml;charset=UTF-8" \ | |
-H "SOAPAction: http://www.mf.gov.pl/uslugiBiznesowe/uslugiDomenowe/AP/WeryfikacjaVAT/2018/03/01/WeryfikacjaVAT/SprawdzNIP" \ | |
https://sprawdz-status-vat.mf.gov.pl | \ | |
xmlstarlet sel \ | |
-N s="http://www.mf.gov.pl/uslugiBiznesowe/uslugiDomenowe/AP/WeryfikacjaVAT/2018/03/01" \ | |
-t -m "//s:WynikOperacji/s:Kod/text()" -c . |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment