Calling a web service link through linux script
Hi,
Problem Description: Our project have web service created which we use to create data files from database. To create these files we have to open a particular link which automatically start creating files and MQ them as soon as we hit it in web browser.
Link looks like as below
xxxx.xx.:8000/$filter=Country eq 'US' & language='EN-US' & $format=MQ
There is a user id and password too,which appear as a prompt after putting the link in web browser and hitting enter.
We have to create a script to execute this link everyday through linux. We have tried "curl" command to achieve the result but couldn't get success.We are following issue
1) In link "space" "$" and "&" characters have been used, which are pre-defined symbol for linux. So when it pass through curl command so it takes them as standard {for example it takes $format as variable)
2) when we are somehow able to manage to pass correct link,its give below error
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="//schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<soapenv:Fault>
<faultcode>soapenv:Server</faultcode>
<faultstring>Policy Falsified</faultstring>
<faultactor>xxxx.xx.com:8000/$filter=Country eq 'US' & language='EN-US' & $format=MQ</faultactor>
<detail>
<l7:policyResult status="Assertion Falsified" xmlns:l7=".layer7tech.com/ws/policy/fault"/>
</detail>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>
Could anyone provide the suggestions to solve the issue ?