How to use XPath in the adapter framework
I am creating a XI adapter to our system.
In the adapter I want to use XPath expression.
I use the classes from javax.xml.xpath.*
This way does not work in the XI application server. (Java 1.4.2)
What is the correct way? Which packages/classes must be used?
Miklos
Hi Miklos,
The package javax.xml.xpath was introduced with Java 5 (1.5), thus it is not available in XI which runs Java 1.4.2. There are (at least) a couple of ways to use XPath in Java 1.4:
1. Use a third-party library that supports XPath, for instance Xalan-J from Apache.
2. Embed your XPath expression in an XSLT transformation, execute the transformation using classes from the javax.xml.tranform... packages (which <i>are</i> part 1.4) and extract the result.
Cheers,
Thorsten
Similar Messages
-
How to use the adapter framework sample_ra.
hi..
I have deployed the sample_ra adapter framework code through NWDS. Now how to use the adapter framework into my scenario.Please answer elaborately .How to call this adapter framework while configuring the communication channel.hi
Follow these links I think it will helps you
http://www.sap-hefte.de/download/dateien/1241/140_leseprobe.pdf
NWDS and generate java proxy
http://help.sap.com/saphelp_nw2004s/helpdata/en/32/43d84072378031e10000000a1550b0/content.htm
http://msdn2.microsoft.com/en-us/library/ms944509.aspx
thanks and regards
santosh -
How to use IDOC and RFC adapter in 1 scenario?
We have AAA field and BBB field and we want to send AAA field to receiver sap system using IDOC adapter and BBB field to receiver sap system using RFC adapter. But how to use IDOC and RFC adapter in 1 scenario and how to map and what are the design and configuration objects we require to create?
To achieve this you have to use
Two Interface Determinations
Two Communication Channels (IDOC & RFC)
& Two Receiver Aggrements.
Use the Enhanced Interface determination and give your conditions there. Based on you condition your interface mapping will be triggered and data will be sent to IDOC & RFC respectively. -
Alerts from the Adapter Framework
Hello,
I have configured the CCMS to monitor XI message processing. For the Integration Server that works fine. But for the Adapter Framework I don't receive any alerts. I use the CIDX Adapter and I would like to receive an alert, when a RAE has been received or when an RA is overdue. Has anybody an idea if this is possible?
Cheers,
JürgenHi Andreas,
We are on XI 3.0 SP9 and are not receiving email alerts when the J2EE adapters fail in the RWB. We only receive email alerts when messages fail in the ABAP integration server.
Are you implying, from your previous post, that alert configuration in the RWB, although available before SP11, will only trigger alerts from adapter framework errors at SP11 level or higher?
Regards,
Dave -
I just bought photoshop elements 13 last night. Today I am watching tutorial videos to show me how to use it, but the videos are showing me things I don't have. Asking me to click on tabs i don't have. Why is this? Is there another way I can learn? Or is my download messed up and not giving me everything I need?
Got a link showing us which video tutorials you're watching and examples of what's missing in your software?
-
How to use shortDesc in the disabled inputtext
hi,all
i encounter a problem,our team must use disabled inputtext when the text is only used to output string.
the reson we don't use outputext is if there is noting in the outputtext,there is nothing displayed.
how to use shortDesc in the disabled inputtext?
here is the code:
<af:inputText value="#{bindings.shortdesc.inputValue}" disable="true"
id="ot2" columns="25" shortDesc="#{bindings.longdesc.inputValue}"
simple="true"/>
thanks allHi,
........... I use JDev 11g ..............
If you make your inputText disabled -----> shortDesc will not be displayed.
You can make a workaround to achieve this by using popup as :
1- add showPopupBehavior inside your inputText as :
<af:inputText label="label1" id="it1" disabled="true">
<af:showPopupBehavior triggerType="mouseOver"
align="endBefore" alignId="it1"
popupId="p1"/>
</af:inputText>2- add a popup which will display your shortDesc text
<af:popup id="p1">
<af:outputText value="Sameh POPUP" id="ot1"/>
</af:popup>I hope it is useful.
Sameh Nassar -
Where is the Adapter Framework/SDK ?
Hi
I have developed a JCA 1.5 resource adapter for integration test purpose.
I thought the "hard" part done...obviously I was wrong.
I know I can integrate it within BPEL PM as "explained" in this link: http://www.oracle.com/technology/products/integration/adapters/pdf/Adapter%20Development%20cookbook.pdf
Unfortunately this document doesn't realy help and some related tools or samples seem unobtainable.
1.- Does anybody know where I can get the Adapter Framework/SDK mentioned in this document ?
2.- Where can I find the -also mentioned- sample related to the MyOwnPersonalRecord -> XMLRecord translation ?
DominiqueThere is also an AIR SDK outside the gaming SDK. I am looking for the Flex/AIR combination.
-
How to use labview with the handyboard
Hi,
how to use labview with the handyboard
Thx...I'm assuming you're talking about this, since you didn't provide a link for those of us who don't know what you're talking about.
As the other poster said, you didn't say how you want to use LabVIEW with it. If you want to write LabVIEW programs than run on the microprocessor, then you're out of luck. If you want LabVIEW to interact with it, then you've got a couple of options, SPI probably being the best, but it also has DI and AI that you could use to communicate with it - the DI's could be used as a parallel interface.
Message Edited by Matthew Kelton on 12-17-2007 02:21 PM -
1,How to use PS to judge the existence of a folder in the specified directory?(use javascript)
2, how to use PS in the specified directory to create to create the folder?(use javascript)
Thanks you!Thanks you!
-
I downloaded the free trial for Adobe XI Pro but now I cant find it on my computer or figure out how to use it. The only thing I see that downloaded is Adobe Download Assistant. How can I access the program?
Assistanttolindsey the Adobe Download Assistant will download the installation files for Adobe Acrobat Professional XI. By default they are saved to your download folder. You can begin the installation process from there.
-
How to use XPath with Namespaces in the xml ?
Hi all,
I need to reference a certain Node in a Document using XPath notation.
The problem is the the XML Document contains Namespaces inside it
f.e.
<xn:SubNetwork id="JRANM">
<xn:VsDataContainer id="1">
<xn:vsDataType>vsDataAreas</xn:vsDataType>
</xn:VsDataContainer>
</xn:SubNetwork >Using DOMXPath (from weblogic.xml.xpath)
DOMXPath xPath = new DOMXPath("xn:SubNetwork/*");
Set nodeset = xPath.evaluateAsNodeset(this.xmlRootElement);When I Iterate through the Set I can see it's empty.
(On the other hand without namespaces everything is fine.)
So how can I reference a Node that contains a namespace in it ?
Thanks a lot
FrancescoWe use the following class to perform XPath Queries on our XmlBean objects.
Hope this helps,
Craig
import java.util.Set;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import org.apache.xmlbeans.XmlException;
import org.w3c.dom.Document;
import weblogic.xml.util.StringInputStream;
import weblogic.xml.xpath.DOMXPath;
* Class to encapsulate API specific (i.e. weblogic) XML functions
public class XmlUtil {
* Returns a set containing objects of type reflected in the query.<br/>
* e.g.<br/>
* /saur:tree/saur:treeNode[@label='My Reports']<br/>
* Returns a Set of TreeNode objects<br/>
* Sample Code: <br/>
* <code>
* Set set = XmlUtil.executeXPathQuery( myQuery, tree.xmlText());
* for( Iterator iter = set.iterator(); iter.hasNext();) {
* TreeNode node = TreeNode.Factory.parse((Node)iter.next());
* // Do whatever...
* </code>
* @param query
* @param xml
* @return
public static Set executeXPathSetQuery( String query, String xml) throws XmlException {
try {
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
factory.setNamespaceAware(true);
DocumentBuilder builder = factory.newDocumentBuilder();
StringInputStream in = new StringInputStream(xml);
Document doc = builder.parse(in);
DOMXPath xQuery = new DOMXPath(query);
return xQuery.evaluateAsNodeset(doc);
catch(Exception x) {
throw new XmlException("Error running XPath query", x);
} -
How To use certificate in SOAP-Adapter
Hi, well because the invoked external WebService needs a certification in SOAP-Adapter the option <i>Configure Certificate Authentication</i> exists.
I know that i have to put some values in keystore via VisualAdmin but i only got a certificate key. Do i need to generate some other values?!
Can somebody provide me with some links or a blog on this issue?!
brSee this
/people/rahul.nawale2/blog/2006/05/31/how-to-use-client-authentication-with-soap-adapter
Regards,
Prateek -
How to use URL for http adapter
Hello,
Iam working on IDOC2HTTP scenario. Here the end user system they have given only url address userid and password.End user is htttp. Please can u help me how ot use that.
Thanks in Advance.
Regards,
AbhiramHi Abhiram,
you can put there the URL directly or link to a destination where you store the address.
Have a look to [Configuration of HTTP receiver adapter|http://help.sap.com/saphelp_nw2004s/helpdata/en/43/64dbb0af9f30b4e10000000a11466f/frameset.htm]
Regards,
Udo -
How to use spry in the dreamweaver with the php/mysql
hello,
Iam new to the spry framework
and i want to know can we use the spry in the dreamweaver
along with php / mysql code
if so please tell how to do this
thanks in advanceswetha123 wrote:
> but when i complie this page it is not showing the
preiew or any thing in the
> browser i saved this page with the extension .php if i
run the same page with
> .html then i can see the design but it is not being
executed
The reason you get nothing when you save the page with a .php
extension
is because you have display_errors turned off, so you can't
see the
error message telling you there's a syntax error. The
semicolon is
missing at the end of this line:
> echo "<font color='white'>Hello
Swetha</font>"
The reason it doesn't work with an .html extension is
probably because
you haven't uploaded SpryAssets/SpryTabbedPanels.js. I have
copied your
page and tested it locally with the correct JavaScript file,
and the
tabbed panels work as expected.
There are lots of other mistakes in your page. You can't use
float and
position:absolute on the same element. In at least one place,
you have
used </br> instead of <br />. You have also got
an closing paragraph tag
after the paragraph that contains abc.jpg.
Getting Spry or any other JavaScript library to work
correctly relies on
good, clean code. Your mixture of inline styles and font tags
is going
to make it difficult to incorporate Spry into your pages. I
suggest you
improve your HTML and CSS before bringing Spry into the mix.
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of
ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/ -
How to use ODI and Planning Adapter.
How to load the dimensions in planning using ODI and Planning Adapter. I am just looking for a functionality that we used to have with HAL and Planning.
Hi,
Have a read of my blog it should give you all the information you need.
Cheers
John
http://john-goodwin.blogspot.com/
Maybe you are looking for
-
MSI x48c platinum does not recognize 2 PCIe boards
Hello, I had the same recycling boot problem as others have noted. It occured with the Antec Phantom 500 power supply and the Antec Signature 850. Swtiched to a Cool Master Pro 650 and no more recyling boots. However, I have 2 PCIe cards that this sy
-
PLSQL in Infinite Loop -- Help!
The PLSQL procedure below seems to go into an infinite loop. I am hoping that someone out there can tell me why? Many thanks in advance! create or replace procedure GF_POC_Migration is v_subdo_data varchar2(180); /* email address */ v_subdo_type varc
-
Im trying to publish data to the B2B AQ from BPEL...im getting the following exception while publishing the object in the queue. [ Enqueue_ptt::Enqueue(Transaction-841) ] - Using JCA Connection Pool - max size = <unbounded> <2009-03-17 10:01:18,900>
-
Hello, When you publish an applet that is stored inside a JAR file, does the entire JAR file get downloaded by client browsers upon loading the page? Or do the individual class files get downloaded only when needed by the client JVM? Thanks, Andrew
-
ILife '11 Installation Failed? Please Help!
Okay so basically I wiped my Mac and clean installed OSX Snow Leopard version 10.6.7, then after the installation completed I put the Application Install DVD in (installs the iLife programmes) and went through the necessary steps prior to install, wh