Read xml from https
Hi experts,
I need to read a XML from https address,i have no idea to make it possible, any idea?
points for all
thanks all.
Hi,
It is secure link at XI end need to configure SSL else it is not possible. We can read data through HTTP & SOAP adapter.
Find below links for more help.
http://help.sap.com/saphelp_nw04/helpdata/en/14/ef2940cbf2195de10000000a1550b0/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/f7/c2953fc405330ee10000000a114084/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/14/ef2940cbf2195de10000000a1550b0/frameset.htm
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/964f67ec-0701-0010-bd88-f995abf4e1fc
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/23894238-0701-0010-40b0-a0a6d5c4ad9f?prtmode=navigate
Similar Messages
-
Read XML from a hardware sensor file into ODI
Read XML from a hardware sensor file into ODI
Hi,
I am trying to extract xml data from a flowmeter that generates XML data.
The xml file is found in http://ip_address/history.xml
I’ve defined my Topology as such
JDBC Driver: com.sunopsis.jdbc.driver.xml.SnpsXmlDriver
JDBC URL: jdbc:snps:xml?f=http://192.168.0.202/history.xml&ro=true
Please note to access the file I have to supply a username and password so I did in the definition But when testing my setup I get an error:
ava.sql.SQLException: The DTD file "http://192.168.0.202/history.dtd" doesn't exist: Server redirected too many times (20)
Please note I cannot write dtd to the device as it is a read only device.
Has anyone came across such an issue, how can I achieve this.
Thanks
HichamHi David,
Thanks for your reply.
I've tried this jdbc url
jdbc:snps:xml?f=http://192.168.0.202/history.xml&d=c:\temp\history.dtd
but when I test the connection i get the following error
java.sql.SQLException: While generating the DTD from the XML file, a java.io.IOException exception occurred saying: Server returned HTTP response code: 401 for URL: http://192.168.0.202/history.xml
If I browse http://192.168.0.202/history.xml and i supply the username and password I get an xml page.
I've supplied the username and password in the definition tab of the Data Server windows but still getting the above error.
THanks
Hicham -
How to read XML from web page inside servlet/jsp ?
i have a url, which on sending request, shows XML in browser.
Now i need to read this XML in browser and then manipulate it according to my need and display it on another page.
actually the process is. :
1) i have to first retrieve an xml from other site. (XML will only be shown in browser)
2.)then i have to read the Xml and show it in according to my requirements.
Is there any way to read XML directly from a Web Page ??
is their logic to accomplish this.
e.g in Servlet i can do somewhat like this :
String wholeXml=Somemethod(url);
Please AdviceHi,
if u wanna extract data from XML. you can use Digester(Apache-jakarta) parser. All u need to create the beans(as per the data in xml), that will be populated by Digester.
Digester takes xml(string) as parameter and populates the bean specified.
U can use this bean in ur JSP.
:::Note:::; use Digester in ur servlet.
for more read:::
http://www.onjava.com/pub/a/onjava/2002/10/23/digester.html
I hope it shall work..
@mit -
Not sure if this is even possible.
I am using APEX on a INTERNAL server, on the same network is another server hosting files.
Using PL/SQL code, I need to read the XML file.
So APEX/ORACLE is at http:\\server1\apex\f?p........
And the files are at \\server2\xml\file.xml
Can I load the xml from server2 using pl/sql in server1?
The XML is generated automatically from another system and can not be stored on the APEX server. It does not need to go into the database, just read, parced, and displayed.Hi,
Using PL/SQL code, I need to read the XML file. You can create a directory object pointing to the location on server2 :
CREATE DIRECTORY xml_dir AS '\\server2\xml';then you can access the XML content like this :
DECLARE
v_xml_doc xmltype;
BEGIN
v_xml_doc := xmltype(bfilename('XML_DIR', 'file.xml'), nls_charset_id('CHAR_CS'));
-- XML processing here...
END;
/ -
Reading XML from Oracle directory to generate charts
Hi,
I have a requirement create graphs, charts and maps based on data from a data warehouse (dw). As I see things, there are two possibilities:
Graphs, charts and maps based on an XML file
Graphs, charts and maps based on Oracle tables
Both would contain small data sets that will allow for quick response. The intent of these graphs, charts and maps is to generate a dashboard that would allow the user to quickly drill down to the desired warehouse data.
The proof of concept has already been validated using the Oracle table scenario. My question is whether or not this could be accomplished reading xml files for generating the same set of dashboard items?
My Oracle database and APEX environments configuration are as follows:
NLSRTL 11.2.0.1.0 Production
Oracle Database 11g Enterprise Edition 11.2.0.1.0 64bit Production
PL/SQL 11.2.0.1.0 Production
TNS for Solaris: 11.2.0.1.0 Production
Application Express 4.2.2.00.11
APEX Listener Release 2.0.2. / Tomcat
An Oracle database directory has been setup and is accessible to our APEX application.
Any suggestions/help is appreciated.
Thanks,
CharlesAn Oracle Directory has an underlying OS directory associated with it, Oracle just overlays it's control structure onto an existing folder in the OS. You can manipulate the files with stored procedures in Oracle or at the OS level from outside of Oracle.
If you manipulate the files from the OS level, outside of Oracle, you may need a refresh of the Oracle Directory structure. -
I am developing web services based GIS, I have XML file which was generated from Geoserver. I dont know how to link Java with XML and query XML from Java. I need help pls.
PAIthere are apis to parse xml using java,
http://www.cafeconleche.org/books/xmljava/chapters/ch09s06.html
try this link..
regards
Shanu -
Write n then read xml from database to create graph in an applet
Hi mates
I have one problem I want show a trend(graph) from sql database which is having the records of about 8600 in a day. And i want to show a graph for a day
but sometimes it gives a problem like out-of-memory, so can anyone tell me how i can get read of it.
and other this can i use xml for this means first write a data in xml format from database then read it at sametime and show graph in applet
can anytell me how to do it
any suggesion is appreciable
thanxHere's are two example for what you are looking for
Re: Load xml data in Oracle table
Re: insert .xml file into xmltype table?
First you need to create a DIRECTORY object. That is how Oracle works and it expects a DIRECTORY object instead of a physical path when performing operations that read/write from disk. The directory path provided to the CREATE DIRECTORY command must be a directory that the machine Oracle DB resides on can see.
Then you can go either of two routes. You can INSERT that XML directly into a table, as shown in the second link I provided or you can read it into PL/SQL as the first link shows. Then in either case, you can use SQL to parse the XML for you.
Depending upon your needs, you may get better performance if you insert the XML into a table as the second link shows, assuming the XMLType column is stored as SECUREFILE BINARY XML. -
Read xml from application server
Hello guys,
I have craeted program read xml file from presentation server. its working fine...
below is program
now i want to program read xml file from Application server.
so please give me some idea for that.........
<MODIFIED BY MODERATOR - RESPECT THE 2,500 CHARS LIMIT>
thanks
jigar
Edited by: Alvaro Tejada Galindo on Jan 12, 2010 11:50 AMHi
U need to just replace the fm to upload the file with command OPEN DATASET / READ DATASET / CLOSE DATASET: if you upload the data from application server in the same internal table loaded by fm for presentation your report should be the same
Max -
Hi there,
I would like to read XML data from Applet,
first of all is it possible?
If yes then how and will I require any extra pugin other than Java Plug-in?
ThanksSure you can, as long as the applet has permissions to read the xml file. If it is in the same directory as the applet it should be ok.
There is no need for an extra plugin. Here's a starting point:
import javax.xml.parsers.DocumentBuilderFactory;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.NodeList;
Document doc = DocumentBuilderFactory.newInstance().newDocumentBuilder().parse(<some stream>);
Element data = doc.getDocumentElement();
NodeList dbChildren = db.getChildNodes(); -
Hello
I need to read a xml from a sql server 2000 database. The field in the database is declare as text.
When a try to read <a>3</a> the database adapter returns something like this.
/a/3//a/.
How do I solve the problem?
Thanks
Gonçalo RibeiroHello again.
I'm using ora:parseEscapedXML to convert the string that contains XML into XML.
I'm doing it in an assign. My doubt is what kind of variable should received the information?
Thanks
Gonçalo Ribeiro -
How do I get the HTTPs server to send/post the XML file to user's mailbox?
The situation is like this: User from System A need to send XML file to User in System B. These 2 can't communicate directly.So the XML file will be posted to an HTTPs server. This HTTPs server will then post the XML to the recipient based on the mailboxid. This mailboxid is specified in the XML. How do i send the XML to the designated mailbox?You write something that runs on the server, receives
the uploaded XML file, attaches it to an e-mail
message, and sends that message. Since you ask in the
Java context, that something could be a servlet. (You
will notice that this applies equally well to files
that aren't XML.)Hi there! Thanks for the feedback. So I need to create a servlet in the HTTPs server which upon receiving of the XML file, servlet need to read the XML content to get the mailboxid then attach the XML file to that mailboxid? All these can be done in one servlet? Please correct me id I'm wrong. Your feedback is highly appreciated. Thanks..:) -
Read XML from Azure CDN Marshalled error
I would like to load an XML file stored in Azure CDN in a Windows 8.1 App. This code throws Marshaling error:The application called an interface that was marshalled for a different thread. (Exception from HRESULT:
0x8001010E (RPC_E_WRONG_THREAD))
public async Task<XDocument> LoadXmlFromCDNAsync()
var url = new Uri("http://azXXXXXX.vo.msecnd.net/cdn/Data.xml");
var handler = new HttpClientHandler() { AutomaticDecompression = DecompressionMethods.Deflate | DecompressionMethods.GZip };
var client = new HttpClient(handler);
XDocument doc = new XDocument();
using (var stream = await client.GetStreamAsync(url))
doc = XDocument.Load(stream);
return doc;
Thanks.
FSHi,
I test your codes. And the result below:
I can successfully load the XML file. I think there is no problem in the codes which you used to load an XML file.
And as the error says, the problem is the thread on which the call occurs: the app cannot manipulate UI elements from non-UI threads. That error usually means you are calling something that requires the UI thread from a different thread. You can
call Dispatcher.RunAsync to marshall a task back to the UI thread.
See
http://msdn.microsoft.com/en-us/library/windows/apps/windows.ui.core.coredispatcher.runasync.aspx
And see the thread below:
https://social.msdn.microsoft.com/Forums/en-US/f1fe027f-2c6c-4a22-9418-566fcf67cebe/the-application-called-an-interface-that-was-marshalled-for-a-different-thread?forum=winappswithcsharp
Best Wishes!
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. <br/> Click <a
href="http://support.microsoft.com/common/survey.aspx?showpage=1&scid=sw%3Ben%3B3559&theme=tech"> HERE</a> to participate the survey. -
Hello all,
I am trying to get the data from this particular url : http://api.openweathermap.org/data/2.5/weather?q=London&mode=xml
I have no problem to parse it directly from a .xml or in xml chain. But I can't read the data directly from labview or even save the file at the url under a .xml.
I already looked for the example like read http website and other but didn't succeed to adapt to my url.
If any of you can help me
thank you
Solved!
Go to Solution.Both of these seem to work just fine here in LV 2011:
Note that the second one will require adding Datasocket support if you're building an installer and that the HTTP client VIs were only added around 2011.
Try to take over the world! -
Hi there,
hoppefully someone knows the answer.
I want to make some of my classes configurable. Doing this i want to read the settings from a XML-file. This file is in the same .JAR file as the class is.
How can it get to this file?
Say my package is called my.package
The class is called MyClass and is stored in the file my/package/MyClass.java
The XML-file is called config.xml and is stored in the file my/package/config.xml
It must be possible to read this file, shouldn't it? I got the idea from the fact that BC4J can have all its components in XML and then use those XML as a config. I however haven't have an idea how to reach those files.
Thanks in advance for any help...
Regards,
Robert WillemsHello All,
There are two ways in which you can read this file.
1) Using the relative path.
Read the file with a code like...
URL xmlURL = createURL.getURL("config.xml");
Now pass this URL to the parse method of XMLParser and get the XMLDocument object. Now, you can read the configurable parameters easily from this object. This method is demonstrated in the AQ Sample at http://otn.oracle.com/sample_code/tech/dataint/content.html. Look for the ControllerServlet.java (method init) in the zip file.
2) Using the URL to this XML file
Create an http URL to the XML file and read it in the URL object. Now, the above method has to be followed. This method of reading has been used in the Survey Sample located at http://otn.oracle.com/sample_code/tech/xml/survey/content.html. Look for the file ControllerHelper.java (method loadControlData) in the jar file.
Hope this helps. -
Hi All,
I want to read an XML file from KM.
Can anyone giude me on this ?
Thanks.Hi,
You can read an XML file from KM by using XSLT filter. You can convert the XML file into an HTML doc using XSLT filter.
Hope these links helps.
http://help.sap.com/saphelp_nw04/helpdata/en/69/48ce13d1f2a34f843ac3cc56e378c6/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/55/921d7bb0c611d5993800508b6b8b11/frameset.htm
Regards,
Saumya
Maybe you are looking for
-
Does Verizon Know How to Support 4G LTE ?
Hello everyone, Let me start off by saying that prior to Christmas 2011 I had never had any problems with my 4G service other than the nationwide outages that Verizon owned up to. That being said, since 12/25/2011 my service has been a nightmare. I h
-
HI, I have already developed a ADF 11g ( JDEV 11.1.2.2.0) Fusion application. I have a user login page, where I need to check the authentication using LDAP + MS active directory. Should the application development start with a ldap already configured
-
Is there a full view for audition cs6?
Hi is there a full view for audiotion cs6 ? like lightroom 4 or photoshop cs6 , in short i can work with audition in full view thanks
-
Personal Information produces a Portal Runtime Error
When we access the portal and click on Employee Self-Service > Overview > Personal Information > Display Personnel File It displays a Portal runtime error - Exception ID: 05:0#_29/9/10_0080_3746050 Please advice.
-
Encountered an error while activating
Hi! cant authorize my ipad air. Error appears "encountered an error while activating"