Using the batch script was uneasy for us, as it means we had to schedule 2 jobs: one to get or retrieve the files from Ariba and another job to process the file.
A much easier solution, was to call the Ariba java library straight away from our java code. To do that we had to dig into the batch file and decompile the java code.
Then to call the Ariba Java API, you simply add Ariba libraries to your classapth and you call the following code:
public class CallAriba {
public static void main(String[] args) {
String[] s = buildArg();
ariba.filetransferclient.Main.main(s);
}
private static String[] buildArg() {
String[] arguments = {
"get",
"-url",
"https://s1.ariba.com/Buyer/filedownload?realm=myCompanyRealm",
"-sharedSecret",
"myCompanySharedSecret",
"-downloadDir",
"C:/temp/ariba",
"-timestampFile",
"C:/temp/ariba/time.txt",
"-filePrefix",
"OK2Pay",
"-logFile",
"C:/temp/ariba/logs/log-test.log",
"-proxyHost",
"10.0.225.201",
"-proxyPort",
"8080",
"-unzipDirs",
"false",
"--",
"-event",
"Export Payment Requests"};
return arguments;
}
Its really an Excellent post. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog. Thanks for sharing....
ReplyDeleteDevops Training courses
python Training in chennai
Devops Training in Bangalore
I was recommended this web site by means of my cousin.
ReplyDeleteI am now not certain whether this post is written through him as nobody else recognise such precise about my difficulty. You're amazing! Thank you!
selenium training in Chennai
selenium training in Tambaram
selenium training in Velachery
selenium training in Omr
selenium training in Annanagar
After reading this web site I am very satisfied simply because this site is providing comprehensive knowledge for you to audience.
Thank you to the perform as well as discuss anything incredibly important in my opinion. We loose time waiting for your next article writing in addition to I beg one to get back to pay a visit to our website in
Outstanding blog post, I have marked your site so ideally I’ll see much more on this subject in the foreseeable future.
ReplyDeletePython Online training
python Course institute in Chennai
Python Course institute in Bangalore
The Blogs are more useful to get an knowledge about Python Languages. To learn more Visit here
ReplyDeletepython training in chennai | python training in annanagar | python training in omr | python training in porur | python training in tambaram | python training in velachery
Resources like the one you mentioned here will be very useful to me ! I will post a link to this page on my blog. I am sure my visitors will find that very useful DevOps Training | Certification in Chennai | DevOps Training | Certification in anna nagar | DevOps Training | Certification in omr | DevOps Training | Certification in porur | DevOps Training | Certification in tambaram | DevOps Training | Certification in velachery
ReplyDeleteIt is an impressive post.Keep posting.
ReplyDeleteJava training in Chennai
Java training in Bangalore
Java training in Hyderabad
Java Training in Coimbatore
Java Online Training
Thanks for sharing a very useful article. Keep us posted!
ReplyDeletedata science training in chennai
ccna training in chennai
iot training in chennai
cyber security training in chennai
ethical hacking training in chennai
This post is so interactive and informative.keep update more information...
ReplyDeleteRPA Training in Chennai
RPA Training in Chennai
Great post. keep sharing such a worthy information.
ReplyDeleterest api testing training in chennai
Rest Api Testing Online Training