Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How to create a batch file to pull xml file from HTTPS link?

Hi All,

I need to pull xml file from HTTPS link which has username & password from PI.

I tried using SOAP Axis adapter for this purpose but its not pulling anything.

Now, I am thinking of using another alternative which is using "Run Operating System Command After Message Processing".

My PI server is on Windows Server 2008 and so i need a batch file to be created. Can anyone let me know how to create a .bat file.

I tried playing around with some code and its like -

@echo off

DIR=C:\Program Files (x86)\GnuWin32\bin

FILE=Filename_.`date +"%Y%m%d"`.xml

# log file.

LOGFILE=wget.log

# wget download url from where you need to download

URL=https://xecdapi.xe.com/v1/convert_to.xml/?to=BRL&from=AUD

cd $DIR

wget $URL -O $FILE -o $LOGFILE

Please let me know if its right or else let me know the correct code.

Thanks in advance !!

Neha verma

Former Member
Not what you were looking for? View more on this topic or Ask a question