A query EQL response XML parsing
Hello, I am new to short, and I upgraded from 2.4 to 3.0 short short.When I run a query of the Integrator, I get a response like this:
------
< soapenv:Envelope = "http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenv >
< soapenv:Header / >
< soapenv:Body >
< xmlns:cs cs: results = "http://www.endeca.com/MDEX/conversation/2/0."
xmlns:MDEX = "http://www.endeca.com/MDEX/XQuery/2009/09" >
< cs: ContentElement xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance".
xsi: type = "cs: NQL Different" Id = "LQLConfig" >
< cs: ResultRecords NumRecords = "390" Name = 'Messages' >
< cs: DimensionHierarchy / >
< name cs: AttributeMetadata = "FactPost_PostId."
Type = "mdex:string" / >
< name cs: AttributeMetadata = "FactPost_TimeId."
Type = "mdex:string" / >
< name cs: AttributeMetadata = "FactPost_Type."
Type = "mdex:string" / >
< cs: record >
< name cs: attribute = "FactPost_PostId" type = "mdex:string" > 100002635219620_411535012277669
< / cs: attribute >
< name cs: attribute = "FactPost_TimeId" type = "mdex:string" > 2013 - 05-01 T 01: 49:35 - 0000
< / cs: attribute >
< name cs: attribute = "FactPost_Type" type = "mdex:string" > FB_POST_SEARCH_1
< / cs: attribute >
< / cs: record >
< cs: record >
< name cs: attribute = "FactPost_PostId" type = "mdex:string" > 420550781295893_592578997426403
< / cs: attribute >
< name cs: attribute = "FactPost_TimeId" type = "mdex:string" > 2013 - 05-01 T 03: 17:52 - 0000
< / cs: attribute >
< name cs: attribute = "FactPost_Type" type = "mdex:string" > FB_POST_SEARCH_1
< / cs: attribute >
< / cs: record >
< / cs: ResultRecords >
< / cs: ContentElement >
< / cs: results >
< / soapenv:Body >
< / soapenv:Envelope >
-----
How do I analyze it? I tried with the XMLReader component, with this mapping:
-----
<? XML version = "1.0" encoding = "UTF-8" standalone = "yes"? >
< context xpath = "" / soapenv:Envelope "outPort = '0' namespacePaths =" soapenv = "http://schemas.xmlsoap.org/soap/envelope/"; CS = 'http://www.endeca.com/MDEX/conversation/2/0' ">"
"< xpath="./soapenv:Body/cs:Results/cs:ContentElement/cs:ResultRecords context ">
"[" < mapping cloverField = "FactPost_PostId' xpath="./cs:Record/cs:attribute[@name='FactPost_PostId "]" / >
"[" < mapping cloverField = "FactPost_TimeId' xpath="./cs:Record/cs:attribute[@name='FactPost_TimeId "]" / >
"[" < mapping cloverField = "FactPost_Type' xpath="./cs:Record/cs:attribute[@name='FactPost_Type "]" / >
< / context >
< / context >
-----
but I get an error:
Node XML_READER0 completed with status: ERROR caused by: xpath result, fill in the field "FactPost_PostId" contains two values or more!
What's not in my map? How can I analyze what kind of xml?
Try to collapse these context-s down to one, for example:
<>
XPath = "" / soapenv:Envelope / soapenv:Body / cs: results / cs: ContentElement / cs: ResultRecords / cs: record ""
outPort = '0 '.
namespacePaths = "soapenv ="http://schemas.xmlsoap.org/soap/envelope/"; CS = 'http://www.endeca.com/MDEX/conversation/2/0' ">"
Tags: Business Intelligence
Similar Questions
-
XMLType to query SOAP response
Hi guys,.
in fact, I have a problem to query soap response using xmltyp. I'm sure it's just a matter of the use of xpath and correct the namespaces.
I try to do
declare XMLResp XMLType; NS Varchar2(32000); vCount integer :=1; begin XMLResp := xmltype( '<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"> <SOAP-ENV:Body SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:NS2="urn:IntegraWebServiceIntf"> <NS1:GetArtikelVkPreisResponse xmlns:NS1="urn:IntegraWebServiceIntf-IIntegraWebService"> <return xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="NS2:TVkPreis[3]"> <item href="#1"/> <item href="#2"/> <item href="#3"/> </return> </NS1:GetArtikelVkPreisResponse> <NS2:TVkPreis id="1" xsi:type="NS2:TVkPreis"> <ArtikelNummer xsi:type="xsd:string">650000016</ArtikelNummer> <AbgabeMenge xsi:type="xsd:double">0</AbgabeMenge> <EinzelPreis xsi:type="xsd:double">86</EinzelPreis> <PreisNr xsi:type="xsd:int">19</PreisNr> <StaffelPreisNr xsi:type="xsd:int">47</StaffelPreisNr> </NS2:TVkPreis> <NS2:TVkPreis id="2" xsi:type="NS2:TVkPreis"> <ArtikelNummer xsi:type="xsd:string">650000019</ArtikelNummer> <AbgabeMenge xsi:type="xsd:double">0</AbgabeMenge> <EinzelPreis xsi:type="xsd:double">43</EinzelPreis> <PreisNr xsi:type="xsd:int">22</PreisNr> <StaffelPreisNr xsi:type="xsd:int">56</StaffelPreisNr> </NS2:TVkPreis> <NS2:TVkPreis id="3" xsi:type="NS2:TVkPreis"> <ArtikelNummer xsi:type="xsd:string">650000015</ArtikelNummer> <AbgabeMenge xsi:type="xsd:double">0</AbgabeMenge> <EinzelPreis xsi:type="xsd:double">35</EinzelPreis> <PreisNr xsi:type="xsd:int">18</PreisNr> <StaffelPreisNr xsi:type="xsd:int">44</StaffelPreisNr> </NS2:TVkPreis> </SOAP-ENV:Body> </SOAP-ENV:Envelope>'); ns := 'xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"'; dbms_output.put_line('davor'); WHILE XMLResp.existsNode('/NS2[' || vCount || ']',ns) = 1 LOOP dbms_output.put_line('drin'); dbms_output.put_line(XMLResp.extract('/NS2[' || vCount || ']',ns).getStringVal()); vCount := vCount + 1; END LOOP; dbms_output.put_line(XMLResp.extract('//SOAP-ENV:Body',ns).getStringVal()); dbms_output.put_line('danach'); end;
I want to ask all instances of the tag "NS2:TVkPreis".
If I run what I get no results printed output of DBMS
When I change the XPATH expression for "//NS2:TVkPreis", I get an XML parsing error
ORA-31011: analysis of XML nicht been
ORA-19202: Fehler bei XML-Verarbeitung
LPX-00601: token not valid in: ' / / NS2:TVkPreis [1]' aufgetreten
ORA-06512: in 'SYS. XMLTYPE", line 124
ORA-06512: In line 41
31011 00000 - "XML parsing failed"
* Cause: XML parser returned an error trying to parse the document.
* Action: Check whether the document to parse is valid.
can someone pleas help out me?
concerning
Peter
I'm sure it's just a matter of the use of xpath and correct the namespaces.
Exactly.
You said all the namespaces, except the one that you really need (NS2):
"NS: = ' xmlns:SOAP - ENV ="http://schemas.xmlsoap.org/soap/envelope/"xmlns:NS2 =" urn: IntegraWebServiceIntf "';"
dbms_output.put_line ('strong');
IN all, XMLResp.existsNode ('/ / NS2:TVkPreis [' | vCount |]) (', ns) = 1 LOOP
dbms_output.put_line ('drin');
dbms_output.put_line (XMLResp.extract ('/ / NS2:TVkPreis [' | vCount |])) ']', ns) .getStringVal ());
vCount: = vCount + 1;
END LOOP;
And I do not recommend using this approach more.
Try with XMLTABLE.
-
Hello
It is a follow-up on a previous thread in the forum:
As mentioned in the thread, I am able to apply for WS using the structure defined in the wire to make an EQL query and return the results.
However, when you try to programmatically, I noticed that the ContentElementConfig node has any child nodes, and still less the node LQLQueryString, defined in the WSDL file.
I know that Julia has mentioned in the post that studio components using the parser NQL Different service first before using the chat service, but someone could throw some light on this and this as the good order and procedure of making a query EQL to the server via the short services?
Thank you!
ChrisChris,
Programming language you are using? I think that the exact response will depend on that as LQLQueryString is defined (essentially) as an extension of the string type.
Using your example above, the following c# Code would hit the chat service correctly with your NQL Different statement (assuming that a namespace defined reference Web of Endeca.Conversation23):
>
Create an object of the request
Endeca.Conversation23.Request req = new Endeca.Conversation23.Request ();Create your object LQLConfig, NOTE: the .NET path sets up its links, you use it. Item property to set the LQLString
Endeca.Conversation23.LQLConfig lqlConfig = new Endeca.Conversation23.LQLConfig ();
lqlConfig.Id = "myConfig".
lqlConfig.HandlerFunction = "LQLHandler";
lqlConfig.HandlerNamespace = "http://www.endeca.com/MDEX/conversation/1/0";
lqlConfig.Item = @ "SELECT SUM (FactSales_SalesAmount) AS RETURN statement
WHERE (DimDate_FiscalYear = 2008) AS Sales2008,
Sum (FactSales_SalesAmount) WHERE (DimDate_FiscalYear = 2007) AS Sales2007,
((Sales2008-Sales2007)/Sales2007 * 100) AS pctChange,
countDistinct (FactSales_SalesOrderNumber)
TransactionCount GROUP;Add the Config NQL Different to list the ContentElements
Conf [] Endeca.Conversation23.ContentElementConfig = new Endeca.Conversation23.ContentElementConfig [] {lqlConfig};
forced. ContentElementConfig = conf;Set cross it and the vacuum State
forced. PassThrough = new Endeca.Conversation23.CatchAll ();
forced. State = new Endeca.Conversation23.State ();Hit the chat service quick start on your local instance of the server short
CPC Endeca.Conversation23.ConversationPortClient = new Endeca.Conversation23.ConversationPortClient ("ConversationPort", "http://localhost:7770 / ws/conversation/quickstart?") WSDL");"
Results Endeca.Conversation23.Results = cpc. Request (req);I hope that aid and it is easy to read, the tools of the forum for the formatting are not large.
Kind regards
Patrick Rafferty
http://branchbird.comEdited by: Branchbird - Pat on October 18, 2012 11:00
-
Hello
I have a program that does the following:
1 contact the http server and executes a query on a mysql database.
2 Php script generates an xml file
3. XML file is downloaded on the BlackBerry.
Steps one and two work perfectly well - no problem there. When the XML is generated on the server, entries are sorted in ascending order according to the unique primary key assigned to each record (an integer). I downloaded the XML file on the server and it has inspected and everything is in order.
The problem is the following:
When the XML file is downloaded on the BB and the contents of the XML file displayed on the BB, the information that is displayed is not in order according to the unique primary key assigned to each growing record. Indeed, the information is displayed in what appears to be a way almost no organized. (I say "almost no organized", as it doesn't seem to be a discernible patter, but I have not yet studied to confirm if this is indeed the case.)
The XML parser works like this:
1. downloaded XML file
2. the information is extracted from the file by using a loop.
3. in the course of each loop cycle, a channel is created and this string is then inserted in an EditField.
4. a new EditField is instantiated for each record.
I don't know if I am missing something on the side of analysis of XML. Any ideas? All the world was faced with a similar problem?
One of my friends from specialist tech understood the problem.
I wrongly assumed that a mySQL query has been resolved. I'll have to add a suffix "El TRI" to my query mySQL in my PHP script.
Problem solved.
-
Hello world
Sorry for my English and thanks to all who read this message.
I am new to the development of the playbook, I search in the api playbook, but I have not found the answer to my problem.
Is there a category for the xml parser?Thank you for the future response and your help.
XML is very easy.
var myxmlstring: String = "
';"Blue var xml: XML = new XML (myxmlstring);
From there, you can access such tags (in the example above)
var value: String = xml.tag;
var color: String = xml.line@color;
etc.
There is good documentation on the XML class.
-
How to recover the server response XML data
Hey fellows,
So I wrote this piece of code that sends an image to a server (thanks a lot Mantaker for the position you where has written on it!) and then I expect to receive a response in the form of XML code. I tried to use getResponseMessage(), which gives me a nice 'OK '.
How could I achieve this? I read somewhere that it might be possible through a feed, could you help me?
I'll give you a lot of congratulations!
If you already have the basics of an HttpConnection down, it gets a little easier later.
Once you have the your HttpConnection InputStream you can create a Document for analysis using the built-in XML parser.
public static Document getXmlDoc(InputStream in) { Document doc = null; DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance(); DocumentBuilder docBuilder; try { docBuilder = docBuilderFactory.newDocumentBuilder(); docBuilder.isValidating(); doc = docBuilder.parse(in); doc.getDocumentElement().normalize(); } catch (Exception e) { System.out.println("getXmlDoc Error: " + e); } return doc; }
It is a basic function that I use to read a XML from a web server. If there are errors reading or parsing of the document, this function returns null.
After making sure that you close your InputStream, you can start reading your document.
-
Need help with an attribute important XML parsing (>; 45 MB)
Hello
The database version is running on 32-bit Linux 11.2.0.2.
The response contains an attribute called FileContent which can be as long as 100 MB. (The total response XML is FileContent size + 200 bytes).
The obligation is to extract the FileContent and load it into a CLOB.
I use this application to do the same thing:
-INSERT IN...
SELECT t.request_id,
HDR. FILE_CONTENT FROM
(SELECT resp_xml, request_id
OF (xmltype (xml) SELECT resp_xml FROM t1 WHERE request_id request_id = 1200134 MESSAGE_TYPE AND = 'RESPONSEXML'))
t,
XMLTABLE ((xmlnamespaces (par DÉFAUT «urn: xxx:yyy:zzz:filetransfer')))
),
' / / GetFileResponse' ADOPTION t.resp_xml
COLUMNS
FILE_CONTENT CLOB PATH 'FileContent '.
) as hdr
It works as long as the FileContent is less than 20 MB. When it's no longer what I get:
ORA-00600: internal error code, arguments: [KGHALP1], [0x0] [] [], [], [],.
[], [], [], [], [], []
Until we have upgrade to a higher version of DB, is there an alternative?
Thank you.
That works better?
SQL> create table test_bigtext (id integer, doc clob); Table created. SQL> SQL> insert into test_bigtext values (1, 2 '
' 3 ); 1 row inserted. SQL> commit; Commit complete. SQL> SQL> declare 2 3 input clob; 4 doc dbms_xmldom.DOMDocument; 5 node dbms_xmldom.DOMNode; 6 p dbms_xmlparser.Parser; 7 istream utl_characterinputstream; 8 9 tmp varchar2(32767); 10 nread integer := 32767; 11 output clob; 12 13 begin 14 15 select doc 16 into input 17 from test_bigtext 18 where id = 1; 19 20 -- parse 21 p := dbms_xmlparser.newParser; 22 dbms_xmlparser.parseClob(p, input); 23 doc := dbms_xmlparser.getDocument(p); 24 dbms_xmlparser.freeParser(p); 25 26 -- select & read 27 node := dbms_xslprocessor.selectSingleNode(dbms_xmldom.makenode(doc), '/root/content/text()', 'xmlns="http://xmlns.example.org"'); 28 istream := dbms_xmldom.getNodeValueAsCharacterStream(node); 29 30 dbms_lob.createtemporary(output, false); 31 32 loop 33 istream.read(tmp, nread); 34 exit when nread = 0; 35 dbms_lob.writeappend(output, nread, tmp); 36 end loop; 37 38 dbms_output.put_line(dbms_lob.getlength(output)); 39 40 istream.close(); 41 dbms_xmldom.freeDocument(doc); 42 43 end; 44 / 50000000 PL/SQL procedure successfully completed.'||rpad(to_clob('X'), 50e6, 'X')||' -
Madam/Sir,
I log on this site everyday to make a contribution (http://theanimalrescuesite.greatergood.com/clickToGive/home.faces?siteId=3) and during the last three days, I was unable to connect. Today, I get this message: XML parsing error: State unexpected location parser: jar:file:///C:/Program%20Files%20 (x 86) /Mozilla%20Firefox/browser/omni.ja!/chrome/browser/content/browser/abt
Best regards
Peter
What Firefox locale (UI language) do you use?
Try a clean reinstall and delete the program folder before Firefox to (re) install a new copy of the current version of Firefox.
- Download the installer of Firefox and save the file to the desktop
https://www.Mozilla.org/en-us/Firefox/all/
If possible to uninstall your current version of Firefox to clean the Windows registry and settings in the security software.
- Do NOT remove the "personal data" when you uninstall your current version of Firefox, because this will remove all profile folders and you lose personal data such as bookmarks and passwords including data profiles created by other versions of Firefox.
Delete the program folder Firefox before installing newly downloaded copy of the Firefox installer.
- (32-bit Windows) "C:\Program Files\Mozilla Firefox\"
- (Windows 64 bit) "C:\Program Files (x 86) \Mozilla.
- It is important to remove the Firefox program folder to delete all the files and make sure that there is no problem with the files that were the remains after uninstallation.
- http://KB.mozillazine.org/Uninstalling_Firefox
Your bookmarks and other personal data are stored in the Firefox profile folder and will not be affected by a uninstall and (re) install, but do NOT delete personal data when you uninstall Firefox which removes all Firefox profile folders and you lose your data.
- Download the installer of Firefox and save the file to the desktop
-
Error after installing FF34 on FF33: XML Parsing Error: undefined entity WebIDE
Hello
After installing FF34 on FF33 I get a window with this message when I close windows firefox closes too:XML parsing error: undefined entity
Location: chrome://browser/content/browser.xul
Line number 320, column 5: key < = "" command = "tools: WebIDE ' id = 'key_webide' keycode =" & amp; webide.keycode; "p =" ">."
< / key >^
What Firefox locale (UI language) do you use?
Start Firefox in Safe Mode to check if one of the extensions (Firefox/tools > Modules > Extensions) or if hardware acceleration is the cause of the problem.
- Put yourself in the DEFAULT theme: Firefox/tools > Modules > appearance
- Do NOT click on the reset button on the startup window Mode safe
-
I can't add an additional account to FireFTP. I get a yellow box with this title:
XML parsing error: undefined entity
Location: chrome://fireftp/content/accountManager.xul
216, column 17 line number:
< label of the menu = "" & charsetMenuMore1.label; "accesskey =" & charsetMenuMore1.accesskey; "datasources ="rdf:charset - menu"ref ="NC:BrowserMore1CharsetMenuRoot">^
Do not understand the problem, can anyone help please?
Try the FireFTP update to the 2.0.20 latest version.
An update for Firefox 32 compatibility.
https://addons.Mozilla.org/en-us/Firefox/addon/FireFTP/ -
Since an automatic update ran I get the message
"XML Parsing Error: undefined entity".
Location: chrome://browser/content/browser.xul
Number of the line 238, column 5:
"< broadcaster-^" < br = "" id = "devtoolsMenuBroadcaster_ChromeDebugger" >
When I try to open Firefox. I had to go back to Internet Explorer - tried all suggested include removing and then reinstalling Firefox, but still not get Firefox to open - help!
< / diffuser >Can you reproduce in Firefox Safe mode?
It may be an acceleration addon or material affecting (by making the error).
-
"Error message has been: XML Parsing Error: undefined entity location: on: sync-tabs line number 7, column 1: window (weeks =" "3 =" "4 =" "5 =" "7 =" "< =" "^ =" "a =" "Add - on. =" "it y =" ' am = "" a = "" and = "" are = "" avg = "" believe = "" time = "" but = "" impossible = "" some = "" computers = "" firefox = "" for = "" I = "" I = "" id = 'tabs-view' in = "" installed.. = "" it = "" months) = "" = "" on. "" "" "" "" = "" or = "" other = "" p = "" paid = "" remember = "" running = "" sometimes = "" sync = "" tabs = "" version = "" look a = "" was = "" we = "" some = "" when = "" windows = "" worked = "" > < / window > "
Hello!
Can you give us some details? When this message display? Is in your phone or your computer? What is your language? More information you can give us the best.
You use the add-on and Firefox 4? If so, I'll ask you to disable and remove the add-on: Sync is now part of the Firefox browser and you don't need the add-on. [https://bugzilla.mozilla.org/show_bug.cgi?id=644894 some users solved this problem by uninstalling the add-on.]
] -
Speed Dial gives me an XML parsing error: no element found
Have set up the Speed Dial and also set it as homepage. But when I then open Firefox, speed dial does not work and I get:
XML Parsing Error: no element found
Have retried reloading Speed Dial twice, and this happens every time. I am running Firefox 3.6.16.There is an extension conflict. See this article: blog of Speed Dial on this problem article
-
This didn't happen with the version 3 x, nor with the previous v4. Using the arrow to the left and clicking on the previous page request usually works ok. It happens several times a day. Full error is
XML parsing error: undefined entity
Location: jar:jar:file:///C:/Documents%20and%20Settings/shirley/Application%20Data/Mozilla/Firefox/Profiles/4txi20jj.default/extensions/ [email protected]! /chrome/bandwidthmeter.jar!/content/netError.XHTML392, column 33 line number:
& netOffline.longDesc;I am also getting this error and have been able to understand that its caused by the Bandwidth_Meter_and_Diagnostics - 1.2.5.xpi. This deactivation seems to have stopped the error, but is a major nuisance.
-
XML Parsing Error: not blocked cavities symbolic location: chrome://brower/content/brower.xul line number 1, column 13546: TOOLBAR > < COMMANDS >
If you have installed, disable a toolbar for Amazon, until an updated version is available. In addition, you can disable the toolbar, as it is at the origin of the problems for many users not being able to open new tabs.
Maybe you are looking for
-
Why my Preferences addons menu doesn't work anymore?
I noticed that since the last FF update that none of the s Preferences menu for all my addons work. Whussup with that? All the addons I have came on the FF site so I can't really get a handle on what is the problem. Unless it is of course another way
-
How to configure an e-mail account pop on ipad
I'm brand new on ipad (3 days). I have 4 accounts pop e-mail set up at Cox.net and want to use the e-mail application to send and receive. How to do this. It seems that I should set the port numbers, but cannot find a way to do it. You will appreci
-
Troubleshoot the switch 12 with a projector or VGA monitor Acer
I connected my Acer Aspire switch 12 to a VGA monitor via a HDMI VGA adapter microphone. The switch 12 sees the second monitor, but seems unable to get a signal to start it. In this respect also disables my wireless and sometimes the mouse as well. I
-
Morning Microsoft,. I am facing a problem in my office environment (Windows XP SP3, Internet Explorer 7, software Trusteer report is NOT installed). We are trying to deploy a package to update all the post-SP3 XP critical and security patches and hav
-
OS - Windows XP with SP3 (recently updated from SP2 to SP3) After plug in a USB key... actually connect any external drive... the usual pop-up window (asking "what do you want') no longer appears. Y at - it a WinXP option that must be adjusted as a r