on 03-14-2007 11:51 AM
HI all
I have to build an scenario quite challenging for me. Look at this link: http://www.ecb.int/stats/eurofxref/eurofxref-daily.xml. This XML is a http page on the Internet, and I´m supposed to get the data from it in order to map it to an idoc.
The problem is I don´t know how to recover the data from the http page on internet.
ANy idea?
Regards
Noelia
Hi Noelia,
no need for any web service
you can get the data from java (via java proxy)
and you will have it inside your XI
URL url = null;
URLConnection conn = null;
BufferedReader innn = null;
//url = new URL("http://address.com/file.xml");
url = new URL(inin);
conn = url.openConnection();
innn = new BufferedReader(new InputStreamReader(conn.getInputStream()));
this is all you need to get that data from a WWW page:)
Regards,
michal
-
<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Noelia
Did you manage to get the data from the internet site?
Thanks
Clinton
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Noelia,
you cant directly get the data from internet.......you will need a web-service which will send you the data over internet........then when you will invoke the webservice you will get the data from internet......then you need a SOAP adapter to communicate with that webservice in XI........
Thanks,
Rajeev Gupta
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Neolia,
along with michal's reply, another workaround can be creation of a J2EE adpter module.....deploying it in file adapter........using a dummy file as source file to trigger file adapter.....then via your module getting source data from internet....
Michal, how will that java proxy get triggered to execute the scenario.....please tell this thing......
Thanks,
Rajeev Gupta
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.