Keyword search over XML documents
there are many open source native XML databases,and search engines that support XQuery and XPath and many of them also support full text search.
such as:
1- TPOX
2- Timber
3- DBXML
4 - http://exist.sourceforge.net/kwic.html [http://exist.sourceforge.net/kwic.html]
5- http://www.inf.uni-konstanz.de/dbis/basex/ [http://www.inf.uni-konstanz.de/dbis/basex/]
6- http://xqengine.sourceforge.net/ [http://xqengine.sourceforge.net/]
7- Lucene
But, could you please tell me what is the alternative open source systems for the following closed systems (XRANK is a Ranked keyword search over XML documents on http://www.cs.cornell.edu/~cbotev/XRank.pdf ) and (XSeek is A Semantic XML Search Engine Using Keywords on http://xseek.asu.edu/xseekdemo.pdf )
I posted the question on http://stackoverflow.com/questions/2921379/is-there-any-open-source-system-for-keyword-search-on-xml-documents and I have got good information , but I think some people on this forum may have more information.
thanks.
Well, there is a workaround to search in the xml. Open xml in FF, open the page source (Ctrl + U) and search in it.
Similar Messages
-
Intermedia text search in XML document stored as CLOB
Suppose i store an XML document as clob
and i index it based on the tags ie
if i have the followind table
create table biodata (
resume_id number primary key,
content clob default empty_clob(),
applicant_id number references
applicants(id));
and i stores various resumes in the clob (content column ) as xml document ie
<experience_in_months> 22 </experience_in_months>
Now if i want all the resume_id that that have experiences_in_months >= 10
what would be the query that would fetch me this result?<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by voron:
We are storing data in XML format in an Oracle database (via CLOB). I can retrieve search results using the 'within' phrase, but am finding it hard to order them. Is there a utility or command I can use?<HR></BLOCKQUOTE>
Maybe you should write a stored procedure (function )
that extracts the section from your clob
that should be sorted. Then use this function
in the ORDER clause of your select statement.
Andreas
null -
is there any way of searching an xml document, i basically want to search the xml doc for a particular value and return its id (not sure if id is the right word)
example:
<root element>
<item>
<name>value 1<name>
<description> example 1<description>
<item>
<item>
<name>value 2<name>
<description> example 2<description>
<item>
<root element>
so for example i want to search the <name> tag for ie value 1 and the function return the item id in the file (or the contents of <description> tab). in this case the id for value1 would be 0 because of the way the dom parser creates them.
i hope you understand what i am trying to say.
Thanksthere are different ways to parse through a xml file. you can use a SAXParser for example.
http://java.sun.com/j2se/1.4.2/docs/api/javax/xml/parsers/SAXParser.html
you can find heaps of examples for that...
http://www.brics.dk/~amoeller/XML/programming/saxexample.html -
Is it possible to search for keywords in an XML file?
Hey all,
I'm currently searching for ways to count the number of pre-defined keywords in an XML file. An example would be trying to find how many times "war" is mentioned in a news networks RSS feed <title></title> and adding it to a variable.
I've found a few custom AS3 XML class files out there but nothing I've been able to adapt. I'm at the point of considering just taking the title of these news stories converting them all to strings and searching them that way...
I'd be grateful for any help
Thanks!An XML element can have multiple attributes such as:
<title keyword="war" category="international">War Breaks Out in the Middle East!</title>
In the above example, the XML element <title> has 2 attributes named keyword and category.
So in my example I'm searching for the attribute named "keywords" within the element <newsItem>.
The XML document could be formatted something as the following:
============
<someNewsFeed>
<items>
<newsItem keyword="war" category="international" url="www.cnn.com/headline2010020111">War Breaks Out in the Middle East!</newsItem>
<newsItem keyword="healthcare" category="politics" url="www.cnn.com/headline2010020321">Healthcare Bill Still Has Some Hurdles to Jump</newsItem>
<newsItem keyword="lady gaga" category="entertainment" url="www.cnn.com/headline2010020981">Lady Gaga Has 360 Reach</newsItem>
</items>
</someNewsFeed>
===========
So in my example, the if/else loop is looking through each XML node named <newsItem> and when it finds it, it then see if it has an attribute called "keyword" and if it does, it then looks to see if it contains the word "war". If it DOES, then it will do the proceeding actions.
===========
if (newsFeed.items.newsItem[q].attribute("keyword") == "war") {
warKeywordCounter == warKeywordCounter+1; //increase your keyword counter
trace("Current value of warKeywordCounter = "+ warKeywordCounter);
==========
I'm assuming you already know how to load external XML documents into flash.
I hope this helps.
Message was edited by: dchaparro
Corrected if/else code to include right parentheses. -
How to search for a text node with a particular value in an xml document with labview
supposing i have the following xml document:
<head>
<book>
<bookname>zio</bookname>
<author>dan</author>
</book>
<book>
<bookname>the spear warrior</bookname>
<author>britney</author>
</book>
<book>
<bookname>the beard</bookname>
<author>derrick</author>
</book>
</head>
i want to search for the author of the book "the beard" using for example the V.I Get first match of labview to access the the node with value "the beard" and then use Get next sibling V.I and Get node text content to get get the author of this book..so my question is how do i write the xpath expression for Get first match so as to access the node with bookname "the beard" instantyly? am trying to minimise the use of loops because they increase the time duration,..thank you (NB:i dont want to use Get all Matched V.I because it obliges me to use a loop in order to access the name derrick and this increases the time duration for my v.i)
Solved!
Go to Solution.Since it's all text, why not use a real quick Match Pattern (or Regular Expression, but you don't need that much power here), see attached.
Cameron
To err is human, but to really foul it up requires a computer.
The optimist believes we are in the best of all possible worlds - the pessimist fears this is true.
Profanity is the one language all programmers know best.
An expert is someone who has made all the possible mistakes.
To learn something about LabVIEW at no extra cost, work the online LabVIEW tutorial(s):
LabVIEW Unit 1 - Getting Started
Learn to Use LabVIEW with MyDAQ
Attachments:
Two-stage match demo.vi 8 KB -
TP Agreement Not Found -- OAGIS XML document over AS2
Hi,
I am getting TP Agreement not found error while receiving OAGIS XML document over AS2. Below is error message.
Agreement not found for trading partners: FromTP SOALocal, ToTP Powell with document type PROCESS_INVOICE_002-null-INBOUND
I am not sure why it says null-INBOUND. It appears like it is not able to identify Document Version. DOCTYPE_REVISION=7.2.1 is being passed in the AS2 transport headers but still it does not recognize the version.
I am not sure what is missing. Please give some ideas hints.
Below is the Business Message:----
Id AC12149513F1F78141400000E7DEDE00
Message Id AC12149513F1F78136200000E7DED800
Refer To Message Refer To Message
Sender Type AS2 Identifier
Sender Value SOALocal
Receiver Type AS2 Identifier
Receiver Value PowellIndustries
Sender SOALocal
Receiver Powell
Agreement Id
Agreement
Document Type PROCESS_INVOICE_002
Document Protocol OAG
Document Version 7.2.1
Message Type REQ
Direction INBOUND
State MSG_ERROR
Acknowledgement Mode NONE
Response Mode ASYNC
Send Time Stamp 06/07/2013 11:28:49 AM
Receive Time Stamp 06/07/2013 11:28:50 AM
Document Retry Interval(Channel) 0
Document Remaining Retry(Channel) 0
Document Retry Interval(Agreement)
Document Remaining Retry(Agreement)
Native Message Size 10788
Translated Message Size
Business Action Name
Business Transaction Name
Xpath Name1
Xpath Value1
Xpath Expression1
Xpath Name2
Xpath Value2
Xpath Expression2
Xpath Name3
Xpath Value3
Xpath Expression3
Correlation From XPath Name
Correlation From XPath Value
Correlation From XPath Expression
Correlation To XPath Name
Correlation To XPath Value
Correlation To XPath Expression
Wire Message Wire Message
Application Message Application Message
Payload Storage Payload Storage
Attachment Attachment
Label
Collaboration Id AC12149513F1F7813BF00000E7DEDB00
Collabration Name
Collabration Version
Business Action Name
Exchange Protocol Name AS2
Exchange Protocol Version 1.1
Interchange Control Number
Group Control Number
Transaction Set Control Number
Error Code B2B-50547
Error Description Machine Info: (pwl.pri) Agreement not found for trading partners: FromTP SOALocal, ToTP Powell with document type PROCESS_INVOICE_002-null-INBOUND.
Error Level ERROR_LEVEL_COLLABORATION
Error Severity ERROR
Error Text Agreement not found for trading partners: FromTP SOALocal, ToTP Powell with document type PROCESS_INVOICE_002-null-INBOUND.
Below is the Wire Message:----
Id AC12149513F1F78115400000E7DED600
Message Id AC12149513F1F78115400000E7DED600
Business Message AC12149513F1F78141400000E7DEDE00
Packed Message Packed Message
Payload Payload
Protocol Message Id <38383939373331343630313931303737@SOALocal>
Refer To Protocol Message Id
Protocol Collaboration Id
Protocol Transport Binding ChannelName=SOALocal dcID=CHANNEL_nlzbB-7511847722850817684 AS2-To=PowellIndustries DOCTYPE_NAME=PROCESS_INVOICE_002 TE=trailers, deflate, gzip, compress DOCTYPE_REVISION=7.2.1 Date=Fri, 07 Jun 2013 16:28:49 GMT AS2-Version=1.1 Accept-Encoding=gzip, x-gzip, compress, x-compress AS2-From=SOALocal url=http://pwl.pri/b2b/transportServlet Content-Transfer-Encoding=binary Message-ID=<38383939373331343630313931303737@SOALocal> Content-type=application/pkcs7-mime; smime-type="enveloped-data" MSG_RECEIVED_TIME=Fri Jun 07 11:28:49 CDT 2013 ECID-Context=1.71b9d2a41e5aaef0:-10db6371:13f1ee6cb74:-8000-000000000000276d;khvE MIME-version=1.0 tpName=PowellIndustries User-Agent=AS2 Server Oracle HTTPClient Version 10h Content-Length=13663 Host=pwl.pri:8001 Connection=close, TE useProxy=false From=SOALocal additionalHeaders=DOCTYPE_NAME=PROCESS_INVOICE_002#DOCTYPE_REVISION=7.2.1
Message Digest Message Digest
Digest Algorithm md5
Transport Protocol HTTP
Transport Protocol Version 1.1
Url http://pwl.pri:8001/b2b/transportServlet
security
Transport Headers ChannelName=SOALocal dcID=CHANNEL_nlzbB-7511847722850817684 AS2-To=PowellIndustries DOCTYPE_NAME=PROCESS_INVOICE_002 TE=trailers, deflate, gzip, compress DOCTYPE_REVISION=7.2.1 Date=Fri, 07 Jun 2013 16:28:49 GMT AS2-Version=1.1 Accept-Encoding=gzip, x-gzip, compress, x-compress AS2-From=SOALocal url=http://pwl.pri:8001/b2b/transportServlet Content-Transfer-Encoding=binary Message-ID=<38383939373331343630313931303737@SOALocal> Content-type=application/pkcs7-mime; smime-type="enveloped-data" MSG_RECEIVED_TIME=Fri Jun 07 11:28:49 CDT 2013 ECID-Context=1.71b9d2a41e5aaef0:-10db6371:13f1ee6cb74:-8000-000000000000276d;khvE MIME-version=1.0 tpName=PowellIndustries User-Agent=AS2 Server Oracle HTTPClient Version 10h Content-Length=13663 Host=pwl.pri:8001 Connection=close, TE useProxy=false From=SOALocal additionalHeaders=DOCTYPE_NAME=PROCESS_INVOICE_002#DOCTYPE_REVISION=7.2.1
certificates certificates
State ERROR
Reattempt Count
Error Code B2B-50547
Error Description Machine Info: (pwl.pri) Agreement not found for trading partners: FromTP SOALocal, ToTP Powell with document type PROCESS_INVOICE_002-null-INBOUND.
Error Text Agreement not found for trading partners: FromTP SOALocal, ToTP Powell with document type PROCESS_INVOICE_002-null-INBOUND.
exchangeRetryInterval
exchangeRemainingRetry
Message Size 10788
Thanks
Ismail M.Hi Anuj,
Here is the payload from the wire message. We are using 11.1.1.6.0
<?xml version = '1.0' encoding = 'UTF-8'?>
<PROCESS_INVOICE_002 xmlns="http://www.openapplications.org/171_process_invoice_002">
<CNTROLAREA xmlns="">
<BSR>
<VERB value="PROCESS">PROCESS</VERB>
<NOUN value="INVOICE">INVOICE</NOUN>
<REVISION value="002">002</REVISION>
</BSR>
<SENDER>
<LOGICALID>POWELLIND</LOGICALID>
<COMPONENT>B2B</COMPONENT>
<TASK/>
<REFERENCEID/>
<CONFIRMATION>0</CONFIRMATION>
<LANGUAGE>ENG</LANGUAGE>
<CODEPAGE/>
<AUTHID>oracle B2B</AUTHID>
</SENDER>
<DATETIME qualifier="CREATION">
<YEAR/>
<MONTH/>
<DAY/>
<HOUR/>
<MINUTE/>
<SECOND/>
<SUBSECOND/>
<TIMEZONE/>
</DATETIME>
</CNTROLAREA>
<DATAAREA xmlns="">
<PROCESS_INVOICE>
<INVHEADER>
<AMOUNT qualifier="DOCUMENT" type="T" index="1">
<VALUE>5413</VALUE>
<NUMOFDEC>2</NUMOFDEC>
<SIGN>+</SIGN>
<CURRENCY>USD</CURRENCY>
<DRCR>D</DRCR>
</AMOUNT>
<DATETIME qualifier="DOCUMENT" index="1">
<YEAR>2013</YEAR>
<MONTH>03</MONTH>
<DAY>15</DAY>
<HOUR>00</HOUR>
<MINUTE>00</MINUTE>
<SECOND>00</SECOND>
<SUBSECOND>0000</SUBSECOND>
<TIMEZONE>-0500</TIMEZONE>
</DATETIME>
<DOCUMENTID>1000182</DOCUMENTID>
<DESCRIPTN/>
<DOCTYPE/>
<PAYMETHOD/>
<REASONCODE/>
<USERAREA/>
<PARTNER>
<NAME index="1">Powell US Operating Unit</NAME>
<ONETIME/>
<PARTNRID/>
<PARTNRTYPE>Supplier</PARTNRTYPE>
<SYNCIND/>
<ACTIVE/>
<CURRENCY/>
<DESCRIPTN/>
<DUNSNUMBER/>
<GLENTITYS/>
<NAME index="1">Powell US Operating Unit</NAME>
<PARENTID/>
<PARTNRIDX/>
<PARTNRRATG/>
<PARTNRROLE/>
<PAYMETHOD/>
<TAXEXEMPT/>
<TAXID/>
<TERMID/>
<USERAREA/>
<CONTACT>
<NAME index="1">No Sales Credit</NAME>
<CONTCTTYPE/>
<DESCRIPTN/>
<EMAIL/>
<FAX index="1"/>
<TELEPHONE index="1"/>
<USERAREA/>
</CONTACT>
</PARTNER>
<PARTNER>
<NAME index="1">PO Box 843823, Dallas, Dallas, TX, 75284-3823, United States</NAME>
<ONETIME/>
<PARTNRID/>
<PARTNRTYPE>RemitTo</PARTNRTYPE>
<SYNCIND/>
<ACTIVE/>
<CURRENCY/>
<DESCRIPTN/>
<DUNSNUMBER/>
<GLENTITYS/>
<NAME index="1">PO Box 843823, Dallas, Dallas, TX, 75284-3823, United States</NAME>
<PARENTID/>
<PARTNRIDX/>
<PARTNRRATG/>
<PARTNRROLE/>
<PAYMETHOD/>
<TAXEXEMPT/>
<TAXID/>
<TERMID/>
<USERAREA/>
<ADDRESS>
<ADDRLINE index="1">PO Box 843823</ADDRLINE>
<ADDRTYPE/>
<CITY>Dallas</CITY>
<COUNTRY>United States</COUNTRY>
<COUNTY>Dallas</COUNTY>
<DESCRIPTN/>
<FAX index="1"/>
<POSTALCODE/>
<REGION/>
<STATEPROVN>TX</STATEPROVN>
<TAXJRSDCTN/>
<TELEPHONE index="1"/>
<URL/>
<USERAREA/>
</ADDRESS>
<CONTACT>
<NAME index="1"/>
<CONTCTTYPE/>
<DESCRIPTN/>
<EMAIL/>
<FAX index="1"/>
<TELEPHONE index="1"/>
<USERAREA/>
</CONTACT>
</PARTNER>
<PARTNER>
<NAME index="1"/>
<ONETIME/>
<PARTNRID/>
<PARTNRTYPE>Carrier</PARTNRTYPE>
<SYNCIND/>
<ACTIVE/>
<CURRENCY/>
<DESCRIPTN/>
<DUNSNUMBER/>
<GLENTITYS/>
<NAME index="1"/>
<PARENTID/>
<PARTNRIDX/>
<PARTNRRATG/>
<PARTNRROLE/>
<PAYMETHOD/>
<TAXEXEMPT/>
<TAXID/>
<TERMID/>
<USERAREA/>
<ADDRESS>
<ADDRLINE index="1"/>
<ADDRTYPE/>
<CITY/>
<COUNTRY/>
<COUNTY/>
<DESCRIPTN/>
<FAX index="1"/>
<POSTALCODE/>
<REGION/>
<STATEPROVN/>
<TAXJRSDCTN/>
<TELEPHONE index="1"/>
<URL/>
<USERAREA/>
</ADDRESS>
<CONTACT>
<NAME index="1"/>
<CONTCTTYPE/>
<DESCRIPTN/>
<EMAIL/>
<FAX index="1"/>
<TELEPHONE index="1"/>
<USERAREA/>
</CONTACT>
</PARTNER>
<DOCUMNTREF>
<DOCTYPE>INV</DOCTYPE>
<DOCUMENTID>10005:21009</DOCUMENTID>
<PARTNRID/>
<PARTNRTYPE>Supplier</PARTNRTYPE>
<DESCRIPTN/>
<DOCUMENTRV/>
<LINENUM/>
<NOTES index="1"/>
<SCHLINENUM/>
<SUBLINENUM/>
<USERAREA/>
</DOCUMNTREF>
<INVTAX>
<AMOUNT qualifier="TAX" type="T" index="1">
<VALUE>413</VALUE>
<NUMOFDEC>2</NUMOFDEC>
<SIGN>+</SIGN>
<CURRENCY>USD</CURRENCY>
<DRCR>D</DRCR>
</AMOUNT>
<AMOUNT qualifier="TAXBASE" type="T" index="1">
<VALUE>5413</VALUE>
<NUMOFDEC>2</NUMOFDEC>
<SIGN>+</SIGN>
<CURRENCY>USD</CURRENCY>
<DRCR>D</DRCR>
</AMOUNT>
<QUANTITY qualifier="PERCENT">
<VALUE/>
<NUMOFDEC/>
<SIGN/>
<UOM/>
</QUANTITY>
<DESCRIPTN/>
<LINENUM/>
<TAXCODE/>
<TAXJRSDCTN/>
<USERAREA/>
</INVTAX>
<PYMTTERM>
<AMOUNT qualifier="DISCNT" type="T" index="1">
<VALUE/>
<NUMOFDEC/>
<SIGN/>
<CURRENCY/>
<DRCR/>
</AMOUNT>
<DATETIME qualifier="DISCNT" index="1">
<YEAR/>
<MONTH/>
<DAY/>
<HOUR/>
<MINUTE/>
<SECOND/>
<SUBSECOND/>
<TIMEZONE/>
</DATETIME>
<DATETIME qualifier="DUE" index="1">
<YEAR>2013</YEAR>
<MONTH>04</MONTH>
<DAY>14</DAY>
<HOUR>00</HOUR>
<MINUTE>00</MINUTE>
<SECOND>00</SECOND>
<SUBSECOND>0000</SUBSECOND>
<TIMEZONE>-0500</TIMEZONE>
</DATETIME>
<DATETIME qualifier="PYMTTERM" index="1">
<YEAR>1952</YEAR>
<MONTH>01</MONTH>
<DAY>01</DAY>
<HOUR>00</HOUR>
<MINUTE>00</MINUTE>
<SECOND>00</SECOND>
<SUBSECOND>0000</SUBSECOND>
<TIMEZONE>-0600</TIMEZONE>
</DATETIME>
<DESCRIPTN>Net Due in 30 Days</DESCRIPTN>
<TERMID>30 NET</TERMID>
<USERAREA>
<AMOUNT qualifier="TOTAL" type="T" index="1">
<VALUE>5413</VALUE>
<NUMOFDEC>2</NUMOFDEC>
<SIGN>+</SIGN>
<CURRENCY/>
<DRCR>D</DRCR>
</AMOUNT>
</USERAREA>
</PYMTTERM>
</INVHEADER>
<INVLINE>
<AMOUNT qualifier="EXTENDED" type="T" index="1">
<VALUE>50</VALUE>
<NUMOFDEC/>
<SIGN>+</SIGN>
<CURRENCY/>
<DRCR>D</DRCR>
</AMOUNT>
<OPERAMT qualifier="UNIT" type="T">
<VALUE>5</VALUE>
<NUMOFDEC/>
<SIGN>+</SIGN>
<CURRENCY/>
<UOMVALUE>1</UOMVALUE>
<UOMNUMDEC>0</UOMNUMDEC>
<UOM/>
</OPERAMT>
<QUANTITY qualifier="ITEM">
<VALUE>10</VALUE>
<NUMOFDEC/>
<SIGN>+</SIGN>
<UOM/>
</QUANTITY>
<LINENUM>1</LINENUM>
<DESCRIPTN>11GA SHEET STEEL HOT ROLLED-PICKLED-OILED COMMERCIAL QUALITY.</DESCRIPTN>
<ITEM>11GA SHEET STEEL HOT ROLLED-PICKLED-OILED COMMERCIAL QUALITY.</ITEM>
<ITEMTYPE/>
<ITEMX>11HRPO</ITEMX>
<OPENITEM/>
<PROJACTVTY/>
<UNIT>LB</UNIT>
<UPC/>
<USERAREA/>
<DOCUMNTREF>
<DOCTYPE>LINE</DOCTYPE>
<DOCUMENTID>10005:21009:19019</DOCUMENTID>
<PARTNRID/>
<PARTNRTYPE>Supplier</PARTNRTYPE>
<DESCRIPTN/>
<USERAREA/>
</DOCUMNTREF>
<DOCUMNTREF>
<DOCTYPE>SalesOrder</DOCTYPE>
<DOCUMENTID>600813</DOCUMENTID>
<PARTNRID/>
<PARTNRTYPE/>
<DESCRIPTN/>
<USERAREA/>
</DOCUMNTREF>
<DOCUMNTREF>
<DOCTYPE>PurchaseOrder</DOCTYPE>
<DOCUMENTID>TEST123</DOCUMENTID>
<PARTNRID>N/A</PARTNRID>
<PARTNRTYPE>Customer</PARTNRTYPE>
<DESCRIPTN/>
<DOCUMENTRV/>
<LINENUM/>
<SCHLINENUM/>
</DOCUMNTREF>
</INVLINE>
</PROCESS_INVOICE>
</DATAAREA>
</PROCESS_INVOICE_002> -
Receiving Custom XML Document over AS2 (HTTPS) - Inbound Processing
Hi All,
Need help in Receiving Custom XML Document over AS2 (HTTPS) - Inbound Processing
External Trading Partner will be able to post the XML Documents to https://<b2bconsolehost>:<b2bconsoleport>/b2b/httpReceiver.
Here is the process flow:
1. External Trading Partner will be posting the XML Documents to https://<b2bconsolehost>:<b2bconsoleport>/b2b/httpReceiver
2. B2B, consumes the Custom XML validates as per the XSD and process it.
3. How to send the ACK back to External Trading Partner if it validates successfully and sent it to 'IP_IN_QUEUE'
4. How to send the ACK back to External Trading Partner if the validation fails after receiving the XML document.
5. Does the External Trading Partner require any certificates to post the XML Documents to https://<b2bconsolehost>:<b2bconsoleport>/b2b/httpReceiver (no need of encryption/decryption)?
6. How to enable the B2B server to accept the HTTPS messages from the Trading Partner (no need of encryption/decryption).
Please let me know. Thanks In Advance.
Regards,
AmirineniHi Nandu, Ramesh,
We have done the set-ups for transmitting a Custom XML Document over HTTP1.1 in B2B.
Our Business Case is as follows:
1. Read the Flat File using BPEL File Adapter
2. Transform the Message in BPEL and send it to B2B
2. Based on the set-ups in B2B, we need to post the XML message to the folliwng URL:-
http://databridge.buy.datastream.net:5555/invoke/dsImport/receiveXML
In the B2B Set-Ups, I have done the following:
Business Protocol name: Custom Document over Internet
Exchange Protocol: AS
Document Protocol: Custom
Transport Protocol: HTTP-1.1
Host name : http://databridge.buy.datastream.net
Port: 5555
I have also deployed the agreement as well as the configuration. The issue that I am currently facing is when I select the configuration in WSIL browser in JDeveloper, I am getting the following error:
"Unable to get schema information for target".
Hence I am not able to map the message in BPEL and send it to B2B.
Could you please let me know the possible causes and if I am missing anything in the set-ups in B2B.
As always, your help and guidance is highly appreciated.
Thanks,
Dibya -
Hi All,
We are planning to send Custom XML Document over HTTP(AS2) to the Remote Trading Partner. The XML Document needs to be posted to a particular URL in the Remote Trading Partner Site.Here is the process flow:
1. The input application format file having the messages will be transformed to an XML message in BPEL.
2. Then as per the set-ups done in B2B, this particular XML message needs to be posted to a URL.
I went through the B2B User's Guide but could not find any documentation on how to set up Custom XML Document over HTTP(AS2).
Could you please share the documents/technical notes or link which I can refer to do the set-ups in B2B.
Please let me know. Thanks In Advance.
Regards,
DIbyaHi Nandu, Ramesh,
We have done the set-ups for transmitting a Custom XML Document over HTTP1.1 in B2B.
Our Business Case is as follows:
1. Read the Flat File using BPEL File Adapter
2. Transform the Message in BPEL and send it to B2B
2. Based on the set-ups in B2B, we need to post the XML message to the folliwng URL:-
http://databridge.buy.datastream.net:5555/invoke/dsImport/receiveXML
In the B2B Set-Ups, I have done the following:
Business Protocol name: Custom Document over Internet
Exchange Protocol: AS
Document Protocol: Custom
Transport Protocol: HTTP-1.1
Host name : http://databridge.buy.datastream.net
Port: 5555
I have also deployed the agreement as well as the configuration. The issue that I am currently facing is when I select the configuration in WSIL browser in JDeveloper, I am getting the following error:
"Unable to get schema information for target".
Hence I am not able to map the message in BPEL and send it to B2B.
Could you please let me know the possible causes and if I am missing anything in the set-ups in B2B.
As always, your help and guidance is highly appreciated.
Thanks,
Dibya -
How can i send a XML document object over the JMS wire
HI,
does anybody has anyidea about sending the XML Document over the JMS and receiving
it n the other side..
regards,
Akhil
Is this the full stack trace?
Akhil Nagpal wrote:
> HI ,
> Sorry the excepiotn is of deserialization...this is the stack trace...mistake...
>
> weblogic.jms.common.JMSException: Error deserializing object
> at weblogic.jms.common.ObjectMessageImpl.getObject(ObjectMessageImpl.java:140)
> at com.sds.kb.cm.CMMDBReceiver.onMessage(CMMDBReceiver.java:143)
> at weblogic.ejb20.internal.MDListener.execute(MDListener.java:356)
> at weblogic.ejb20.internal.MDListener.transactionalOnMessage(MDListener.java:290)
> at weblogic.ejb20.internal.MDListener.onMessage(MDListener.java:271)
> at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:2303)
> at weblogic.jms.client.JMSSession.execute(JMSSession.java:2226)
> at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:153)
> at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:134)
> ----------- Linked Exception -----------
> weblogic.jms.common.JMSException: Error deserializing object
> at weblogic.jms.common.ObjectMessageImpl.getObject(ObjectMessageImpl.java:140)
> at com.sds.kb.cm.CMMDBReceiver.onMessage(CMMDBReceiver.java:143)
> at weblogic.ejb20.internal.MDListener.execute(MDListener.java:356)
> at weblogic.ejb20.internal.MDListener.transactionalOnMessage(MDListener.java:290)
> at weblogic.ejb20.internal.MDListener.onMessage(MDListener.java:271)
> at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:2303)
> at weblogic.jms.client.JMSSession.execute(JMSSession.java:2226)
> at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:153)
> at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:134)
>
>
> Akhil
>
>
> "Akhil Nagpal" <[email protected]> wrote:
>
>>HI,
>> Actually i have created my own class which implements serializable.
>>I set the
>>object of this class in the ObjectMessage and send it across. Sometime
>>i have
>>to send some vector,sometimes string and sometime a XML document. So
>>i can set
>>these type of objects in my custom serializable object and send it. For
>>sending
>>XML , either i can send it as a string or as u said as Document object.
>>But i
>>want to do send it as a Document object. So i have created a an object
>>of "org.jdom.Document"
>>which implement serializable and setting this object into my custom object
>>and
>>sending this custom object in the objectmessage. But then weblogic throws
>>some
>>exceptions which has nothing to do with serialization.I am printing the
>>exception
>>below. (without the object of org.jdom.Document this custom object reaches
>>safely
>>and happily:))...this exception is something related to transactions.....can
>>you
>>or anybody tell me what could be the reason..
>>I am not able to think why this kind of exception comes only when i try
>>to send
>>the jdom's Document object and never in other cases..
>>
>>java.sql.SQLException: XA error: XAER_RMERR : A resource manager error
>>has occured
>>in the transaction branch start() failed o
>>n resource 'oraclePool': XAER_RMERR : A resource manager error has occured
>>in
>>the transaction branch
>>oracle.jdbc.xa.OracleXAException
>> at oracle.jdbc.xa.OracleXAResource.checkError(OracleXAResource.java:483)
>> at oracle.jdbc.xa.client.OracleXAResource.start(OracleXAResource.java:190)
>> at weblogic.jdbc.jta.VendorXAResource.start(VendorXAResource.java:41)
>> at weblogic.jdbc.jta.DataSource.start(DataSource.java:569)
>> at weblogic.transaction.internal.ServerResourceInfo.start(ServerResourceInfo.java:1165)
>> at weblogic.transaction.internal.ServerResourceInfo.xaStart(ServerResourceInfo.java:1108)
>> at weblogic.transaction.internal.ServerResourceInfo.enlist(ServerResourceInfo.java:287)
>> at weblogic.transaction.internal.ServerTransactionImpl.enlistResource(ServerTransactionImpl.java:391)
>> at weblogic.jdbc.jta.DataSource.enlist(DataSource.java:1146)
>> at weblogic.jdbc.jta.DataSource.refreshXAConnAndEnlist(DataSource.java:1101)
>> at weblogic.jdbc.jta.Connection.getXAConn(Connection.java:145)
>> at weblogic.jdbc.jta.Connection.createStatement(Connection.java:204)
>> at weblogic.jdbc.rmi.internal.ConnectionImpl.createStatement(ConnectionImpl.java:130)
>> at weblogic.jdbc.rmi.SerialConnection.createStatement(SerialConnection.java:71)
>> at com.sds.kb.cm.CMMDBReceiver.onMessage(CMMDBReceiver.java:134)
>> at weblogic.ejb20.internal.MDListener.execute(MDListener.java:356)
>> at weblogic.ejb20.internal.MDListener.transactionalOnMessage(MDListener.java:290)
>> at weblogic.ejb20.internal.MDListener.onMessage(MDListener.java:271)
>> at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:2303)
>> at weblogic.jms.client.JMSSession.execute(JMSSession.java:2226)
>> at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:153)
>> at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:134)
>>
>> at weblogic.jdbc.jta.DataSource.enlist(DataSource.java:1151)
>>
>>
>>any help will be appriciated..
>>Akhil
>>
>>
>>
>>Raj <[email protected]> wrote:
>>
>>>wrap it up as an object message(I think DocumentImpl is Serializable).
>>>This way you
>>>wont be vendor specific and can retrieve it at the other end.
>>>
>>>Akhil Nagpal wrote:
>>>
>>>
>>>>HI Raj,
>>>> thanks for the response..actually we dont want our application
>>>
>>to
>>
>>>be weblogic
>>>
>>>>specific...
>>>> there should be some other way arround....
>>>>
>>>>REgards
>>>>Akhil
>>>>
>>>>"Raj" <[email protected]> wrote:
>>>>
>>>>>There is a weblogic specific XMLMessage similar to ObjectMessage,
>>>>
>>>BytesMEssage
>>>
>>>>>etc.. Try using that to wrap ur XML document and send it across.
>>>>>
>>>>>-Raj
>>>>>
>>>>>"Akhil Nagpal" <[email protected]> wrote:
>>>>>
>>>>>>HI,
>>>>>>does anybody has anyidea about sending the XML Document over the
>>>>>
>>>JMS
>>>
>>>>>>and receiving
>>>>>>it n the other side..
>>>>>>regards,
>>>>>>Akhil
>>>>>
>
-
Search xml document by example
Hi.
I'd like to create a XML documents search engine. So id like to find documents that contain elements and data like in request XML document. F.E.
there are 3 documents in the database
#1
<root>
<firstname>AAA</firstname>
<lastname>BBB</lastname>
<nickname>CCC</nickname>
</root>
#2
<root>
<firstname>AAA</firstname>
<lastname>DDD</lastname>
<nickname>EEE</nickname>
</root>
#3
<root>
<firstname>FFF</firstname>
<lastname>BBB</lastname>
<nickname>GGG</nickname>
</root>
and a request xml like
#1
<root>
<firstname>AAA</firstname>
</root>
#2
<root>
<lastname>BBB</lastname>
</root>
So, id like to get #1 and #2 documents after request #1 and #1 and #3 after request #2. If there is no <someelement> in request this mean that it's value may be ANY, and if it's empty - this element in document must be empty too.
So, the question is:
Is there any simple query for this or I should generate dynamic XPath query for each request?
Thanks.there are different ways to parse through a xml file. you can use a SAXParser for example.
http://java.sun.com/j2se/1.4.2/docs/api/javax/xml/parsers/SAXParser.html
you can find heaps of examples for that...
http://www.brics.dk/~amoeller/XML/programming/saxexample.html -
Searching CLOB column of XML documents with leading wildcard - Performance
Hi, our table has a text indexed CLOB column of XML documents and when performing a search with a leading wild card, we never retrieve any results.
The query looks like this:
select id from <table> where contains(columnname, '(%12345)') > 0;
I cant even generate an explain plan from this query. I killed it after 39 minutes.
If the query changes to:
select id from <table> where contains(columnname, '(12345%)') > 0;
I get an explain plan immediately with a cost=2 and when I execute the query, I get results in less than a second.
I'd appreciate any thoughts of what I should check or what the problem might be.
Thanks! DougCan you provide a script that reproduces the case. I am unable to reproduce the problem with just some small sample data, as shown below. That means that there is nothing wrong with the syntax, but you may be having problems due to the size of your data or other parameters that have not been mentioned.
SCOTT@10gXE> CREATE TABLE your_table (id NUMBER, columnname CLOB)
2 /
Table created.
SCOTT@10gXE> insert into your_table
2 select 1, dbms_xmlgen.getxml
3 ('select deptno, dname,
4 cursor (select empno, ename
5 from emp
6 where emp.deptno = dept.deptno ) employee
7 from dept
8 where deptno = 10')
9 from dual
10 /
1 row created.
SCOTT@10gXE> SELECT * FROM your_table
2 /
ID COLUMNNAME
1 <?xml version="1.0"?>
<ROWSET>
<ROW>
<DEPTNO>10</DEPTNO>
<DNAME>ACCOUNTING</DNAME>
<EMPLOYEE>
<EMPLOYEE_ROW>
<EMPNO>7782</EMPNO>
<ENAME>CLARK</ENAME>
</EMPLOYEE_ROW>
<EMPLOYEE_ROW>
<EMPNO>7839</EMPNO>
<ENAME>KING</ENAME>
</EMPLOYEE_ROW>
<EMPLOYEE_ROW>
<EMPNO>7934</EMPNO>
<ENAME>MILLER</ENAME>
</EMPLOYEE_ROW>
</EMPLOYEE>
</ROW>
</ROWSET>
SCOTT@10gXE> CREATE INDEX your_idx ON your_table (columnname)
2 INDEXTYPE IS CTXSYS.CONTEXT
3 /
Index created.
SCOTT@10gXE> EXEC DBMS_STATS.GATHER_TABLE_STATS ('SCOTT', 'YOUR_TABLE')
PL/SQL procedure successfully completed.
SCOTT@10gXE> SET AUTOTRACE ON EXPLAIN
SCOTT@10gXE> select id from your_table where contains (columnname, '(%839)') > 0
2 /
ID
1
Execution Plan
Plan hash value: 2832585188
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
| 0 | SELECT STATEMENT | | 1 | 888 | 0 (0)| 00:00:01 |
| 1 | TABLE ACCESS BY INDEX ROWID| YOUR_TABLE | 1 | 888 | 0 (0)| 00:00:01 |
|* 2 | DOMAIN INDEX | YOUR_IDX | | | 0 (0)| 00:00:01 |
Predicate Information (identified by operation id):
2 - access("CTXSYS"."CONTAINS"("COLUMNNAME",'(%839)')>0)
SCOTT@10gXE> SET AUTOTRACE OFF -
Sending XML documents over HTTP
Hello,
I have read a number of similar questions, but they were all posted last year.
I don't know if a solution was found...
Here is my problem:
I have an ASP page using the object XMLHTTP that sends an XML document to another application server using HTTPS, and gets an immediate response.
Is there an equivalent in the Java world to this feature? I need to transcript my ASP page to JSP.
I have seen things like HttpServlet, JAXM, SOAPConnection.... But I don't know what that means...
Thanks for you help.
Caillou_QCURL url = new URL("http://java.sun.com/etc/etc");
URLConnection connection = url.openConnection();
connection.setDoOutput(true);
PrintWriter out = new PrintWriter(
connection.getOutputStream());
out.println("string to send");
out.close();
BufferedReader in = new BufferedReader(
new InputStreamReader(
connection.getInputStream()));
String inputLine;
while ((inputLine = in.readLine()) != null)
System.out.println(inputLine);
in.close(); -
Hello, I recently downloaded the Java XML Pack, which uses the Xerces2 XML Parser. A couple of questions with regards to serializing an XML document to a file:
1) Xerces1 used the org.apache.xml.serialize.* classes to do serialization (such as shown below), but I don't see them in the Xerces2 API. Which packages take over for these in Xerces2?
import org.apache.xml.serialize.Serializer;
import org.apache.xml.serialize.SerializerFactory;
import org.apache.xml.serialize.XMLSerializer;
2) If we use the JAXP wrapper functionality to serialize instead, is the javax.xml.transform package the standard way to do this in 1.2?--from the examples I've seen searching this forum, this appears to be the case.
Thanks,
GlenIf you want to output your XML to a file, say, then yes the Transformer is the way to do it now. Don't know why they did that, it's far from intuitively obvious.
-
How to use OAF transform sotred xml documents using XSLT...
Does anyone have any experience using XSLT in OAF? Specifically, I have xml documents stored in a clob to which I wish to apply an XSLT transformation and then store the transformed documents back into the clob. Is there a way to apply an XSLT transformation using say BI-Publisher via OAF?
"XML DIFF" are the keywords you can use to search for products that do this. Last time I looked there was a lot of XML Diff implementations, but none of them produced human-readable output that I really liked. I expect that's because XML diff is an easy thing for people to ask for but not an easy thing to do, given the considerable number of ways there are to change a document.
-
Using JScript to search an XML File
I have an XML file that has three fields in each section like the following:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<CapabilityData xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<capability>
<oem>A.I.D</oem>
<PartNumber>1426-5A-A1</PartNumber>
<Nomenclature>AIRSPEED</Nomenclature>
</capability>
<capability>
<oem>A.I.D</oem>
<PartNumber>1426-5A-B1</PartNumber>
<Nomenclature>AIRSPEED</Nomenclature>
</capability>
</CapabilityData>
and what i want to do is search the xml file to find if a part number exists. All this has to do is return a Yes or No response...
The problem I am experiencing is that i can get the script to read the xml and display it on the screen but once i try to add in code to actually do a search it goes all haywire... i don't know if i'm jsut doing something stupid or if i'm doing it all incorrectly.
Please be gentle, this is my first time...
~~~~
<html>
<body>
<h1>OEM Search 2</h1>
<button onclick="myTestFunction()">Try it</button>
<script>
function myTestFunction()
var sPNSearchFor = "18B331";
if (window.XMLHttpRequest)
{// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp=new XMLHttpRequest();
else
{// code for IE6, IE5
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
xmlhttp.open("GET","capability.xml",false);
xmlhttp.send();
xmlDoc=xmlhttp.responseXML;
document.write("<table border='1'>");
var x=xmlDoc.getElementsByTagName("capability");
for (i=0;i<x.length;i++)
document.write("<tr><td>");
var sOEM=xmlDoc.getElementsByTagName("oem")[i].childNodes[0].nodeValue;
document.write(sOEM);
document.write("</td><td>");
var sPN=xmlDoc.getElementsByTagName("PartNumber")[i].childNodes[0].nodeValue;
document.write(sPN);
document.write("</td><td>");
var sNom=xmlDoc.getElementsByTagName("Nomenclature")[i].childNodes[0].nodeValue;
document.write(sNom);
document.write("</td><td>");
document.write(sPNSearchFor);
document.write("</td><td>");
document.write("</table>");
</script>
</body>
</html>Hi Tom,
Please post your question in this forum, you could get more helpful answers there:
ASP.NET Forums >
General ASP.NET >
HTML, CSS and JavaScript
Thanks for your understanding.
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.
Click
HERE to participate the survey.
Maybe you are looking for
-
Problem in setting an object in MapMessage
I have a MapMessage and am trying to set an object in that MapMessage as follows: MapMessage mapMessage = null; WorkflowData workflow = new WorkflowData(); mapMessage.setObjectProperty("workflowData", workflow); here WorkflowData is my class whose ob
-
Scripted generation of forms/reports
Is it possible to generate forms/reports from sqlplus using the Apex PL/SQL packages i.e. instead of using the web GUI ?
-
OS X 10.5.8 Leopard upgrade to Lion
I have an iMac with OS X 10.5.8 Leopard. Do I have to purchase Snow Leopard and then purchase Lion, or can I bypass Snow Leopard somehow?
-
Get following error on only 1 site that I use daily (an educational site): Result of expression 'xmlDoc.load' [undefined] is not a function I think this may be causing problems on a link further down the chain where I get no text, only a header. How
-
Error CL_RSR_OLAP BW-BEX-ET
Hi all, an error appears on the system when a WAD 3.x query is opened with the Internet Explorer: Incorrect call of OLAP layer CL_RSR_OLAP; error in BW-BEX-ET I searched the forum and found that thread where this error is mentioned. But it doiesn´t e