cancel
Showing results for 
Search instead for 
Did you mean: 

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

former_member217888
Participant
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

nitindeshpande
Active Contributor
0 Kudos

Hello Neha,

You can use the below blog from Michal to pull the XML file from a web page using Axis -

Please let me know if you face any issues in this.

Regards,

Nitin

former_member217888
Participant
0 Kudos

Hi,

I followed this blog and configured everything same but my Channel is not polling anything and is still Green.

Please see other thread which i have opened for this issue.

Let me know if u can help in this regard.

Thanks

Neha Verma

former_member186851
Active Contributor
0 Kudos

Hello Neha,

Which version of PI your using?

former_member217888
Participant
0 Kudos

Hi,

Its PI 7.3 SP5.