Can I leverage JDom or Dom4J for java mapping in PI 7.0?

Hi,
since we know that PI 7.0 is based on jdk1.4 which officially allows DOM and SAX,but could I using the open source API like JDom or Dom4J via importing the related jar file to PI IR for java mapping?Anyone tried that?

Hi ,
         I tried importing jar files into PI7.0 I was able to do so.
First add the external jar file for JDOM into build path in eclipse (or NWDS). I did this in eclipse.
Again I tried to import the same jar file into project within eclipse. Then the jar file will be broken into class files.
Now compile the JDOM code you wrote and do project ->build all. This will generate the class file for your source code in addition to the class files formed earlier. Now exit from eclipe. Move to source folder of the eclipse. there you will find the .java file and the set of class files which were imported into the project earlier. Copy these files to separete folder say "myclass". Now again move to "bin" folder of your eclipse settings and obtain the .class file for the source code you have written. Copy this class file to the  "myclass" folder. Now using WINZIP zip all files into one ZIP file within "myclass" folder. Finally import this ZIP into PI 7.0 server. Run the mapping code using test tab. If you are getting any linkage error then you need to obtain correct external jar for JDOM parser else the mapping should run fine.
Regards
Anupam

Similar Messages

  • Tips on how to write efficient  java code for java mapping

    hi
    I do not have much knowledge in Java
    Can anybody tell me some tips on how to write efficient and optimised java code to be used in java mapping
    Thanks,
    Loveena

    hi D'za,
    JAVA in xi
    A very important place where you will use JAVA in XI is while doing your Mapping. There will be cases when JAVA MAPPING is the best solution to go for. There are 2 types of Parsers available for JAVA Mapping. DOM Parser and SAX parser. Just got through the following links to understand more on Java Mapping and the APIs available.http://java.sun.com/j2se/1.4.2/docs/api/javax/xml/parsers/package-summary.html http://java.sun.com/j2se/1.4.2/docs/api/org/w3c/dom/Document.html http://java.sun.com/j2se/1.4.2/docs/api/org/w3c/dom/package-frame.html /people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-i
    /people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-ii /people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-iii
    JAVA mapping -
    /people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-i /people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-ii /people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-iii /people/ravikumar.allampallam/blog/2005/06/24/convert-any-flat-file-to-any-idoc-java-mapping /people/amol.joshi2/blog/2006/03/10/think-objects-when-creating-java-mappings /people/sameer.shadab/blog/2005/09/29/testing-abap-mapping
    sample code for java mapping
    Re: Example code DOM PARSER API -
    http://java.sun.com/j2se/1.4.2/docs/api/org/w3c/dom/package-frame.html DOM --- /people/thorsten.nordholmsbirk/blog/2006/08/10/using-jaxp-to-both-parse-and-emit-xml-in-xi-java-mapping-programs tutorial sax and dom
    For a tutorial on the methods of SAX and DOM http://java.sun.com/webservices/docs/1.1/tutorial/doc/
    SAX AND dom PARSER ( BY thorsten) -
    example /people/thorsten.nordholmsbirk/blog/2006/08/10/using-jaxp-to-both-parse-and-emit-xml-in-xi-java-mapping-programs java mapping example ( testing and debugging) /people/stefan.grube/blog/2006/10/23/testing-and-debugging-java-mapping-in-developer-studio
    regards
    biplab
    Use a Good Subject Line, One Question Per Posting - Award Points

  • Jar file for Java Mapping

    Hi All:
    Can any one send me the<b> .jar</b> or<b> ZIP</b> file that is required for Java Mapping.
    My email id is [email protected]
    <i>Will Rewards points for the quick response.</i>
    Thanks & Regards
    Farooq.

    Hi Amir,
    I know this paath, but I dont have an access to access that dir. So just form test purpose (NWDS) I need that .jar file. If you send it that will be great for me:)
    Thanks
    Farooq.

  • Can i know the about Forte for JAVA 4

    hi all,
    am switching to use Forte 4 CE, does anyone know the update center web address? i wish to download the package and install it later while offline, any? thank you

    That product is 4 or 5 product versions out of date, and is no longer supported.
    The successors are various Sun Java Studio items, and NetBeans. Here's the only reference that I could find, and it's to the product version after the one you have.
    "Existing Sun ONE Studio 4 update 1, Community Edition users who wish to continue leveraging the advanced Enterprise tier capabilities can download the free evaluation copy of Java Studio Standard 5 update 1. Developers who prefer to continue using a free IDE and only require J2SE and Web application development capabilities should download the NetBeans open source IDE. "
    NetBeans is at www.netbeans.org
    The Sun page for its Java development tools is:http://www.sun.com/software/index.jsp?cat=Application%20Development&tab=3&subcat=Development%20Tools

  • How can I read cookies in WebDynPro for Java

    Hi,
    in WebDynPro for Java I found a possibility to to get a "request-object" like the standard "HttpServletRequest-object"
    IWDProtocolAdapter protocolAdapter = WDProtocolAdapter.getProtocolAdapter();
    IWDRequest request = protocolAdapter.getRequestObject();
    debugEnabled = (request.getParameter("Debug") != null);
    With this request-object I can read request-prameters but I couldn't find a possibility to get cookies from the request.
    There is no method like the "getCookies().method" in the HTTPServletRequest-Interface:-((
    Has anybody an idea, how I can read cookies in WebDynPro for Java ?
    Regards
    Steffen

    Hi,
      This is the latest update I could look for regarding cookies and webdynpro.
    Panic - WebContextAdapter is depracted - no more cookies now?
    Regards,
    Harini S

  • Can Central System administration be configured for JAVA systems?

    I know, we can configure Central system administration (DSWP -> Solution -> Operations Setup) for ABAP and ABAP+JAVA systems.
    Can some one tell me, can it be configured for JAVA systems like Portal?
    Thanks
    Aditya

    Hello Aditya
    Unfortunatelly Java only systems are not supported by CSA in EHP1. The CSA infrastructure is currently being overhauled and as a result of this, pure Java systems will also be covered starting with the next release of SAP Solution MAnager (SAP Solution Manager 7.1) The availability of this next release will be this year, but I am not yet sure when exactly. You can check further info in www.service.sap.com/solutionmanager -> in the last line of this page there is a link to get detail about this version Ramp-Up.

  • Importing jar files for Java mapping ?

    Hi Guys,
    I am developing a java mapping by using Eclipse. I want to know <b>where can i find the jar files of xi which i need to import into Eclipse to develop the Java Mapping</b>.
    I need to use the external jar files for this Java Mapping and once i am done with the mapping, <b>How can import the external .jar files into XI</b>
    any hep would be really appreciated
    Thanks,
    srini

    Sri,
    check <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions's XI FAQ</a> for the location of .jar of mapping API.
    <b>5. Where can I find aii_map_api.jar to create my Java mapping?</b>
    After you have created your java mapping class, export your project to a .jar file and import this .jar into Imported Archives (under Mapping node) in Integration Repository.
    Regards,
    Henrique.

  • How to Cache Data  from database for java mapping ?

    Hi
      I have a scenario where  i have to dynamically query  a huge table in some other database from java mapping code.
    Therefore instead of making a new Database trip everytime is there a mechanism by which i can cache the entire table contents into XI first and then use this cache for looking up data through my java mapping.
    Any other alternative also welcome which would give best performance.
    Please Suggest
    regards
    Nilesh Taunk.

    Hi Nilesh,
    I am not sure if you can actually cache the table in XI. You will have to look up directly from your Database everytime your mapping excecutes.
    To perform DB lookup during mapping very efficiently, I would suggest that you take a look at this blog,
    /people/siva.maranani/blog/2005/08/23/lookup146s-in-xi-made-simpler
    Also, instead of doing the DB look up in mapping, you can also use your JDBC adapter as a sender and collect the information you want from your DB,
    If you are using your JDBC as a sender, then your JDBC will poll over your database and select the rows that satisfy your Select Query. Also, there is another field in your JDBC adapter that is very important and that is the Update satatement. Once your JDBC adapter executes your select query and selects rows from the database, you might not need those rows to be selected again. In this csse, you can use the Update statement to update the database.
    http://help.sap.com/saphelp_nw04/helpdata/en/7e/5df96381ec72468a00815dd80f8b63/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/2e/96fd3f2d14e869e10000000a155106/content.htm
    The choice between a JDBC sender adapter , and the DB lookup will have to be on the basis of your requirements.
    Regards,
    Bhavesh

  • Where can I get a good debugger for Java Studio 8

    Okay So I've built a GUI application using Swing and I'm haveing a difficult time debugging this application.
    I'm use to the debugger in MS Visual Studio.net and i can't see to get Java Studio 8 to stop at my break points nor can i get it to step through my code.
    What do I need to do in order to debug with this IDE?
    Some helpful links to tutorials would be nice.
    Thanks in advance

    Okay this is an awsome link I'll look it over and see if that answers my questions.
    My teacher for this class hasn't been very helpful in point out resources to go to and I haven't found much direction on the Sun site.
    Thanks for the quick repsonse.

  • Where can I find a portal server for JAVA development?

    Hi, everyone:
    I am looking a portal server which can be used under Windows envorinment and related development environment (toolkit or SDK).
    I have done some search through IBM and SUN's web site and I can not find any portal servers that running on Windows plarform for download and related Windows development (toolkit or SDK).
    Where can I find some trial versions of portal servers running under Windows and related Windows development (toolkit or SDK)? I want to use JAVA to development portal, so Microsoft does not provide any useful information.
    I just want to use basic functions of portal servers so I think other portal servers other than IBM and SUN's can also be used, maybe an open source one can be used. But I do not know what are they and where can I get them. :-)
    So, anyone can help me to introduce a portal server that can meet my needs. Or provide me information where to download IBM or SUN's portal server running under Windows and related Windows development (toolkit or SDK).
    Best regards,
    George

    I just want to use portal server and deploy some
    applications written in JAVA. Have I made myself
    understood?
    Still not clear.
    Do you want a server application that deploys software. For example you create a game. Someone logs into your "portal server" and downloads the game from that?
    Or do you just want to know how to package a java app that you have already written, and then put it on a CD so someone can install that on their computer?

  • How can I create an arrow animation for my map

    Hi all ,
    I am new and would like to create an arrow animation moving to show a path on my map.
    how can I show this arrow animation on my jpg image?
    do I have to convert my image to gif first?
    do you have any tutorial for this so please show me.
    it would be better to be a step by step so I can better underestand each step.
    Iam using fireworks mx2004.
    thanks for any help.
    Regards

    The JPEG format does not support animation, so if you want to add a moving arrow to a map, you'd need to make an animated GIF or a Flash movie.
    If your map is a large image, then adding the frames to make an animated GIF could make very big file and that wouldn't be good. Another thing to keep in mind is that a JPEG image can have millions of colors but an animated GIF can only have 256. If your map is a line art (a drawing), then usually the GIF or PNG formats give you a better result, anyway as the JPEG format introduces noise and color shifts which are normally not noticed on photographs.
    I searched Google for "animated gif in fireworks mx" and this tutorial looks like it might be helpful:
    http://www.disdatdesigns.com/fireworks/animation1.shtml
    In your case, you would share your map across the frames and each new frame would have a different arrow on it.
    Good luck!

  • Can someone pleas tell me about abap, java and xslt mappings

    Hi,
    can someone please tell me about abap, java and xslt mappings.
    Thanks,
    Bernard.

    HI,
    JAVA mapping
    /people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-i /people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-ii /people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-iii /people/ravikumar.allampallam/blog/2005/06/24/convert-any-flat-file-to-any-idoc-java-mapping /people/amol.joshi2/blog/2006/03/10/think-objects-when-creating-java-mappings /people/sameer.shadab/blog/2005/09/29/testing-abap-mapping sample code for java mapping blog=/pub/wlg/4143 tutorial sax and dom
    ABAP mapping
    ABAP mappings run on ABAP Stack and are developed in the ABAP workbench of the Integration Server.
    You normally do not need to use the ABAP mappings and is preferable for someone with ABAP programming background. I should say JAVA functions would suffice any complex scenarios.
    refer step by step guides for ABAP Mapping
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/5c46ab90-0201-0010-42bd-9d0302591383
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/e3ead790-0201-0010-64bb-9e4d67a466b4
    /people/sameer.shadab/blog/2005/09/29/testing-abap-mapping
    ABAP Mapping
    /people/udo.martens/blog/2006/08/23/comparing-performance-of-mapping-programs
    https://websmp101.sap-ag.de/~sapdownload/011000358700003082332004E/HowToABAPMapping.pdf
    /people/ravikumar.allampallam/blog/2005/02/10/different-types-of-mapping-in-xi
    /people/r.eijpe/blog
    ABAP Mapping Vs Java Mapping.
    Re: Message Mapping of type ABAP Class not being shown
    Re: Performance of mappings (JAVA, XSLT, ABAP)
    XSLT Mapping
    XSLT stands for EXtensible Stylesheet Language Transformations. It is an XML based language for transforming XML documents into any other formats suitable for browser to display, on the basis of set of well-defined rules.
    /people/sap.user72/blog/2005/03/15/using-xslt-mapping-in-a-ccbpm-scenario
    /people/anish.abraham2/blog/2005/12/22/file-to-multiple-idocs-xslt-mapping
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/01a57f0b-0501-0010-3ca9-d2ea3bb983c1
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/9692eb84-0601-0010-5ca0-923b4fb8674a
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/006aa890-0201-0010-1eb1-afc5cbae3f15
    /people/prasadbabu.nemalikanti3/blog/2006/03/30/xpath-functions-in-xslt-mapping
    https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=xslt+mapping&adv=false&sortby=cm_rnd_rankvalue#
    Steps required for developing XSLT Mapping
    u2022 Create a source data type and a target data type
    u2022 Create Message types for the source and target data types.
    u2022 Create Message Interfaces includes Inbound Message interface and Outbound Message interface.
    u2022 XSLT Mapping does not require creation of Message mapping, so donu2019t create any Message mapping.
    u2022 Create an .XSL file which converts source data type into target data type.
    u2022 Zip that .xsl file and import it into Integration Repository under Imported Archives.
    u2022 In Interface Mapping choose mapping program as XSL and specify this zip program. (Through search help you will get XSL Mapping programs that you imported under Imported Archives, select your corresponding XSL Program)
    u2022 Test this mapping program by navigating to Test tab.
    By having look at above steps you can easily find out that this mapping is no where different from other mapping programs, here the challenging lies in creating an XSLT file. If you spend couple of minutes in studying XPATH tutorial you would be in ideal position to create an XSL Transformation (.xsl extension).
    If you still find difficulties in generating XSL Transformation, then you can make use of a tool u201CAltova MapForceu201D which will create XSL file for you.
    Steps for creating XSL file using this tool:
    1. Open the Alto MapForce, import the source .xml and .xsd file in it
    2. Similarly import the target .xml and .xsd in MapForce.
    3. These two data files should match with source and target data types in Integration Repository.
    4. Complete the graphical mapping using extensive list of XSLT functions available there.
    5. Save the mapping file.
    6. Click the XSLT tab. You will have the entire xslt logic there.
    7. Copy that content and save it as .xsl file.
    8. Zip above .xsl file and import the same into IR under Imported Archives.
    Hope this clears your doubts
    Thanks
    Saiyog

  • "select-option" in WD for java

    Hi,
    In the selection-criteria I want to have a field in which the user will be able to select ranges (like in the select-options in the R/3).
    I know that in the webDynpro for ABAP there is a solution for this, but how can I do that in webDynpro for java ??
    I can't think of a UI design that will not look ugly...
    I need to supply this feature in several components
      any ideas ?
      Thanks, Nir.

    Hi Vishal,
    If its a search help, use the following code:
    lt_range_table = wd_this->m_handler->create_range_table( i_typename = 'S_PLANETYE' ).
    wd_this->m_handler->add_selection_field(
    i_id = 'S_PLANETYE'
    it_result = lt_range_table
    i_read_only = read_only
    I_VALUE_HELP_TYPE = 'SEARCHHELP'
    i_value_help_id = 'Z_SAPLANE' ).
    In this example, 'Z_SAPLANE' is the dictionary search help.
    This will solve your problem
    For further details, goto interface IF_WD_VALUE_HELP_HANDLER to get a list of values you can supply to parameter I_VALUE_HELP_TYPE.
    This is similar to what you do with a context, similar to the options you get in the dropdown for Input Help property.
    Regards,
    Chitrali

  • JAVA Mapping for SFDC integration

    Hello Friends,
    I am working on a R/3-SFDC integration.While pushing data from PI to SFDC it expects session ID and traget url and through java mapping we can acchive it.
    I have got Uarunas blog for java mapping which is very gud.
    http://wiki.sdn.sap.com/wiki/display/XI/SFDCIntegrationusingPI7.1-HowtoaddSOAPEnvelopeinJava+Mapping
    I have tried that code but it is not working, it is bulding the soap envelope but not fetching the session id from SFDC(might be it is not able to login to SFDC). Can anybody tell me how to pass the user id and password for this code.
    Regards,
    Jayesh.

    Check 2 things in your code?
    a) Are you passing your communication component name and receiver comm channel name in the code...?
    i.e  here..
    Channel channel = LookupService.getChannel("BC_SFDC","CC_Login");
    b) Check what namespace you use in loginxml  String.... use the one that is required for the target system?
    String loginxml = "<login xmlns=\"urn:enterprise.soap.sforce.com\"> <username>"

  • When do we go for ABAP mapping and Java mapping

    Hi friends,
                At present I am working on graphical mapping in XI ,can you guys give me with an example or scenario when do we use ABAP mapping , Java mapping or XSLT mapping.
    Thanks in advance
    Sud

    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/forums">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/forums</a>
    I have standard XSLT mapping programs available for my scenarios, so use XSLT mapping. Similarly with Java mapping,  For most scenarios, message mapping does the job too well. Abap mapping similarly is used to leverge existing ABAP base.  If message mapping becomes confusing and hard to follow with too many functions, I go for Java mapping (just my way). I havent used ABAP mapping thus far.
    Discussing ABAP mapping
    ABAP mapping is developed in ABAP work bench. ABAP mapping needs to be transported to integration server and XI does not support this transport and have to do with ABAP transports.
    Customers who can develop mapping program on SAP web AS and can transport them there can use ABAP mapping
    *ABAP mapping programs cannot access the value table
    *Since ABAP mappings are executed on ABAP stack SAP does not provide any ABAP mapping programs
    *ABAP mapping programs must exists with one single version in IS, unlike JAva and XSLT mapping that can have multiple versions of mapping program
    Regards,
    Priya
    priya k
    null

Maybe you are looking for

  • Dragiing entire Panel in Mac

    Hi, I am running below given drag and drop program in Windows and Linux it is working fine but i run in Mac entire Panel is moving i am not getting the proper cursors. Program is :* * This component can operate in two modes. In "draw mode", it allows

  • Invoice Final Indicator on purchase Order

    Hi All,   I have one question with respect to invoice final indicator . I have PO for 10 quantity for 100 $ and made GR for 10 quantity for 100 $ and invoice for 10 quantity for 100 $. should system automatically set the final invoice flag in PO  as

  • Display HTML in Java Applet

    Is it possible to display HTML text in some control in Applet. I do not want to use the swing class for that. please guide me. I am currently using the TextArea to display text which displays text only in a single color. But I want to display text in

  • TDS adjustment entries for incorrect section code

    Hi, I would like to do the adjustment entry for the incorrectly captured TDS amounts on the downpayment request. While creating the down payment request the TDS code was incorrectly captured in section code 194I instead of 194J. The downpayment was a

  • Determine if LabVIEW RTE Installed

    We're looking at creating a third party installer for our application, which can exist as both 32-bit and 64-bit LabVIEW executables for Windows. My problem is I'm not sure how to check for the appropriate LabVIEW runtime. It seems if I peer into the