Application.xml API

How can I access programmatically the content of the application.xml file ? I want
to read the description element and show its value in my web application (I'm
storing the version number in this element).

I'd recommend that you get an InputStream to the application.xml, run it
through an XML parser and grab the description element.
If efficiency is a concern, then I'd use:
http://edocs.bea.com/wls/docs81/xml/xml_stream.html#1092257
You can just filter for the element that you wnat.
It's a little tricky to get an InputStream to the application.xml from a
webapp. You may need to put / or /META-INF in your manifest class-path.
-- Rob
Jörg wrote:
How can I access programmatically the content of the application.xml file ? I want
to read the description element and show its value in my web application (I'm
storing the version number in this element).

Similar Messages

  • [METASOLV XML AP]devolop JAVA client using XML API for metasolv application

    Hi All,
    I am new in this group, and I need to help me to develop a java client to communicate with metasolv application using XML API.
    I read "XML API Developer’s Reference" document, but I still not understand how can I setup the cllient.
    I still need:
    1- What API needed(jar files) I must use to build the client
    2- A sample of source code using java.
    3- detailed guide to communicate with metasolv application using XML API.
    Thanks&Best Regards
    RADOUANE Mohamed

    any help please!!!!

  • Soap Receiver : how to convert application/xml of payload to text/xml?

    I get a purchase order xml from SRM with payload as "MainDocument(application/xml)". The receiving system is a Webmethods service that can only accept text/xml. If I try using the testing facility of the runtime workbench (Testing tab under IE under Component monitoring) by pasting my required xml payload, it works because the payload is generated as "PayloadName(text/xml)".
    Is there some easy way to change this to "MainDocument(text/xml)"? I am using SOAP receiver adapter and have selected/checked the 'Do not use SOAP envelope', 'Keep Headers' boxes. If I use '&nosoap=true' at the end of the URL, I am getting a 'Unknownservice' exception back from the receiving system.
    Thanks

    Hi Bhavesh,
                   thnks for u replies, i have tried this but facing some issues.
        If i uncheck option <b>Do not Use SOAP envelope</b> the again it gives me the error  "com.sap.aii.af.ra.ms.api.DeliveryException: java.io.IOException: invalid content type for SOAP: TEXT/HTML"  in response msg id.
    Also u said that there is no need to use bpm, but the flow of my data is first to R/3 where it creates a employee record and then the same data is passed to mdm.

  • How to use HTTP / XML API

    Hi,
    I have to communicate with a product . The product has HTTP / XML API . The API has some functions. The examples in the product docs ,
    If you send a HTTP request to URL of the product with function name and some input parameters , It returns XML response , this response corresponds to some DTD.
    Now from java Application I have to send some HTTP requests and do some things according to obtained responses.Some times I have to parse the XML responses returned to show the user some results.
    How can I do this in Java , I have not worked with this kind of requirements.
    Thanks,
    pandu

    I wanted to do both , from the java Application to server.
    1.Send HTTP (post) request
    2.Parse the returned XML response from the server.

  • CCME xml api

    hi all!
    I'm trying to do some xml requests to a Cisco CallManager Express 4.1(0). But every time i get a "The underlying connection was closed: The connection was closed unexpectedly." error.
    After a while i found the default test page on the CCME for testing the xml API: http://CCME-IP/ISApi/AXL/V1/soapisapi.is You only need to past this in the url bar of your browser
    When i submit the gerenated code on that page i recieve the following error: "Cannot find server - The page cannot be displayed" But when i press the f5 button the default test page shows again.
    Is there anyone who can help me? Thanks in advance!

    Well, here's my chance to give back to the community. I've finally figured out how to communicate with CME 4.2.
    First a little background - My application creates the string that represents the SOAP XML messages, uses the WebRequest object (C#) to set the headers, send, and receive the response. This worked fine for the regular Cisco Call Manager, but once I tried it with Express, the server kept killing the connection. If I screwed with the authentication string, I would at least get a response saying that I did not have authorization, but got absolutely nothing back when sending a valid xml request.
    Using wireshark to examine the packets, I tried to reproduce the message that was being sent (successfully) from the API test page that is built into the server. I had first thought that my problem was with either the http headers or my xml was incorrect, but what I have found is this - The soap message MUST be preceded with "content=" and MUST be url encoded. It doesn't matter what the content type header is set to ("text/xml" or "application/x-www-form-urlencoded" as coming from the webpage); it will only respond to my request when I prefix content= and url encode the data.
    This was very frustrating to say the least. This is obviously contrary to anything in the XML Provisioning Guide for CME, which tells you to pass text xml just like Call Manager. Anyway, I posted this in hopes that it saves someone else the headache and in thanks to all of those that have helped me.
    Brian

  • CME XML Api

    Hi apologies if I'm posting this in the incorrect forum.
    Can someone tell me if it's possible to get a list of Directory numbers and names from the XML API in CME? I'm aiming to do this with an intranet, any information pointing me in the right direction greatly appreciated.
    Thanks,
    Craig.

    The IsGetDevice operation will get you all the devices including their extension numbers from a CME. You need to set up the router XML interface on the router as per this document: http://cisco.com/en/US/docs/voice_ip_comm/cucme/srnd/design/guide/managcme.html#wp1076023
    then follow the appropriate developer guide which you can get here: http://www.cisco.com/cgi-bin/dev_support/access_level/product_support (under voice gateway applications)
    You'll also find searching this forum for the topic useful as there are a few things the developer guide fails to mention (specifially that you need to urlencode the message before sending).

  • Can not use XML API from Sun (JAXP)

    Some of my EJBs and Servlets uses XML API from Sun (JAXP) but after deployment the J2EE Container uses its own XML engine (Oracle XML Parser....) instead.
    I try to add JAXP library to my deployment file and test again but this problem still occurred.
    My question is how to add my libraries to J2EE Container and these libraries can be shared by any applications.
    Regards,
    Narong

    Please post this in the misc or xml newsgroup.
    vipuld shah wrote:
    i have an application which is running through javaWebStart
    if u start the application first time(through clicking on
    link of .jnlp file), it will download necessary .jar files
    & it will store those files in javaWebStart's cache.
    when u will visit second time, it will check files in cache
    with the files in server, if both are same, then it will not
    download but will use from its cache.
    it works fine for .jar files, but is it possible for some .xml
    files which are changing very rarely.--
    Rajesh Mirchandani
    Developer Relations Engineer
    BEA Support

  • Need XML APIs for finding server status details

    Hi,
    Can any one help me with the XML API format for finding server status details like Admin State,Avail State,Assoc State,etc.
    Thanks and Regards
    -Prateek

    Here is a very basic example.  I pulled out all the extra error trapping / logging.  I have been building a module that simplifies  most of this .. will produce simple Dumper output for what you are generally looking to do.
    The below example will connect to a default UCSM emulator ( http://developer.cisco.com/web/unifiedcomputing/start ) .. just change IP to match.  If you want a significantly more detailed information ( hierarchical ) ... change inHierarchical="false" to  inHierarchical="true".
    Let me know if you want something more specific.
    #!/usr/local/bin/perl
    use strict;
    use warnings;
    use Data::Dumper;
    use LWP::UserAgent;
    use HTTP::Request::Common;
    use XML::Simple;
    use POSIX;
    $Data::Dumper::Purity = 1;
    $Data::Dumper::Useqq = 1;
    ### Configurables
    my $ucsm = "10.#.#.#";
    my $user = "config";
    my $pass = "config";
    my $proto = "http";
    my $cookie;
    my $xml = XML::Simple->new();
    my $xml_blade = XML::Simple->new(ForceArray => ['computeBlade']);
    ## Setup User Agent
    my $ContentType = "application/x-www-form-urlencode";
    my $userAgent = LWP::UserAgent->new(agent => 'perl post');
    $userAgent->timeout(5);
    &connect;
    my $blades = &getblade;
    print Dumper $blades;
    &disconnect;
    ### Subroutines
    sub connect {
       my $message = q();
       print 'http://'.$ucsm.'/nuova\n';
       my $response = $userAgent->request(POST $proto.'://'.$ucsm.'/nuova', Content_Type => $ContentType, Content => $message);
       my $xml_ref = $xml->XMLin($response->content);
       $cookie = $xml_ref->{outCookie};
    sub getblade {
       my $message = q();
       my $response = $userAgent->request(POST $proto.'://'.$ucsm.'/nuova', Content_Type => $ContentType, Content => $message);
       my $xml_ref = $xml_blade->XMLin($response->content, keyattr => []);
       return $xml_ref->{outConfigs};
    sub disconnect {
       my $message = q();
       my $response = $userAgent->request(POST $proto.'://'.$ucsm.'/nuova', Content_Type => $ContentType, Content => $message);

  • Unable to add xml-apis.jar

    When ever i add xml-apis.jar to the oracle application server as part of deployment of my application, the server gives the following error when i want to log into the application server control.
    This OC4J is configured to make JMX connections via RMIS and fall back to RMI if the RMIS port is not configured. The RMIS connection on the OC4J instance home on Application Server test.10.224.1.158 is configured but a connection could not be established. The JMX protocol is specified by the oracle.oc4j.jmx.internal.connection.protocol property in opmn.xml

    let follow your post on unable to add xml-apis.jar
    regards
    Tugdual Grall

  • Create a secure  XML API

    I need a web application to authenticate other web applications and then allow them to read the MYSQL database contents that available in my end.
    for a example http://www.mydomain.com has the MySQL database contents.
    http://www.otherdomain1.com,http://www.otherdomain2.com,etc. will read the database contents from my web site.
    these otherdomains are made from various languages, so i have to display my database contents in a format that can be understood by any other language.probably it should be a XML API.
    any suggestions on creating such a application, might be help full for me.Thanks.

    for the time been I'll forget about the Authentication.Why i need a authentication actually before i let otherdomains Application to read my XML data i need to verify whether they are registered users or not.
    If Authenticated here after will generate the XML data.What i need to know first of all we will say otherdomain1 with PHP scripts try to read the XML data generated by my end that uses Servlet technology, in that case should i write a XML file to DIR under my web root or should i execute it in the browser window.
    what is the best way of making it, then other applications made from PHP,ASP can read those data and they can display it under their web sites.

  • Application Manager API

    Hi,
    Can I create applications using Application Manager API? I found an example at http://help.adobe.com/en_US/livecycle/10.0/ProgramLC/WS98f05ad7ea54cfa45d20bd73139c3c669e5 -7fff.html.
    However, createApplication() method is not present in adobe-applicationmanager-client-sdk.jar. I am using LC ES 2.5. Can anyone let me know if this method exists in ES 2.5 or not? If yes, then can you point me to the correct jar.
    Thanks,
    Ambika

    Is this in a custom component? I am wondering since the Exception says not found in namespace. If so, try using import-packages in component.xml instead of class-path and actually adding the jar. Example:
      <import-packages>
        <package version="1.0">org.apache.commons.codec</package>
      </import-packages>

  • Error-page tag not valid in global-web-application.xml ?

    Hi!
    From what I understand about the global-web-application.xml file in Oracle's documentation, the content of the web-app tag should be inherited to all web application as a web.xml content.
    One of the web.xml tags is error-page, which contains the page url for the standard return codes (404, 500, and so on).
    If I put the error-page on the web.xml inside a web application, it works as expected.
    But if I don't put this tag inside the web applicaction, but in the global-web-applicacion.xml (web-app) tag, it doesn't work.
    We are testing the 404 error page, but I don't know if it is because the application server can't find the error page or because the global-web-application.xml isn't being inherited correctly.
    Where is this file supposed to be looked for? Or the only way to do this is by writing the configuration on all web applications?
    We are using 9.0.3
    Franco Catrin L.
    TUXPAN

    Just refreshing... Does anyone have any idea?
    Daniel.

  • Problem with application.xml

    Hi,
    I would be really grateful if anybody could help me on this. My application.xml is given below:
    <!DOCTYPE application PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN"
    "http://java.sun.com/dtd/application_1_3.dtd">
    <application>
    <display-name>SayMyName</display-name>
    <description>SayMyName</description>
    <module>
    <ejb>TheSayMyName.jar</ejb>
    <java></java>
    <web>
    <web-uri>TheSayMyName.war</web-uri>
    <context-root>SayMyName</context-root>
    </web>
    </module>
    <security-role></security-role>
    </application>
    At first I never had <security-role> and <java> element.
    But with all permutations and combinations I am always
    getting the following error message, whenever I am
    trying to deploy my .ear file.
    weblogic.management.DeploymentException: Error while loading descriptors: Error parsing file 'META-INF/application.xml' at line: 19 column: 15. weblogic.xml.process.XMLParsingException: Error parsing file 'META-INF/application.xml' at line: 19 column: 15. The content of element type "application" must match "(icon?,display-name,description?,module+,security-role*)". - with nested exception: [org.xml.sax.SAXParseException: The content of element type "application" must match "(icon?,display-name,description?,module+,security-role*)".] - with nested exception: [org.xml.sax.SAXParseException: The content of element type "application" must match "(icon?,display-name,description?,module+,security-role*)".]
    If anybody is aware of this problem, then kindly help.
    Interesting thing is that, even if I have number of lines
    less than 19, it says 19.
    Regards,
    Caesar

    Caesar Dutta wrote:
    <module>
    <ejb>TheSayMyName.jar</ejb>
    <java></java>
    <web>
    ...try
    <module>
    <ejb>...</ejb>
    </module>
    <module>
    <web>...</web>
    </module>

  • Error copying application.xml icons: .../bin-release/assets/icons' does not exist

    Hi,
    Whenever I try to export the release build I get error from COmpiler during the process that "Error copying application.xml icons: Resource '/Project_Name/bin-release/assets/icons' does not exist."  I have specified 4 icons in the -app.xml file of sizes 16,32,48,128 which exist in the path specified and files are not corrupt. I have checked and unchecked the compiler directive "Copy non-embedded resources in the Output file" but that has not helped too.
    Can somebody please advise what do I do in this situation?
    We are using
    FB4 with Flex Hero(4.5) SDK and java heap space specified in .ini files is 1224m
    This is somewhat urgent guys...
    Thanks
    Shubhra

    Frank,
    Thank you for your answer. I had not checked (will do so tonight).
    I had considered it adequate to wipe out the entire system directory (thereby wiping out the integrated weblogic server), but perhaps it was not adequate? I did not specify that this is on the integrated server, but that is the case....
    Stuart

  • Application.xml over-written when deploying JDeveloper 10.1.3.2

    Hi all,
    I created a Web Application that contains JSF, EJB, and Toplink. I have a ViewController project, a Model project, and a Deployment project. The ViewController obviously contains my JSPs, etc, the Model my EJBs and server code, and deployment profiles for each. The Deployment project contains a deployment profile for creating the EAR file for the other two projects.
    When the EAR is created (or if I deploy to stand-alone OC4J) the application.xml is generated without an module/EJB tag containing my EJB jar. Therefore when the server starts up it does not find any of my EJBs.
    If I manually modify the application.xml in a created EAR file and then deploy it manually, everything works great. So, I tried to create an application.xml file in my Deployment project (and I tried in my ViewController project, too), but it ends up getting over-written and changed to still not have the module/EJB tag. Can someone explain to me how to stop JDeveloper from overriding this file or how to get JDeveloper to include this tag set when creating the application.xml?
    Thanks,
    Mike

    JDeveloper 10.1.3.2 supports J2EE 1.4 in which the web.xml does not include the
    <taglib> element. Remove the <taglib> element from the web.xml. Specify the http uri in the <%@ taglib prefix='srp' uri='' %>
    Add the taglib JAR file to project libraries.

Maybe you are looking for