XML through DATASET

Hi,
I generated xml file using cl_xml_document and converting into a xml string by method render_2_string of the same class.
now i am trying to generate  .xml in background mode using DATASET,  but it is not creating.
can anybody help me.

Tan,
I would choose to use SQLX functions. It allows you to play with text, SQL and XML. For instance, you can do:
select xmltype('<?xml version="1.0" encoding="UTF-8"?><test>Test</test>') from dual;
as well as
select xmlelement("test",'Test') from dual;
or use them both
select xmlelement("foo",xmltype('<test>Test</test>')) from dual;
For more info, check out the XML DB Developers Guide.
Cheers,
Rob

Similar Messages

  • Parameter is not working in HTTP( XML FEED) dataset in bi publisher 11g

    Hi,
    I have used parameter in BI Publisher 10g for HTTP(XML Feed) dataset to have dynamic url which worked by using ${p_url} where p_url is the parameter.
    The same procedure when I use in BI Publisher 11g is not working.It does not consider the parameter ${p_url} and throws the following exception
    *oracle.xdo.dataengine.datasource.plugin.DataAccessException: java.lang.Exception: java.net.MalformedURLException: no protocol: ${p_url}*
    Has anyone faced this issue?
    Please let me know if am doing something incorrect here.
    Thanks &Regards,
    Balaji

    Thanks for your reply.
    In BI Publisher 10 g we are using it this way ${p_url}.
    p_url is the parameter which gives us the entire URL for the XML feed.
    e.g. p_url=http://rss.news.yahoo.com/rss/topstories
    The p_url takes the entire url.
    Please let me know if this can be done the same way in 11g.
    Thanks,
    Balaji

  • Oracle XSU class oracle.xml.sql.dataset.OracleXMLDataSetExtJdbc bug

    Hi,
    The oracle class oracle.xml.sql.dataset.OracleXMLDataSetExtJdbc needlessly casts the java.sql.Connection it receives in its constructor to oracle.jdbc.driver.OracleConnection.
    This will work fine in most circumstances, but throws a class cast exception when a proxified connection is used such that the connection is a wrapper rather than an instance of OracleConnection.
    I believe there would be absolutely no need for the oracle class to cast the connection to its derived form.
    Please correct this problem in the XSU as soon as possible.
    Thanks in advance,
    -- Dave Campbell

    Yes, of course I have. If you carefully see my first post, you will notice that I get an
    'ORA-00904: invalid column name' error when I - in purpose - use an invalid Query, which means that communication with Oracle DB is fine. The problem appears when my Query does return some results. It's really confusing me...
    Any other ideas?
    thanks!
    -n-
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Jinyu Wang ([email protected]):
    Have you include JDBC lib in your classpath?<HR></BLOCKQUOTE>
    null

  • XML through HTTP send

    Hello,
    I am having an requirement in which another web application would send XML through HTTP request to SAP which would be processed in SAP.
    I was thinking to use BSP where the external web application would send HTTP request to BSP URL. I was trying to find some method of request object which will be able to get this message but not getting suitable method.
    I tried using request->get_raw_message( ) but was not able to test. Basically i tried with sample msxml object using xmlhttp.send() method but couldn't find the response text.
    has anyone tried such thing. In java we do have response.set

    No i don't have that xhtmlb tag in my code.
    my code is very very simple..
    here is the code
    Method onRequest
    data: l_param type string value 't1'.
    lv_input = request->get_cdata( ).
    l_test = request->get_form_field( l_param ).
    Method onInitialization
    data: l_srno type i.
    select max( SRNO ) into l_srno from ztesthttp.
    if sy-subrc = 0.
      lv_num1 = l_srno + 1.
    endif.
    CALL FUNCTION 'Z_UPDATE_TEST'
    EXPORTING
       HTTPMESSAGE       = l_test
       SRNO              = lv_num1
    IMPORTING
       I_SUBRC           = i_subrc
       C_SUBRC           = c_subrc
    i_subrc = sy-subrc.
    and Layout
    The return code for insert is <%=i_subrc%> and commit code is <%=c_subrc%><br>
            The requested string is: <%=lv_input%> and <%=l_test%> and <%=pg_test%>
    Thanks..
    regards
    rajeev

  • Generating XML through PL/SQL

    Hi everyone,
    I got a new task at work, and my task is to generate XML through PL/SQL.
    I am using Oracle 11g database, and SQL Developer 3.0.
    The purpose of this procedure is to upload xml file to a queue, so my BPEL process can access the queue and do what it does.
    This is my first time writing a procedure that generates xml so bear with me.
    Below is a sample of the xml file I received. I need to generate xml file below through PL/SQL. All the information in xml file will need to be retrieved from the database.
    I need your help to start working on this procedure. Your help is very much appreciated.
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
       <soap:Body xmlns:ns1="http://www.ussc.gov/soa/casefile/event/types">
          <caseFileUploadEvent xmlns:xsi="http://www.w3XX.org/2001/XMLSchema-instance"
                               xsi:schemaLocation="http://www.XXXX.gov/soa/casefile/event/types ../xsd/Case_META.xsd"
                               xmlns="http://www.XXXX.gov/soa/casefile/event/types">
             <taskEvent>SUBMIT</taskEvent>
             <defendentDetails>
                <sentensingDate>2008-11-10-05:00</sentensingDate>
                <personDetails>
                   <personNameDetails>
                      <firstName>FIRSTNAME</firstName>
                      <middleName>B</middleName>
                      <lastName>LASTNAME</lastName>
                   </personNameDetails>
                   <dateOfBirth>1969-09-23-04:00</dateOfBirth>
                </personDetails>
             </defendentDetails>
             <documentStatusDetails>
                <otherStatus>
                   <intCode>61</intCode>
                   <description>Other documents included</description>
                </otherStatus>
             </documentStatusDetails>
             <uploadOtherDetails>
                <submissionId>427000447</submissionId>               // NOTE: SUBMISSIONID WILL BE PASSED IN THROUGH THE PROCEDURE TO QUERY ALL THE INFORMATION NEEDED FOR THE XML FILE
                <submissionSessionId>401622</submissionSessionId>
                <submissionMethod>
                   <intCode>1</intCode>
                   <description>WebApplication</description>
                </submissionMethod>
                <submissionReason>
                   <intCode>1</intCode>
                   <description>InitialSubmission</description>
                </submissionReason>
                <district>
                   <intCode>99</intCode>
                   <description>Test District</description>
                </district>
                <caseFileType>
                   <intCode>10</intCode>
                   <description>Individual - Original</description>
                </caseFileType>
                <primaryDocketInfo>
                   <yearYY>5</yearYY>
                   <id>55555</id>
                   <defendentNumber>555</defendentNumber>
                </primaryDocketInfo>
                <PACTSId>55555555</PACTSId>
                <AOJudgeId>
                   <intCode>2512</intCode>
                   <description>FABER, DAVID, A.</description>
                </AOJudgeId>
                <missingCasefile>false</missingCasefile>
                <creator>
                   <firstName>will</firstName>
                   <lastName>smith</lastName>
                   <email>[email protected]</email>
                   <actionDate>2005-09-07T09:48:09.811-04:00</actionDate>
                </creator>
                <lastModifier>
                   <firstName>john</firstName>
                   <lastName>doe</lastName>
                   <email>[email protected]</email>
                   <actionDate>2006-10-03T08:51:21.5-04:00</actionDate>
                </lastModifier>
             </uploadOtherDetails>
          </caseFileUploadEvent>
       </soap:Body>
    </soap:Envelope>procedure below
    procedure upload_process(submission_id number) as
    begin
         -- retrieve information from database based on submission_id (passed in)
         -- generate XML
         -- send xml to queue
    end upload_process;Thanks

    Rooney,
    First of all, I would use Oracle package UTL_DBWS to handle web service calls.
    But if you choose to do all the work yourself to call web service, this is one of the options:
    Since the size of your xml soap request is about 4k, you can just use pl/sql varchar2 variable to construct your xml.
    Example:
    cSoapRequest VARCHAR2(5000);
    BEGIN
    cSoapRequest := '<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
                             <soap:Body xmlns:ns1="http://www.ussc.gov/soa/casefile/event/types">
                             <caseFileUploadEvent xmlns:xsi="http://www.w3XX.org/2001/XMLSchema-instance"
                             xsi:schemaLocation="http://www.XXXX.gov/soa/casefile/event/types ../xsd/Case_META.xsd"
                             xmlns="http://www.XXXX.gov/soa/casefile/event/types">';
    FOR recRow IN <your cursor> LOOP
        cSoapRequest := cSoapRequest || '<dateOfBirth>'|| TO_CHAR(recRow.DOB,'YYYY-MM-DD HH:MI' )|| '</dateOfBirth>';
    END LOOP;
    ...Then use package utl_http to send the request and recieve response.
    Google pl/sql webservice,
    Here is one:
    Calling Web Service from PL/SQL (ORA-31011: XML parsing failed)
    Hope this will give you an idea.
    Thomas

  • Can we change table into XML through OWB

    Hi everyone,
    Is it possible to change table into XML through OWB?
    Can anybody help me.
    just send me the steps to do
    Thanks in advance
    Rachit

    Hello, Rachit
    As far as I understand our question – you need to export data from the table into XML file.
    I don’t think you have direct operator within OWB (at least for ver. 9.2.0.4). But anyway, you could write PLSQL procedure using DBMS_XMLQUERY to perform XML generation and transform it with your stylesheet.
    Unfortunately, this package uses DOM to work with XML, so could have a serious memory consumption while trying to export large tables this way.

  • Editing XML Through NAL

    Hey All,
    I am having a lot of trouble editing XML files through the NAL. I was
    hoping to be able to do it easily using the text editor built into the
    NAL, but have had no success. Changing the file extension to txt doesn't
    help either. Pretty much everyhtng leads to crashing the NAL or buffer
    overruns. Any help would be greatly appreciated.
    Thanks,
    Matt

    On Wed, 07 Nov 2007 20:40:26 GMT, Matt wrote:
    > I am having a lot of trouble editing XML files through the NAL. I was
    > hoping to be able to do it easily using the text editor built into the
    > NAL, but have had no success. Changing the file extension to txt doesn't
    > help either. Pretty much everyhtng leads to crashing the NAL or buffer
    > overruns. Any help would be greatly appreciated.
    what do you mean with editing xml through NAL?
    do you mean an application objects which changes stuff in a text file?
    if yes, how big is the text file, are there any special characters, doesn
    the file contain the stuff you want to change more than once?
    Marcus Breiden
    If you are asked to email me information please remove the - in my e-mail
    address.
    The content of this mail is my private and personal opinion.
    http://www.didas.de

  • How to write data into xml through web service

    Hi,
      I have a requirement to write the data into xml through a web service .send me related links and sample code if any.

    hi kiran,
      write the data into xml : We need suitable set of java Beans for handling WebService Data.
       However, there are cases when you may prefer an alternate mapping, or when there just isn't a well-defined mapping for your particular schema construct (xsd:choice is a common example). For these cases, IBM® WebSphere® has introduced a new feature called Custom Data Binding that allows you to integrate alternate data binding technologies like JAX-B, EMF/SDO and XML beans, as well to define your own XML schema to Java mappings. This article provides an overview of the technology and how you can get started integrating it into your application.
    GO THru THis Links :
    http://www-128.ibm.com/developerworks/websphere/library/
    techarticles/0601_gallardo/0601_gallardo.html.
    Hope It Helps.
    Thanks
    Varun CN

  • Calculations while looping through dataset

    Hi
    I've just started using spry which I'm really enjoying. It's
    a really great and powerful framework.
    I have been able to display a dynamic region and its content
    looping through the rows of the dataset.
    My problem now is that according to the data in the data set,
    I have to make some calculations for each row. I can't seem to find
    a way to do it, and don't actually know if it is possible.
    this is how my xml looks like:
    var xmlStr = "<?xml version=\"1.0\"
    encoding=\"iso-8859-1\"?> \
    <portfolios> \
    <portfolio id=\"12345\"> \
    <portfolio_name>Test1</portfolio_name> \
    <investment>500000.0000</investment> \
    <current_value>513475.7260</current_value> \
    </portfolio> \
    <portfolio id=\"67890\"> \
    <name>Test2</portfolio_name> \
    <investment>100000.0000</investment> \
    <current_value>103574.6610</current_value> \
    </portfolio> \
    </portfolios>";
    var dsPortfolios = new Spry.Data.XMLDataSet(null,
    "/portfolios/portfolio");
    var xmlDOMDocument = Spry.Utils.stringToXMLDoc(xmlStr);
    dsPortfolios.setDataFromDoc(xmlDOMDocument);
    and the display for the data set:
    <div spry:region="dsPortfolios"
    class="SpryHiddenRegion">
    <table>
    <tr><th>Name</th><th>Investment</th><th>Current
    Value</th><th>Gain</th><th">Pct
    Gain</th</tr>
    <tr spry:repeat="dsPortfolios">
    <td>{name}</td><td>{investment}</td><td>{current_value}</td><td>GAIN_CALC</td><td>GAIN_PE RCENT</td>
    </tr>
    </table>
    </div>
    basically, where it says GAIN_CALC and GAIN_PERCENT in the
    table, these should be calculation (i.e. GAIN_CALC = current_value
    - investment and GAIN_PERCENT = ((current_value -
    investment)*100)/investment )
    can anybody help me there (if it's possible to do such things
    of course)?
    Thanks

    If you register a post load observer on your data set, you
    can perform the calculations on each row and add custom columns
    that you can then refer to from your region as data references:
    var ds = new Spry.Data.XMLDataSet("portfolios.xml",
    "/portfolios/portfolio");
    var obs = {};
    obs.onPostLoad = function(notifier, data)
    var rows = ds.getData();
    for (var i = 0; rows && i < rows.length; i++)
    var investment = parseFloat(rows[ i ][ "investment" ]);
    var currentValue = parseFloat(rows[ i ][ "current_value" ]);
    rows[ i ][ "gain_calc" ] = currentValue - investment;
    rows[ i ][ "gain_percent" ] = ((currentValue -
    investment)*100) / investment;
    ds.addObserver(obs);
    <div spry:region="dsPortfolios"
    class="SpryHiddenRegion">
    <table>
    <tr><th>Name</th><th>Investment</th><th>Current
    Value</th><th>Gain</th><th">Pct
    Gain</th</tr>
    <tr spry:repeat="dsPortfolios">
    <td>{name}</td><td>{investment}</td><td>{current_value}</td><td>{gain_calc}</td><td>{gain_ percent}</td>
    </tr>
    </table>
    </div>
    --== Kin ==--

  • Transforming XML through XSLT

    Hi Folks,
    I just need to transform a basic xml using xslt. I have built and xsl file which works fine on the given xml input. I have test through AltovaXMLSpy tool.
    Now I want to do the same through my java class with xml as input string and xsl file.
    I have seen this example:
    package com.ibn.util;
    import java.io.*;
    import java.net.MalformedURLException;
    import java.net.URL;
    import org.xml.sax.SAXException;
    import org.apache.xalan.*;
    * A simple demo of Xalan 1. This code was originally written using
    * Xalan 1.2.2.  It will not work with Xalan 2.
    public class SimpleXalan1 {
         * Accept two command line arguments: the name of an XML file, and
         * the name of an XSLT stylesheet. The result of the transformation
         * is written to stdout.
        public static void main(String[] args)
                throws MalformedURLException, SAXException {
            if (args.length != 2) {
                System.err.println("Usage:");
                System.err.println("  java " + SimpleXalan1.class.getName(  )
                        + " xmlFileName xsltFileName");
                System.exit(1);
            String xmlFileName = args[0];
            String xsltFileName = args[1];
            String xmlSystemId = new File(xmlFileName).toURL().toExternalForm(  );
            String xsltSystemId = new File(xsltFileName).toURL().toExternalForm(  );
            org.apache.xalan.xslt.XSLTProcessor processor = org.apache.xalan.xslt.XSLTProcessorFactory.getProcessor();
            org.apache.xalan.xslt.XSLTInputSource xmlInputSource =
                    new org.apache.xalan.xslt.XSLTInputSource(xmlSystemId);
            org.apache.xalan.xslt.XSLTInputSource xsltInputSource =
                    new org.apache.xalan.xslt.XSLTInputSource(xsltSystemId);
            org.apache.xalan.xslt.XSLTResultTarget resultTree =
                    new org.apache.xalan.xslt.XSLTResultTarget(System.out);
            processor.process(xmlInputSource, xsltInputSource, resultTree);
    }but on compilation it gives errors as org.apache.xalan.xslt is not in the class path. Could anybody suggest which jars i need to resolve this problem and where I can get that? or is there any other better solution provided by the core java api?
    Thanks.

    thanks dude.
    Did it the following was as i wanted to read the transformation output as well.
    public String doTransform(String xmlString){
        ByteArrayOutputStream result = new ByteArrayOutputStream();
        //Result output = new StreamResult(result);
        try{
          DocumentBuilder parser = DocumentBuilderFactory.newInstance().newDocumentBuilder();
          Document document = parser.parse(new InputSource(new StringReader(xmlString)));
          Transformer transformer = TransformerFactory.newInstance().newTransformer(new StreamSource(new FileInputStream("/IBNSubscriberServlet/src/com/ibn/util/g7.xsl")));
          Source source = new DOMSource(document);
          //output = new StreamResult(System.out);
          transformer.transform(source, new StreamResult(result));
          return result.toString();
        }catch (Exception e){
          System.out.println(e.getMessage());
        return result.toString();
      }Edited by: buttsp on Sep 16, 2009 4:18 AM
    Edited by: buttsp on Sep 16, 2009 4:18 AM

  • Updating defaultTimeout in adf-config.xml through WLST

    Hello,
    I hope i have this in the right area. I'm cross posting because I think I put it in the wrong place originally. If I get an answer, I'll cross link the two.
    I'm trying to change the default, min and maximum timeouts for portlets that come from our WSRP portlet producing application. The documentation I found on the time outs says to edit adf-config.xml 1 and when editing the adf-config.xml do that via WLST ^2^.
    1) portlet time out: [http://docs.oracle.com/cd/E17904_01/core.1111/e10108/webcenter.htm#BABIGHDC|http://docs.oracle.com/cd/E17904_01/core.1111/e10108/webcenter.htm#BABIGHDC]
    <adf-portlet-config>
    <defaultTimeout>5</defaultTimeout>
    <minimumTimeout>2</minimumTimeout>
    <maximumTimeout>100</maximumTimeout>
    <adf-portlet-config>
    2) editing adf-config.xml: [http://docs.oracle.com/cd/E17904_01/webcenter.1111/e12405/wcadm_app_config_files.htm#WCADM5019|http://docs.oracle.com/cd/E17904_01/webcenter.1111/e12405/wcadm_app_config_files.htm#WCADM5019]
    I can not find the MBean in the bean browser that seems to hold this setting.
    There is a bit of a conflicting message in the docs though. "If you must modify these properties, post deployment, you must edit adf-config.xml manually." But the doc that describes editing adf-config.xml says that using WLST are
    So... Questions:
    1) Are these three elements (defaultTimeout, minimumTimeout, and maximumTimeout) some exception to being set from WLST?
    2) If not, what is the MBean I should find this setting in?
    Thank you very much,
    Marc
    Edited by: MarcDavenport on Jun 26, 2012 12:37 PM

    Marc,
    This is just a guess(have'nt done this), but I think the settings are not an exception, and you should be able to find the MBean here:
    http://docs.oracle.com/cd/E17904_01/webcenter.1111/e12405/wcadm_intro.htm#BHCCJJED
    This section of the doc seems to walk through an example setting properties in adf-config.xml
    I would interpret those instructions in the official doc to mean :
    1. If you don't mind changing this at deploy time and re-deploying(like we do when we're in deep development), you can change this and redeploy.
    2. If you have a deployed application, you can make changes through WLST. But keep in mind that the changes you make through WLST will not be overwritten later when you change the adf-config in Jdev and redeploy.
    (This lets you fine tune the timeouts for specific environments. ex: bigger timeouts for dev envs hosted with smaller resources/unstable un-optimized code, rather than guess a timeout that works for all environments )
    Now comes the conflicting parts :
    "If you must modify these properties, post deployment, you must edit adf-config.xml manually."
    I think,they mean "manually using WLST". This can probabaly be done with both WLST commands and the MBeans.
    Now once you make these changes to a deployed application, the changes you made are stored in MDS. This means that this "tuning" will survive a re-deployment.
    So if we :
    set the timeout to 1 minute initially at design time,
    then change that to 5 minutes through WLST,
    and then edit adf-config again in Jdev to a 10 minute value and redeploy,
    the MDS still has the 5 minute value, and it will overwrite the 10 minute value we set later at design time and redeployed.
    MDS documents are always applied on top of the deployed stuff.
    The doc you refered to : http://docs.oracle.com/cd/E17904_01/webcenter.1111/e12405/wcadm_app_config_files.htm#CHDGEDGJ
    does make a good explanation of how the changes persisted in MDS affects the final configuration.
    Hop that helps !

  • Way to Add/Update XML through browser?

    First off, what a fantastic framework you folks have created!
    I'm deploying HTML site locally on the intranet and I'd like
    to be able to add, delete or modify items in the XML file through
    some sort of HTML form. All the examples I've seen on the internet
    require asp or php, is there a way to do this without asp or php?
    If not, can anyone recommend a "user friendly" way to allow people
    do this? Thanks!

    quote:
    Originally posted by:
    GlazerGallery
    I am interested in doing this, too, and would like some
    advice as to what would be the easiest way to go, taking the
    following into consideration:
    1. I consider myself an artist and designer, not a
    programmer, though I hand-code my HTML, have a decent grasp of CSS,
    and have learned enough about Spry and XML to take some of the Spry
    demos and customize them to work on a couple of web sites. But I
    would love to have something that I could use to fill out an XML
    document without having to individually type each entry including
    the opening and closing tags, when I have sets of items where there
    are anywhere from 20 to 300 entries.
    2. Our site is hosted on a shared Linux server.
    3. I am very comfortable with Dreamweaver, which I see has
    some tools for marking up pages in PHP and ColdFusion.
    So what would be easiest to learn to do, learn PHP, go with
    the ColdFusion example cited above, or something else?
    Thanks,
    Helen
    dear Helen,
    i see your server was Linux platform on Shared Hosting, the
    best way to do know is to learn PHP since most (if not all) Linux
    server support this programming language, and for ColdFusion you
    need special server for that
    you can read some basic of PHP and its backend Database
    (especially MySQL) here:
    http://www.w3schools.com/php/
    mostly PHP are more easier than ColdFusion, since ColdFusion
    has it own markup (CFML)
    the concept was you input data to database and generate
    dynamic XML for that (like what V1 Fusion said) and load it using
    Spry, but if you want add/update/delete, you may have to do some
    trick with spry :D
    good luck

  • Send XML through JSP pages

    Hi friends
    I was wondering if it's possible to send XML data when a form button is pressed. Suppose we have in the client machine a browser displaying a HTML Form with one text inputtype and one button to send this information to the JSP Server. If the inputtype's name is 'user' it's easy to retrieve this information in the JSP component, just a request.getParameter("user") would work fine. But I want to send the text of the inputtype through XML. Something like :
    <data>
    <user>
    smith
    </user>
    </data>
    How could I tell the browser to send the information through XML ? Is it possible ? And how could I retrieve this XML data in the JSP component ?
    Thanks a lot

    What I have done is working with 'bare hands', I'll paste my simple code here:
    This is my HTML page for colleting the info:
    <html>
    <head>
    <title>Envio de XML</title>
    </head>
    <body>
    <form action=http://remoteaddress:8080/Proyecto/xmlsend method=POST>
    <BR>
    <BR>Numero Movil
    <input type=text name=numero>
    <p>
    <BR>Operadora
    <input type=text name=operadora>
    <p>
    <BR>Mensaje
    <input type=text name=mensaje>
    <p>
    <input type=submit value=Aceptar><input type=reset value=Limpiar>
    </form>
    </body>
    </html>
    And here it's my servlet code to process and convert it to XML:
    import java.io.*;
    public class xmlsender extends HttpServlet
    public void service(HttpServletRequest req, HttpServletResponse res)
    throws ServletException, IOException
    ServletOutputStream salida = res.getOutputStream();
    res.setContentType("text/xml");
    String cadenanumero = req.getParameter("numero");
    String cadenaoperadora = req.getParameter("operadora");
    String cadenabody = req.getParameter("mensaje");
    salida.println("<?xml version=\"1.0\" encoding=\"utf-8\"?>");
    salida.println("<mensaje id=\"000001\" tipo=\"SMS\" fecha=\"2004-04-26T10:54:33\">");
    salida.println("<numero>" + cadenanumero + "</numero>");
    salida.println("<operadora>" + cadenaoperadora + "</operadora>");
    salida.println("<body>" + cadenabody + "</body>");
    salida.println("</mensaje>");
    Don't know if this is what you want, but maybe it can at least illustrate you, I hope so.

  • Xml through java

    Hi,
    I want to have xml processing through java. can any one provide links for the same.
    I want the matter to be covering from basic to advanced topiccs.
    Thanks
    Rupesh

    First hit on "java XML" from Google. Type it in yourself, you lazy oik.

  • Not able to parse string-xml through parseEscapedXml

    Hi all,
    What I am doing is, I am getting some data through polling and populating a schema variable. Because of having extra namespace in the resultant xml, I again used processXSLT and assigned the resultant xml to a string variable (after converting it to string).
    Now I want to pass this string to my web service. When I tried the
    ora:parseEscapedXML(ora:getContentAsString(bpws:getVariableData('niku_xog_project_write_xml_as_string')))
    It is giving the xpath error ORABPEL-09500. However when I remove the parseEscapedXML function, I am able to see the correct data on server. But it doesn't work because web-service expecting the xml instead of string.
    Below is the xml in string format. I picked it from server log.
    *<NikuDataBus><NikuDataBus>*
    *<Header version="12.0.1.5063" externalSource="NIKU" action="write" objectType="project"/>*
    *<Projects>*
    *<Project name="Web tech support" projectID="0066000000AAJFLAA5" description="The tech support calls are currently being handled in N America internally. Charter is trying to cut costs and the contact centers are high on the list. They are somewhat sceptical about moving the calls offshore, but are open to discussions about CR as a solution for web tech support. This account will most likely issue a RFP in late April or early May." >*
    *<CustomInformation>*
    *<ColumnValue name="client_name">Comcast Cable Holdings Llc</ColumnValue>*
    *<ColumnValue name="fa_sales_owner">John Harris</ColumnValue>*
    *<ColumnValue name="prj_category">Complex Deals</ColumnValue>*
    *<ColumnValue name="fa_offering_practice">BPO &amp; Call Center Services</ColumnValue>*
    *<ColumnValue name="fa_offering_category">BPO &amp; Call Center Services</ColumnValue>*
    *<ColumnValue name="fa_offering_type">Express Services - Complex Arrangement</ColumnValue>*
    *<ColumnValue name="fa_isales_stage">Qualifying Deal</ColumnValue>*
    *<ColumnValue name="probable_win">5</ColumnValue>*
    *<ColumnValue name="fa_delivery_location"/>*
    *<ColumnValue name="fa_contract_type">T&amp;M</ColumnValue>*
    *<ColumnValue name="prj_type">2</ColumnValue>*
    *<ColumnValue name="prj_classification">1</ColumnValue>*
    *</CustomInformation>*
    *</Project>*
    *</Projects>*
    *</NikuDataBus>*
    *</NikuDataBus>*
    What should I do?

    Tried this...
    <copy>
    <from expression="ora:parseEscapedXML(translate(bpws:getVariableData('niku_xog_project_write_xml_as_string')), '&amp;', '&amp;amp;')"/>
    <to variable="Invoke_2_write_project_WriteProject_InputVariable"
    part="body" query="/niku:WriteProject"/>
    </copy>
    still not working :(
    Getting this exception...
    <2009-08-13 16:55:24,796> <ERROR> <default.collaxa.cube.engine.dispatch> <BaseScheduledWorker::process> Failed to handle dispatch message ... exception ORABPEL-05002
    Message handle error.
    An exception occurred while attempting to process the message "com.collaxa.cube.engine.dispatch.message.invoke.InvokeInstanceMessage"; the exception is: Invalid xpath expression.
    Error while parsing xpath expression "ora:parseEscapedXML(translate(bpws:getVariableData('niku_xog_project_write_xml_as_string')), '&', '&amp;')", the reason is Parse Error in translate function..
    Please verify the xpath query "ora:parseEscapedXML(translate(bpws:getVariableData('niku_xog_project_write_xml_as_string')), '&', '&amp;')" which is defined in BPEL process.
    ORABPEL-05002
    Message handle error.
    An exception occurred while attempting to process the message "com.collaxa.cube.engine.dispatch.message.invoke.InvokeInstanceMessage"; the exception is: Invalid xpath expression.
    Error while parsing xpath expression "ora:parseEscapedXML(translate(bpws:getVariableData('niku_xog_project_write_xml_as_string')), '&', '&amp;')", the reason is Parse Error in translate function..
    Please verify the xpath query "ora:parseEscapedXML(translate(bpws:getVariableData('niku_xog_project_write_xml_as_string')), '&', '&amp;')" which is defined in BPEL process.
         at com.collaxa.cube.engine.dispatch.DispatchHelper.handleMessage(DispatchHelper.java:171)
         at com.collaxa.cube.engine.dispatch.BaseScheduledWorker.process(BaseScheduledWorker.java:70)
         at com.collaxa.cube.engine.ejb.impl.WorkerBean.onMessage(WorkerBean.java:86)
         at sun.reflect.GeneratedMethodAccessor38.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.SetContextActionInterceptor.invoke(SetContextActionInterceptor.java:44)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
         at oracle.j2ee.connector.messageinflow.MessageEndpointImpl.OC4J_invokeMethod(MessageEndpointImpl.java:297)
         at WorkerBean_EndPointProxy_4bin6i8.onMessage(Unknown Source)
         at oracle.j2ee.ra.jms.generic.WorkConsumer.run(WorkConsumer.java:266)
         at oracle.j2ee.connector.work.WorkWrapper.runTargetWork(WorkWrapper.java:242)
         at oracle.j2ee.connector.work.WorkWrapper.doWork(WorkWrapper.java:215)
         at oracle.j2ee.connector.work.WorkWrapper.run(WorkWrapper.java:190)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:814)
         at java.lang.Thread.run(Thread.java:595)
    Pls help me.

Maybe you are looking for

  • Want to move this forum - any concerns?

    I'd like to move this forum to the following location so that all Solaris developer forums are together in one place:      https://community.oracle.com/community/server_%26_storage_systems/systems-development-and-management-tools/application_d- Do yo

  • Transport of changes to quereis and CKFs & RKFs

    Hi Gurus, I have a Multicube and a  number of queries that has been transported to HIQ already.  I have made a significant changes to these queries in HID, i.e. chges to CKFs, RKFs, including description changes as well as deleting some KFs, and addi

  • Messages application not syncing contacts

    Hi everyone, Since the recent update for Mavericks, I've noticed that the Messages application doesn't bring in all my saved contacts from iCloud. Within the Contacts app, earlier today I had 0 iCloud contacts, yet all of them online at iCloud.com an

  • CRIO FPGA bus traffic rate?

    My question is about bandwidth being used up by FPGA loops that are free running, i.e. they don't have loop timers. A couple of illustrative examples: 1. A simple loopback: A free running loop in the FPGA that connects an input terminal from the cont

  • ITune Purchases did not import over to iTune 7.2

    Just updated to iTune 7.2 and all library items imported OK, however, none of my purchased movies imported, says that I am not authorized to play on my iPod? What gives with this? PLEASE HELP