Help parsing XML message using PeopleCode

Hi all

I'm new to web services and XML, but was able to consume a WSDL and call the web service successfully.

I am now trying to parse the XML message that I receive as an answer and to retrieve values that I need and with the response analysis problems. Here's what I did and the my AE Test code. Basically, I'm trying to navigate to the 'Results' element in the response, and then use GetChildNode to get the child nodes, then use FindNode to find items and their values.

Here's the WSLD I used to create the web service in PS. I only need WSDL operation doSearch_3_15
[https://www.epls.gov/epls/services/EPLSSearchWebService?wsdl]

My PC below calls the web service and passes the family name "ZOD" as a search parameter, and this should return 3 results back.

I'm grabbing the response back and analyse to extract the values I need.

+ & inXMLDoc = CreateXmlDoc(""); +
+ & ret = inXMLDoc.ParseXmlString (& answer. GenXMLString()); +

The question that I have is to be able to get 'inside' the results node (there are 3 of them) and browse the child nodes and get my values.

AE Test code:

Local channel & charge useful, & responseStr, last;
Local Message msg & response;
Local XmlDoc xml & inXMLDoc;
Local of the array of XmlNode GetElements, RecordList, & field1List & aResultsNode;
Local XmlNode RecordNode & ClassificationNode;
Local file & MYFILE;

+ & FilePath = ' / psoft/ultimate.9/fpsdv1/prod/ap/files / '; +
"+ & FileName = uhc_report.xml" +;
+ & MYFILE = GetFile (& FilePath | & FilePath_Absolute of filename, "W", %); +.

+ & payload = "<? XML version = "1.0"? "> < doSearch xmlns ="https://www.epls.gov/epls/services/EPLSSearchWebService">"; +
+ & first = ""; +
+ & last = "ZOD"; +
+ & payload = & load useful | "< query > < first >. and first. "< / first > < last > | & last. "< / last > < / query > < / doSearch > ';" +

+ & xml = CreateXmlDoc (& payload); +
+ & msg = CreateMessage (Operation.DOSEARCH_3_15, IntBroker_Request %) +;
+ & msg. SetXmlDoc(&xml); +

+ & reply = IntBroker.SyncRequest % (& msg); +

If All(&reply) then

If & MYFILE. IsOpen then
+ & MYFILE. WriteString (& response. GenXMLString()); +
On the other
MessageBox (0, "", 0, 0, "cannot Open File.");
End - If;

+ & inXMLDoc = CreateXmlDoc(""); +
+ & ret = inXMLDoc.ParseXmlString (& answer. GenXMLString()); +

If & then ret

+ & field1List = & inXMLDoc.GetElementsByTagName ("results"); +

If & field1List.Len = 0 Then
MessageBox (0, "", 0, 0, "GetElementsByTagName node not found");
Error ("GetElementsByTagName Node not found");
+ / * perform some processing of error * / +.
On the other
J = 1 & at & field1List.Len
If & j > 1 Then
+ MessageBox(0, "", 0, 0, &field1List [&j].) NodeName | " = " | field1List [& j]. NodeValue); +

+ & RecordNode = & inXMLDoc.DocumentElement.GetChildNode (& j); +
If & RecordNode.IsNull then
MessageBox (0, "", 0, 0, "GetChildNode not found");
On the other
+ & ClassificationNode = & RecordNode.FindNode ("classification"); +
If & ClassificationNode.IsNull then
MessageBox (0, "", 0, 0, "FindNode not found");
On the other
+ & SDN_TYPE = Substring (& ClassificationNode.NodeValue, 1, 50); +
MessageBox (0, "", 0, 0, "& SDN_TYPE =" |) (& SDN_TYPE);
End - If;
End - If;

End - If;
-End;
End - If;

MessageBox (0, "", 0, 0, & inXMLDoc.DocumentElement.NodeName);

On the other
+ / * perform some processing of error * / +.
MessageBox (0, "", 0, 0, "error.) ParseXml");
End - If;

On the other
MessageBox (0, "", 0, 0, "error.) No response").
End - If;


See the link below for the web service XML response with a few Notes message. As a link between the response as an XML doc (had to add .txt to xml extension to download).  I appreciate your help and comments.
http://compshack.com/files/XML-message.PNG
http://compshack.com/files/uhc_report.xml_.txt

And here is the result of my AE Test. I'm able to find 3 County results, that I expected because I have 3 files returned from the web service, but fails for some reason, GetChildNode.

results = (0,0)

GetChildNode not found (0.0)

results = (0,0)

GetChildNode not found (0.0)

results = (0,0)

GetChildNode not found (0.0)

Published by: Maher on 12 March 2012 10:21

Published by: Maher on 12 March 2012 10:41

Hello

I made a few adjustments to your code.
First of all you need not create an XMLDOC object on the IB response, since it is already a XML.
Instead use something like this:

/ * Send & receive message * /.
& ResMsg = % IntBroker.SyncRequest (& ReqMsg);
/ * Get XMLDOC of the response message * /.
& xml = ResMsg.GetXmlDoc ();
strxml = & xml. GenFormattedXmlString();
/ * read the reply * /.
& aNodeData = & xml. GetElementsByTagName ("yournodename")

Now your code fixed

&inXMLDoc = CreateXmlDoc("");
&ret = &inXMLDoc.ParseXmlFromURL("c:\temp\test.xml");
If &ret Then
   &field1List = &inXMLDoc.GetElementsByTagName("results");
   If &field1List.Len = 0 Then
      MessageBox(0, "", 0, 0, "GetElementsByTagName Node not found");
      Error ("GetElementsByTagName Node not found");
      /* do error processing */
   Else
      For &j = 1 To &field1List.Len
         If &j > 1 Then
            MessageBox(0, "", 0, 0, &field1List [&j].NodeName | " = " | &field1List [&j].NodeValue);
            &RecordNode = &field1List [&j];

            &RecordChildNode = &RecordNode.GetChildNode(&j);
            If &RecordChildNode.IsNull Then
               MessageBox(0, "", 0, 0, "GetChildNode not found");
            Else
               MessageBox(0, "", 0, 0, "&RecordChildNode name:" | &RecordChildNode.NodeName);

               &ClassificationNode = &RecordNode.FindNode("classification");
               If &ClassificationNode.IsNull Then
                  MessageBox(0, "", 0, 0, "FindNode not found");
               Else
                  &SDN_TYPE = Substring(&ClassificationNode.NodeValue, 1, 50);
                  MessageBox(0, "", 0, 0, "&SDN_TYPE = " | &SDN_TYPE);
               End-If;

            End-If;
         End-If;
      End-For;
   End-If;
   MessageBox(0, "", 0, 0, &inXMLDoc.DocumentElement.NodeName);

Else
   /* do error processing */
   MessageBox(0, "", 0, 0, "Error. ParseXml");
End-If;

Result:
PeopleTools 8.51.12 - Application Engine
Copyright (c) 1988-2012 Oracle and/or its affiliates.
All rights reserved

results = (0,0)
Game number of messages: 0
Number of messages: 0
Reason for the message: results = (0.0) (0.0)

& RecordChildNode name: address (0,0)
Game number of messages: 0
Number of messages: 0
Reason for the message: & RecordChildNode name: address (0.0) (0.0)

& SDN_TYPE =
Individual (0,0)
Game number of messages: 0
Number of messages: 0
Reason for the message: & SDN_TYPE =
Individual (0.0) (0.0)

results = (0,0)
Game number of messages: 0
Number of messages: 0
Reason for the message: results = (0.0) (0.0)

& RecordChildNode name: agencyUID (0,0)
Game number of messages: 0
Number of messages: 0
Reason for the message: & RecordChildNode name: agencyUID (0.0) (0.0)

& SDN_TYPE =
Individual (0,0)
Game number of messages: 0
Number of messages: 0
Reason for the message: & SDN_TYPE =
Individual (0.0) (0.0)

results = (0,0)
Game number of messages: 0
Number of messages: 0
Reason for the message: results = (0.0) (0.0)

& RecordChildNode name: classification (0,0)
Game number of messages: 0
Number of messages: 0
Reason for the message: & RecordChildNode name: classification (0.0) (0.0)

& SDN_TYPE =
Individual (0,0)
Game number of messages: 0
Number of messages: 0
Reason for the message: & SDN_TYPE =
Individual (0.0) (0.0)

soapenv:envelope (0,0)
Game number of messages: 0
Number of messages: 0
Reason for the message: soapenv:Envelope (0.0) (0.0)
Application Engine TEST_AE program ended normally

Find the differences :)

Published by: Hakan Biroglu on March 12, 2012 19:22

Tags: Oracle Applications

Similar Questions

  • Help parsing XML (XMLParseDemo.java)

    Hello world

    I'm trying to parse the XML code in my application. Here's a sample of what I'm trying to analyze:

    
    
      http://api.netflix.com/catalog/titles/autocomplete?{-join|&|term}
      
        
      
      
        
      
      
        
      
      
        
      
    
    

    For the parser, I use the XMLDemoScreen.java that is provided in the JDE samples. What I'm trying to do is to analyze all of theitem. However, when I run the application, my output is as follows:<p class="help"> <pre> autocomplete url_template = <a href="http://api.netflix.com/catalog/titles/autocomplete?{-join" rel="external nofollow noreferrer">http://api.netflix.com/catalog/titles/autocomplete?{-join</a>|&|term}" autocomplete_item title autocomplete_item title autocomplete_item title autocomplete_item title </pre> <p class="help">So, that's the impression not the values of "title". Anyone know why? Is it because the element contains<title short="">?<p class="help"> <p class="help">Thanks for your help. Here is the code that I use (which can be found in the JDE samples):</p> <pre> /* * XMLDemoScreen.java * * Copyright © 1998-2009 Research In Motion Ltd. * * Note: For the sake of simplicity, this sample application may not leverage * resource bundles and resource strings. However, it is STRONGLY recommended * that application developers make use of the localization features available * within the BlackBerry development platform to ensure a seamless application * experience across a variety of languages and geographies. For more information * on localizing your application, please refer to the BlackBerry Java Development * Environment Development Guide associated with this release. */ package com.kflicks.xml; import java.io.InputStream; import net.rim.device.api.ui.component.*; import net.rim.device.api.ui.container.MainScreen; import net.rim.device.api.xml.parsers.*; import org.w3c.dom.*; /** * The main screen for the application. Displays the results of parsing the XML * file. */ /* package */public final class XMLDemoScreen extends MainScreen { // Constants // ----------------------------------------------------------------------------------- private static final int _tab = 4; InputStream input; /** * This constructor parses the XML file into a W3C DOM document, and * displays it on the screen. * * @see Document * @see DocumentBuilder * @see DocumentBuilderFactory */ public XMLDemoScreen(InputStream input) { setTitle(new LabelField("XML Demo")); this.input = input; try { // Build a document based on the XML file. DocumentBuilderFactory factory = DocumentBuilderFactory .newInstance(); DocumentBuilder builder = factory.newDocumentBuilder(); Document document = builder.parse(input); // Normalize the root element of the XML document. This ensures that // all Text // nodes under the root node are put into a "normal" form, which // means that // there are neither adjacent Text nodes nor empty Text nodes in the // document. // See Node.normalize(). Element rootElement = document.getDocumentElement(); rootElement.normalize(); // Display the root node and all its descendant nodes, which covers // the entire // document. displayNode(rootElement, 0); } catch (Exception e) { System.out.println(e.toString()); } } /** * Displays a node at a specified depth, as well as all its descendants. * * @param node * The node to display. * @param depth * The depth of this node in the document tree. */ private void displayNode(Node node, int depth) { // Because we can inspect the XML file, we know that it contains only // XML elements // and text, so this algorithm is written specifically to handle these // cases. // A real-world application will be more robust, and will handle all // node types. // See the entire list in org.w3c.dom.Node. // The XML file is laid out such that each Element node will either have // one Text // node child (e.g. <Element>Text</Element>), or >= 1 children // consisting of at // least one Element node, and possibly some Text nodes. Start by // figuring out // what kind of node we're dealing with. if (node.getNodeType() == Node.ELEMENT_NODE) { StringBuffer buffer = new StringBuffer(); indentStringBuffer(buffer, depth); NodeList childNodes = node.getChildNodes(); int numChildren = childNodes.getLength(); Node firstChild = childNodes.item(0); // If the node has only one child and that child is a Text node, // then it's of // the form <Element>Text</Element>, so print 'Element = "Text"'. if (numChildren == 1 && firstChild.getNodeType() == Node.TEXT_NODE) { buffer.append(node.getNodeName()).append(" = \"").append( firstChild.getNodeValue()).append('"'); add(new RichTextField(buffer.toString())); } else { // The node either has > 1 children, or it has at least one // Element node child. // Either way, its children have to be visited. Print the name // of the element // and recurse. buffer.append(node.getNodeName()); add(new RichTextField(buffer.toString())); // Recursively visit all this node's children. for (int i = 0; i < numChildren; ++i) { displayNode(childNodes.item(i), depth + 1); } } } else { // Node is not an Element node, so we know it is a Text node. Make // sure it is // not an "empty" Text node (normalize() doesn't consider a Text // node consisting // of only newlines and spaces to be "empty"). If it is not empty, // print it. String nodeValue = node.getNodeValue(); if (nodeValue.trim().length() != 0) { StringBuffer buffer = new StringBuffer(); indentStringBuffer(buffer, depth); buffer.append('"').append(nodeValue).append('"'); add(new RichTextField(buffer.toString())); } } } /** * Adds leading spaces to the provided string buffer according to the depth * of the node it represents. * * @param buffer * The string buffer to add leading spaces to. * @param depth * The depth of the node the string buffer represents. */ private static void indentStringBuffer(StringBuffer buffer, int depth) { int indent = depth * _tab; for (int i = 0; i < indent; ++i) { buffer.append(' '); } } } </pre> <p class="help">Thank you!</p> <p class="reply">You should get properly "title" attributes of node via</p> <p class="reply">NamedNodeMap attributes = node.getAttributes ();</p> <p class="reply">iterate through the mapping of attributes to retrieve the values you want.</p>

  • Answer need help parsing XML

    Hi, I am new to JAVA and don't work with her each time than in quite awhile.

    I have a question that is probably very simple for someone with experience in JAVA.

    I have a piece of writing JAVA code that will have to apply for a credit card transaction to a gateway, gateways response come in the form of XML.

    Here's the response XML file in its entirety.
    <?xml version="1.0" encoding="utf-8"?>
    <string xmlns="https://www.domain.com/ws/">1,0,Transaction accepted,0</string>
    I worked with other XML responses and was able to get what I need. However, this XML response is a little different, and I can't understand how to correctly analyze the text string I need at the end which is:
    1,0,Transaction accepted,0
    Any help would be appreciated.

    Thank you!

    jl1997 wrote:
    I used the following to try to get the information I need

    new PrintStream(ftemp).println("Root element :" + doc.getDocumentElement().getNodeName());
    new PrintStream(ftemp).println("Root value :" + doc.getDocumentElement().getAttribute("string"));
    

    Output of the above code is:

    Root element :string
    Root value :
    

    So I can identify the name of the node, which is 'chain', I just was not able to read the content of the node.

    Published by: jl1997 on April 9, 2013 08:05

    The element has no attribute named 'string. ' There only the content that you get using getTextContent() or the equivalent of what you use.

  • Help parsing XML with multiple namespaces

    I have a function that returns the following XML:
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
       <soap:Body>
          <fetchReportDataResponse xmlns="http://RptArchive/">
             <fetchReportDataResult>
                <feed xmlns="urn:WA.Ecy.ADS.RptAuditImage.Services">
                   <Table xmlns="">
                      <Report>Person Item</Report>
                      <Program>WQ</Program>
                      <Application>PARIS</Application>
                   </Table>
                   <Table xmlns="">
                      <Report>Select DB by Fragment</Report>
                      <Program>WQ</Program>
                      <Application>PARIS</Application>
                   </Table>
                   <Table xmlns="">
                      <Report>EmployeeDetailReport</Report>
                      <Program>ADS</Program>
                      <Application>Son1</Application>
                   </Table>
                   <Table xmlns="">
                      <Report>DeliveryTestReport</Report>
                      <Program>ADS</Program>
                      <Application>Test</Application>
                   </Table>
                   <Table xmlns="">
                      <Report>Report_NoDMRs_ProcessByDeliveryMethod</Report>
                      <Program>WQ</Program>
                      <Application>PARIS</Application>
                   </Table>
                </feed>
             </fetchReportDataResult>
          </fetchReportDataResponse>
       </soap:Body>
    </soap:Envelope>
    I wrote to try to get the data of the following SQL statement:
    select application,program_name,report
    from 
    (select extract(enforce_pkg.get_ads_report_data,'/soap:Envelope/soap:Body/fetchReportDataResponse/fetchReportDataResult/child::node()',
    'xmlns="http://RptArchive/" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/') xml
    from dual )t,
    xmltable('/feed/Table'
    passing t.xml
    columns
    report varchar2(100) path 'Report',
    program_name varchar2(100) path 'Program',
    application varchar2(100) path 'Application');
    {code}
    This returns zero records.  If I break this up, I see that my extract statement is working:
    
    {code}
    select extract(enforce_pkg.get_ads_report_data,'/soap:Envelope/soap:Body/fetchReportDataResponse/fetchReportDataResult/child::node()',
    'xmlns="http://RptArchive/" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/') xml
    from dual ;
    Returns
    <feed xmlns="urn:WA.Ecy.ADS.RptAuditImage.Services">
    <Table xmlns="">
    <Report>Person Item</Report>
    <Program>WQ</Program>
    <Application>PARIS</Application>
    </Table>
    <Table xmlns="">
    <Report>Select DB by Fragment</Report>
    <Program>WQ</Program>
    <Application>PARIS</Application>
    </Table>
    <Table xmlns="">
    <Report>EmployeeDetailReport</Report>
    <Program>ADS</Program>
    <Application>Son1</Application>
    </Table>
    <Table xmlns="">
    <Report>DeliveryTestReport</Report>
    <Program>ADS</Program>
    <Application>Test</Application>
    </Table>
    <Table xmlns="">
    <Report>Report_NoDMRs_ProcessByDeliveryMethod</Report>
    <Program>WQ</Program>
    <Application>PARIS</Application>
    </Table>
    </feed>
    So I guess that there is something wrong with my implementation of the function xmltable - perhaps because there are two namespaces involved,
    one of them is null (I know that it is bad form--I am a consumer here and do not have control of the source).

    Any help would be appreciated.

    Best regards, Tony

    You can use xmltable with a simple xpath as follows:

    create or replace type ty_Rep  as object (rep_name varchar2(40), prg_name varchar2(40),app_name varchar2(40));
    /
    create or replace type tb_Rep as table of ty_Rep;
    /
    
    set serveroutput on
    declare
      l_xml xmltype := xmltype('
                                 
                                   
                                       
                                          
                                             Person ItemWQPARIS
    Select DB by FragmentWQPARIS
    EmployeeDetailReportADSSon1
    DeliveryTestReportADSTest
    Report_NoDMRs_ProcessByDeliveryMethodWQPARIS
    '); l_Rep tb_Rep := tb_Rep(); begin select ty_Rep(x.Report, x.Program, x.Application) bulk collect into l_Rep from (select l_XML as m from dual) d ,xmltable ('//Table' passing d.m columns Report varchar2(40) path 'Report' ,Program varchar2(40) path 'Program' ,Application varchar2(40) path 'Application') as x; dbms_output.put_line(l_Rep.count); for r in 1..l_Rep.count loop dbms_output.put_line('Report: ' || l_Rep(r).rep_name ); dbms_output.put_line('Program: ' || l_Rep(r).prg_name ); dbms_output.put_line('Application: ' || l_Rep(r).app_name ); end loop; end; / 5 Report: Person Item Program: WQ Application: PARIS Report: Select DB by Fragment Program: WQ Application: PARIS Report: EmployeeDetailReport Program: ADS Application: Son1 Report: DeliveryTestReport Program: ADS Application: Test Report: Report_NoDMRs_ProcessByDeliveryMethod Program: WQ Application: PARIS PL/SQL procedure successfully completed.
  • I get this message: DNS server is not responding. Cannot view XML input using XSL style sheet.

    My problem was caused by using McAfee. The only way I can connect to the internet is if I start my computer in "safe mode". I've since removed McAfee from my computer, but I can't always connect to internet in normal startup mode. When I run a diagnosis, I get the message: "DNS server is not responding" & "cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button. »

    On the recommendation of MS tech support, I already tried

    1. perform a clean boot

    2. reset internet Explorer

    3 typeing these orders in the dark of the screen then restart the computer after you perform these steps

    b. Netsh int tcp reset

    c. Netsh int ipv4 reset

    zero i. (XP) netsh int ip reset

    d. Netsh winsock reset

    e. Netsh winhttp reset proxy

    f. Netsh advfirewall reset

    g. Ipconfig/flushdns

    h. Ipconfig/Release

    i. Ipconfig / renew

    j. Ipconfig/registerdns

    None of these recommendations solved my problem. I don't know if it is an IE or issue windows. Any other suggestions?

    Hello

    Please 1 create a restore point and run the mcafee Development tool. This will of cleaning after uninstalling the software. McAfee is known for questions after the uninstalled. For new AV you can try

    Microsoft Security Essentials http://windows.microsoft.com/en-us/windows/security-essentials-download. (Win08 already has Microsoft Security Essentials in the operating system)

    Tool Development

    http://service.McAfee.com/FAQDocument.aspx?ID=TS101331

    Thank you

    Thomas

  • Best way to Parse XML using Dreamweaver CC 2015.3

    I was on a wild goose chase - trying to figure out how to parse XML using DW CC

    every article I read, says something about XML & XSLT, but it is no longer available in the new CC - I read about using jQuery or php, but have not yet find a resource to learn specifically "using DW CC.

    I'm willing to learn how to parse XML with DW CC but I would get a definitive direction to go before I'm trying to learn something that adobe will put in 'end of life '.

    advice or links to resources that can parse XML DW CC 2015 would be LARGELY APPRECIATED, thank you

    x 126 has written:

    What I'm asking is...

    1. What is the best procedure to insert XML into a page using DW CC 2015 as my editor?
    a. what happened to spry? b. what happened to XSLT?

    As Nancy explained, Spry has been abandoned by Adobe, a few years ago.

    XSLT server behavior has been removed at the same time as other server behaviors Dreamweaver CC. The problem with most of the PHP server behaviors was that they were based on code that has been removed from PHP 7. The XSLT server behavior didn't rely on these features, but it was not the most friendly of server behaviors. XSLT is a complex language that is to be avoided when parsing XML unless you really know what you're doing.

    The easiest way to manipulate XML in Dreamweaver should use PHP SimpleXML. I've linked to the samples page in the PHP online documentation. Believe me, it's much easier than trying to do battle with XSLT. If you have a subscription to lynda.com, you can learn more about SimpleXML to my operational with SimpleXMLclass.

  • I get the following message appears when you try to open Photoshop... "Could not initialize Photoshop because an of.file - unexpected end has been detected. Help! You can use my Photoshop!

    I get the following message appears when you try to open Photoshop... "Could not initialize Photoshop because an of.file - unexpected end has been detected. Help! You can use my Photoshop!

    Hi romyb,

    End of file unexpected refer and let us know if this helps.

    Kind regards

    Assani

  • How to parse RSS feeds using QML (waterfalls)?

    Hallo native devs! I am a beginner in native development and I want to know how to parse RSS feeds using QML cascading?

    I see the example like this:

    Page {
        content: Container {
            background: Color.White
            ListView {
                rootIndexpath: [1]
                dataModel: XmlDataModel { source: "model.xml" }
            }
        }
    }
    

    but, can I to ' source: ' use 'http://example.com/rss.xml'?

    If Yes, how can I analyze?

    Thanks for the help!

    The QML in your message assumes that the XML file is local, if you use a remote XML file then you will need to firstly using a few backend Qt C++ network code, download, then you can use QML.

    I would recommend from the Cascades sample quotes to get an idea of how XmlDataModel analysis work can start to look into the network access code and the file.

  • Err: ORA-31011: failed to parse XML

    Hello

    While inserting the XML code in the table, I faced slot problem, Pls suggest a way out of the code.
    Your help is appreciate.
    I'm using the version of Oracle - 10.2.0.2.0

    Err: ORA-31011: failed to parse XML
    ORA-19202: an error has occurred in the processing of XML
    LPX-00234: the 'xsi' namespace prefix is not declared
    Error on line 1
    ORA-06512: at "SYS." XMLTYPE", line 254
    ORA-06512: at line 1

    -Step 1
    CREATE TABLE EMP (EMPCODE NUMBER (8), EMPNAME VARCHAR2 (100), THE NUMBER OF EMPDEPTNO (8), NUMBER EMPSAL (34.2));
    /
    -Step 2
    BEGIN
    FOR X IN (SELECT * FROM USER_OBJECTS S WHERE ROWNUM < = 50)
    LOOP
    INSERT INTO VALUES EMP (X.OBJECT_ID, X.OBJECT_NAME, 20, X.OBJECT_ID + 10);
    END LOOP;
    COMMIT;
    END;
    /
    -Step 3
    create the table EMPXML (XMLCLOB XMLTYPE);
    /
    -Step 4
    DECLARE
    v_xmldata CLOB.
    v_tmpdata CLOB.
    v_xmltype XMLTYPE.
    BEGIN
    DBMS_LOB.CREATETEMPORARY (v_tmpdata, false);
    v_xmldata: = ' <? XML version = "1.0" encoding = "UTF-8"? > ';

    SELECT Xmlelement ("employee",

    XmlAttributes ("http://ns.oracle.com.tw/XSD/ORACLE/ESB/Message/EMF/ServiceEnvelope" xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" AS ")
    "xmlns:ns0,"
    ' http://ns.oracle.com.tw/XSD/ORACLE/ESB/Message/EMF/ServiceEnvelope ServiceEnvelope.xsd > ' AS
    ("xsi: schemaLocation").
    XMLAGG (Xmlforest (AS Empcode "EmpID",
    EmpName AS "EmpName",.
    Empsal AS 'EmpSal'))) BY v_xmltype
    FROM Emp
    WHERE Empdeptno = 20;

    SELECT v_xmltype.getCLOBVal () IN the v_tmpdata FROM dual;

    DBMS_LOB. Append (v_xmldata, v_tmpdata);

    BEGIN
    INSERT IN EMPXML VALUES (xmltype (v_xmldata));
    EXCEPTION WHEN OTHERS THEN
    dbms_output.put_line ('Err: ' |) SQLERRM);
    END;
    END;
    /
    -Step 5
    SELECT * from empxml;
    /
    -Step 6
    DROP TABLE EMP PURGE;
    /
    -Step 7
    DROP TABLE EMPXML PURGE;
    /
    Thank you and best regards,
    Yogesh Nagle
    India

    What? Pepijn you provided the correct use of Xmlattributes and showed that your script would go without errors. What is the problem with his answer or it does not that you need it?

  • Parsing XML and get the attributes of a tag

    Hello

    When parsing XML for application of Cascades in C++, I am able to get the value of a tag as follows:

    00000

    But I also want to get the attributes of a tag:

    But I don't know how to get the 'CA' and 'California' attributes with my current code.  Can anyone help?  Here is the code I use to parse the XML code:

    void CMController::requestFinished(QNetworkReply* reply) {
    
        if (reply->error() == QNetworkReply::NoError) {
    
            QXmlStreamReader xml;
    
            QByteArray data = reply->readAll();
            xml.addData(data);
    
            QString zip;
            QString id;
            QString location;
    
            while (!xml.atEnd() && !xml.hasError()) {
    
                /* Read next element.*/
                QXmlStreamReader::TokenType token = xml.readNext();
    
                /* If token is just StartDocument, we'll go to next.*/
                if (token == QXmlStreamReader::StartDocument) {
                    continue;
                }
    
                /* If token is StartElement, we'll see if we can read it.*/
                if (token == QXmlStreamReader::StartElement) {
    
                    if (xml.name() == "zip") {
                        zip = xml.readElementText();
                    }
    
                    if (xml.name() == "id") {
                        ???
                    }
    
                    if (xml.name() == "location") {
                        ???
                    }
    
                }
    
            }
    
            emit succeeded(result);
    
        } else {
            emit failed();
        }
    
        reply->deleteLater();
    
    }
    

    Thank you!

    I found a working example:

    if(xml.name() == "state"){
        QXmlStreamAttributes attrib = xml.attributes();
        QStringRef ref = attrib.value("location");
        qDebug() << "location: " << ref;
    }
    
  • I get an error, "cannot view XML input using XSL sheet" when I try to install a mass storage driver.

    Original title: cannot view XML input using XSL sheet

    I can't install a mass storage driver. Message "Cannot view XML input using XSL sheet".
    Unspecified error.

    Hello

    I would have you post your query in the MSDN Forums, because it is addressed to an audience of it professionals.

    Your question would be more out there.

    Check out the link-

    http://social.msdn.Microsoft.com/forums/en-us/categories/

    Back to us for any issues related to Windows in the future. We will be happy to help you.

    Thank you.

  • Cannot display the page XML cannot display the XML input using the XSL stylesheet

    Hi gurus of the Oracle,.

    I got this error... .once I submitted the demand shows warning... I opened exit it shows error below... I do not understand how to fix this error... Please help me... This is the CODE of PROCEDURE STORED PL/SQ L...

    The XML page cannot be displayed
    Cannot view XML input using XSL style sheet. Fix the error and then click the Refresh button, or try again later.


    --------------------------------------------------------------------------------

    A semi colon was expected. Error during processing of the resources ' http://orappsus64.tsindia.in:8009/OA_CGI/FNDWRR.exe?temp_id...

    COGNOS Quintiles/IT/J & J < CP_PROJECT > < / CP_PROJECT >
    ----------------------------^
    n-left: 1em; "text-indent:-2em" > < GL_MAIN_PERIOD > Jun-12 < / GL_MAIN_PERIOD >
    < TOTAL_REVENUE > 4026.14 < / TOTAL_REVENUE >
    < GL_PERIOD > Jun-12 < / GL_PERIOD >
    < / G_TOTAL_REVENUE_CAT >

    -------------------------------------------------------

    THIS IS MY LOG FILE
    ----------------------------------------------------------
    [01/10/12 10:44:26] [main] From service GSF with simultaneous process id is 157635.
    [01/10/12 10:44:26] [main] Initialization parameters: oracle.apps.fnd.cp.opp.OPPServiceThread:2:0:max_threads = 5
    [01/10/12 10:44:26] [Thread-22] Wire service commissioning.
    [01/10/12 10:44:26] [Thread 23] Wire service commissioning.
    [01/10/12 10:52:33] [OPPServiceThread1] Post-processing application 1296337.
    [01/10/12 10:52:33] [157635:RT1296337] The execution of the actions of post-processing for request 1296337.
    [01/10/12 10:52:34] [157635:RT1296337] From XML Publisher postprocessing action.
    [01/10/12 10:52:34] [157635:RT1296337]
    Model code: XXTGSCPR004
    Model app: PA
    Language: en
    Territory: U.S.
    Output type: EXCEL
    [100112_105234216] [] [EXCEPTION] [DEBUG] - set preferences PreferenceStore-
    [100112_105234216] [] [EXCEPTION] [DEBUG] - environment variables stored in EnvironmentStore-
    [100112_105234216] [[EXCEPTION] [DEBUG] [FND_JDBC_IDLE_THRESHOLD.] LOW]:-[1]
    [100112_105234216] [] [EXCEPTION] [DEBUG] [SECURITY_GROUP_ID]: [0]
    [100112_105234216] [] [EXCEPTION] [DEBUG] [FND_JDBC_BUFFER_DECAY_INTERVAL]: [300]
    [100112_105234217] [] [EXCEPTION] [DEBUG] [NLS_CHARACTERSET]: [US7ASCII]
    [100112_105234217] [] [EXCEPTION] [DEBUG] [RESP_APPL_ID]:-[1]
    [100112_105234217] [] [EXCEPTION] [DEBUG] [NLS_LANGUAGE]: [AMERICAN]
    [100112_105234217] [] [EXCEPTION] [DEBUG] [FND_JDBC_BUFFER_MIN]: [1]
    [100112_105234217] [] [EXCEPTION] [DEBUG] [FND_JDBC_BUFFER_MAX]: [2]
    [100112_105234217] [] [EXCEPTION] [DEBUG] [NLS_NUMERIC_CHARACTERS]: [.,]
    [100112_105234217] [] [EXCEPTION] [DEBUG] [APPS_JDBC_URL]: [jdbc:oracle:thin: @(DESCRIPTION = (ADDRESS_LIST = (LOAD_BALANCE = YES) (FAILOVER = YES) (ADDRESS = (PROTOCOL = tcp)(HOST=orappsus64.tsindia.in) (PORT = 1530))) (CONNECT_DATA = (SID = clone)))]
    [100112_105234217] [] [EXCEPTION] [DEBUG] [RESP_ID]:-[1]
    [100112_105234217] [] [EXCEPTION] [DEBUG] [FND_MAX_JDBC_CONNECTIONS]: [500]
    [100112_105234217] [] [EXCEPTION] [DEBUG] [FND_JDBC_USABLE_CHECK]: [false]
    [100112_105234218] [] [EXCEPTION] [DEBUG] [USER_ID]:-[1]
    [100112_105234218] [] [EXCEPTION] [DEBUG] [NLS_TERRITORY]: [AMERICA]
    [100112_105234218] [] [EXCEPTION] [DEBUG] [FND_JDBC_PLSQL_RESET]: [false]
    [100112_105234218] [] [EXCEPTION] [DEBUG] [FND_JDBC_CONTEXT_CHECK]: [true]
    [100112_105234218] [] [EXCEPTION] [DEBUG] [NLS_DATE_FORMAT]: [DD-MON-RR]
    [100112_105234218] [] [EXCEPTION] [DEBUG] [FND_JDBC_BUFFER_DECAY_SIZE]: [5]
    [100112_105234218] [[EXCEPTION] [DEBUG] [FND_JDBC_IDLE_THRESHOLD.] HIGH]:-[1]
    [100112_105234218] [] [EXCEPTION] [DEBUG] [NLS_SORT]: [BINARY]
    [100112_105234218] [] [EXCEPTION] [DEBUG] [NLS_DATE_LANGUAGE]: [AMERICAN]
    [100112_105234218] [] [EXCEPTION] [DEBUG] [LOGIN_ID]:-[1]
    [100112_105234218] [] [EXCEPTION] [DEBUG] - properties stored in the Java System Properties-
    [100112_105234219] [] [EXCEPTION] [DEBUG] [APPLTMP]: [AP1/oracle/PROD01/inst/apps/clone_orappsus64/appltmp]
    [100112_105234219] [] [EXCEPTION] [DEBUG] [java.runtime.name]: [Java (TM) SE Runtime Environment]
    [100112_105234219] [EXCEPTION] [DEBUG] [sun.boot.library.path]:[AP1/oracle/PROD01/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/i386]]
    [100112_105234219] [] [EXCEPTION] [DEBUG] [java.vm.version]: [11: 0 - b15]
    [100112_105234219] [] [EXCEPTION] [DEBUG] [OVERRIDE_DBC]: [true]
    [100112_105234219] [EXCEPTION] [DEBUG] [dbcfile]:[AP1/oracle/PROD01/inst/apps/clone_orappsus64/appl/fnd/12.0.0/secure/clone.dbc]]
    [100112_105234219] [] [EXCEPTION] [DEBUG] [java.vm.vendor]: [Sun Microsystems Inc..]
    [100112_105234219] [] [EXCEPTION] [DEBUG] [java.vendor.url]: [http://java.sun.com/]
    [100112_105234219] [[EXCEPTION] [DEBUG] [path.separator]]: [[:]
    [100112_105234219] [] [EXCEPTION] [DEBUG] [APPLCSF]: [AP1/oracle/PROD01/inst/apps/clone_orappsus64/papers/appl/conc]
    [100112_105234220] [] [EXCEPTION] [DEBUG] [java.vm.name]: [the server VM Java]
    [100112_105234220] [] [EXCEPTION] [DEBUG] [file.encoding.pkg]: [sun.io]
    [100112_105234220] [] [EXCEPTION] [DEBUG] [sun.java.launcher]: [SUN_STANDARD]
    [100112_105234220] [] [EXCEPTION] [DEBUG] [user.country]: [US]
    [100112_105234220] [] [EXCEPTION] [DEBUG] [sun.os.patch.level]: [unknown]
    [100112_105234220] [] [EXCEPTION] [DEBUG] [java.vm.specification.name]: [Java Virtual Machine specifications]
    [100112_105234220] [EXCEPTION] [DEBUG] [user.dir]:[AP1/oracle/PROD01/inst/apps/clone_orappsus64/logs/appl/conc/log]]
    [100112_105234220] [] [EXCEPTION] [DEBUG] [java.runtime.version]: [1.6.0_10 - b33]
    [100112_105234220] [] [EXCEPTION] [DEBUG] [CLIENT_PROCESSID]: [25943]
    [100112_105234220] [] [EXCEPTION] [DEBUG] [java.awt.graphicsenv]: [sun.awt.X11GraphicsEnvironment]
    [100112_105234220] [EXCEPTION] [DEBUG] [java.endorsed.dirs]:[AP1/oracle/PROD01/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/endorsed]]
    [100112_105234221] [] [EXCEPTION] [DEBUG] [os.arch]: [i386]
    [100112_105234221] [EXCEPTION] [DEBUG] [JTFDBCFILE]:[AP1/oracle/PROD01/inst/apps/clone_orappsus64/appl/fnd/12.0.0/secure/clone.dbc]]
    [100112_105234221] [] [EXCEPTION] [DEBUG] [java.io.tmpdir]: [tmp]
    [100112_105234221] [] [EXCEPTION] [DEBUG] [line.separator]:]
    ]
    [100112_105234221] [] [EXCEPTION] [DEBUG] [java.vm.specification.vendor]: [Sun Microsystems Inc..]
    [100112_105234221] [] [EXCEPTION] [DEBUG] [os.name]: [Linux]
    [100112_105234221] [] [EXCEPTION] [DEBUG] [FND_JDBC_BUFFER_MIN]: [1]
    [100112_105234221] [] [EXCEPTION] [DEBUG] [CPID]: [157635]
    [100112_105234221] [] [EXCEPTION] [DEBUG] [sun.jnu.encoding]: [UTF-8]
    [100112_105234221] [] [EXCEPTION] [DEBUG] [oracle.apps.fnd.common.Pool.leak.mode]: [stderr: off]
    [100112_105234221] [][EXCEPTION] [DEBUG] [java.library.path]:[AP1/oracle/PROD01/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/i386/server:/AP1/oracle/PROD01/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/i386:/AP1/oracle/PROD01/apps/tech_st/10.1.3/appsutil/jdk/jre/.. /lib/i386:/AP1/oracle/PROD01/apps/tech_st/10.1.3/lib32:/AP1/oracle/PROD01/apps/tech_st/10.1.3/lib:/AP1/oracle/PROD01/apps/apps_st/appl/cz/12.0.0/bin:/AP1/oracle/PROD01/apps/apps_st/appl/iby/12.0.0/bin:/AP1/oracle/PROD01/apps/ apps_st/appl/PON/12.0.0/bin:/ap1/Oracle/PROD01/apps/apps_st/appl/SHT/12.0.0/lib:/usr/java/packages/lib/i386:/lib:/usr/lib]
    [100112_105234222] [] [EXCEPTION] [DEBUG] [java.specification.name]: [Java platform API specification]
    [100112_105234222] [] [EXCEPTION] [DEBUG] [java.class.version]: [50.0]
    [100112_105234222] [] [EXCEPTION] [DEBUG] [sun.management.compiler]: [HotSpot Tiered compilers]
    [100112_105234222] [] [EXCEPTION] [DEBUG] [queue_appl_id]: [0]
    [100112_105234222] [] [EXCEPTION] [DEBUG] [os.version]: [2.6.18 - 128.el5]
    [100112_105234222] [] [EXCEPTION] [DEBUG] [LONG_RUNNING_JVM]: [true]
    [100112_105234222] [] [EXCEPTION] [DEBUG] [user.home]: [home/applmgr01]
    [100112_105234222] [] [EXCEPTION] [DEBUG] [user.timezone]: [Asia/Kolkata]
    [100112_105234222] [] [EXCEPTION] [DEBUG] [java.awt.printerjob]: [sun.print.PSPrinterJob]
    [100112_105234222] [] [EXCEPTION] [DEBUG] [file.encoding]: [UTF-8]
    [100112_105234222] [] [EXCEPTION] [DEBUG] [java.specification.version]: [1.6]
    [100112_105234222] [] [EXCEPTION] [DEBUG] [CACHEMODE]: [PUBLISHED]
    [100112_105234222] [] [EXCEPTION] [DEBUG] [conc_queue_id]: [6269]
    [100112_105234222] [][EXCEPTION] [DEBUG] [java.class.path]:[AP1/oracle/PROD01/apps/tech_st/10.1.3/appsutil/jdk/lib/dt.jar:/AP1/oracle/PROD01/apps/tech_st/10.1.3/appsutil/jdk/lib/tools.jar:/AP1/oracle/PROD01/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/rt.jar:/AP1/oracle/PROD01/apps/apps_st/comn/java/lib/appsborg2.zip:/AP1/oracle/PROD01/apps/apps_st/comn/java/classes]
    [100112_105234222] [] [EXCEPTION] [DEBUG] [user.name]: [applmgr01]
    [100112_105234222] [EXCEPTION] [DEBUG] [DBCFILE]:[AP1/oracle/PROD01/inst/apps/clone_orappsus64/appl/fnd/12.0.0/secure/clone.dbc]]
    [100112_105234222] [] [EXCEPTION] [DEBUG] [java.vm.specification.version]: [1.0]
    [100112_105234222] [EXCEPTION] [DEBUG] [java.home]:[AP1/oracle/PROD01/apps/tech_st/10.1.3/appsutil/jdk/jre]]
    [100112_105234222] [] [EXCEPTION] [DEBUG] [sun.arch.data.model]: [32]
    [100112_105234223] [] [EXCEPTION] [DEBUG] [user.language]: [in]
    [100112_105234223] [] [EXCEPTION] [DEBUG] [java.specification.vendor]: [Sun Microsystems Inc..]
    [100112_105234223] [] [EXCEPTION] [DEBUG] [mode java.vm.info]: [mixed]
    [100112_105234223] [EXCEPTION] [DEBUG] [logfile]:[AP1/oracle/PROD01/inst/apps/clone_orappsus64/logs/appl/conc/log/FNDOPP157635.txt]]
    [100112_105234223] [] [EXCEPTION] [DEBUG] [java.version]: [1.6.0_10]
    [100112_105234223] [] [EXCEPTION] [DEBUG] [JAVA. EXT. DIRS]:[AP1/ORACLE/PROD01/APPS/TECH_ST/10.1.3/APPSUTIL/JDK/JRE/LIB/EXT:/USR/JAVA/PACKAGES/LIB/EXT]
    [100112_105234223] [][EXCEPTION] [DEBUG] [sun.boot.class.path]:[AP1/oracle/PROD01/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/resources.jar:/AP1/oracle/PROD01/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/rt.jar:/AP1/oracle/PROD01/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/sunrsasign.jar:/AP1/oracle/PROD01/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/jsse.jar:/AP1/oracle/PROD01/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/jce.jar:/AP1/oracle/PROD01/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/charsets.jar:/AP1/oracle/PROD01/apps/tech_ St/10.1.3/appsutil/JDK/JRE/classes]
    [100112_105234223] [] [EXCEPTION] [DEBUG] [java.vendor]: [Sun Microsystems Inc..]
    [100112_105234223] [] [EXCEPTION] [DEBUG] [FND_JDBC_BUFFER_MAX]: [2]
    [100112_105234223] [] [EXCEPTION] [DEBUG] [file.separator]:]
    [100112_105234223] [] [EXCEPTION] [DEBUG] [java.vendor.url.bug]: [http://java.sun.com/cgi-bin/bugreport.cgi]
    [100112_105234223] [] [EXCEPTION] [DEBUG] [sun.io.unicode.encoding]: [UnicodeLittle]
    [100112_105234223] [] [EXCEPTION] [DEBUG] [sun.cpu.endian]: [little]
    [100112_105234223] [] [EXCEPTION] [DEBUG] [APPLOUT]: [out]
    [100112_105234223] [] [EXCEPTION] [DEBUG] [sun.cpu.isalist]:]
    [01/10/12 10:52:35] [UNEXPECTED] [157635:RT1296337] java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at oracle.apps.xdo.common.xml.XSLT10gR1.invokeParse(XSLT10gR1.java:517)
    at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:224)
    at oracle.apps.xdo.common.xml.XSLTWrapper.transform(XSLTWrapper.java:177)
    at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:1044)
    at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:997)
    at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:212)
    at oracle.apps.xdo.template.FOProcessor.createFO(FOProcessor.java:1665)
    at oracle.apps.xdo.template.FOProcessor.generate(FOProcessor.java:975)
    at oracle.apps.xdo.oa.schema.server.TemplateHelper.runProcessTemplate(TemplateHelper.java:5936)
    at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3459)
    at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3548)
    at oracle.apps.fnd.cp.opp.XMLPublisherProcessor.process(XMLPublisherProcessor.java:285)
    at oracle.apps.fnd.cp.opp.OPPRequestThread.run(OPPRequestThread.java:173)
    Caused by: oracle.xdo.parser.v2.XMLParseException: expected '; '.
    at oracle.xdo.parser.v2.XMLError.flushErrors1(XMLError.java:337)
    at oracle.xdo.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:305)
    at oracle.xdo.parser.v2.XMLParser.parse(XMLParser.java:289)
    ... more than 17

    [01/10/12 10:52:35] [157635:RT1296337] Over the actions of post-processing to request 1296337.
    [GC 8059K - > 6286K (8692K), dry 0,0076290]
    [Full GC [unloading class sun.reflect.GeneratedSerializationConstructorAccessor17]]
    [Unloading class sun.reflect.GeneratedSerializationConstructorAccessor19]
    [Unloading class sun.reflect.GeneratedSerializationConstructorAccessor18]
    [Unloading class sun.reflect.GeneratedSerializationConstructorAccessor13]
    6286 K - > 3865 K (8692 K), dry 0,0446370]

    Please help big appriciation.

    Thank you

    Siddarth.

    OK, the solution is quite "simple" then.
    Each string that can contain XML reserved characters must be escaped before concatenating XML tags.

    I see that the code has already some replace(column_name, '&', ''), perhaps that was added in the same goal, but a bad solution.

    A better solution would be to use the SQL/XML functions, but it would mean that the refactoring cursors.
    Therefore, an intermediate solution (if you want to keep '&' characters in the output) is to escape the chain properly.

    For example, in the GET_PROJECTS cursor:

    CURSOR get_projects ( p_customer_id            IN    NUMBER
                        , p_bu_vertical            IN    VARCHAR2
                        , p_line_of_business    IN    VARCHAR2
                       -- , p_period_set_name        IN    VARCHAR2
                        , p_gl_period_from        IN    VARCHAR2
                        , p_gl_period_to        IN    VARCHAR2
                        , p_project_id_FROM        IN    NUMBER
                        , p_project_id_to        IN    NUMBER
                        , p_organization_name  IN    VARCHAR2
                        ) IS
    SELECT DISTINCT   replace(pa.name, '&','') project_name
         ,pa.project_id
         , utl_i18n.escape_reference(pa.segment1) as project_number   --< Here
         , pa.project_currency_code
         , hp.party_id
    ...
    

    This should solve the problem with the CP_PROJECT tag.
    Repeat on the other columns if necessary.

  • Message using XSLT transformation

    Hi gurus of the OSB.
    We strive to implement following features using OSB.

    1. we have XML messages in a folder.
    2. the need to create a proxy service to take these messages and apply transformations using XSLT.
    3. after processing, put messages in a different folder which will be picked up by another agent of messages.

    Please give me some advice on how I can design it. Also, I would like to share my findings about step 2, but with problems to define the payload of entry, which must be defined in step 1 above. I followed the document http://blog.jayway.com/2010/05/07/xslt-transformations-in-oracle-service-bus/ for the registration of the XSLT, but couldnot make it work as I'm not sure how I can incorporate step 1 to step 2.

    Thank you very much in advance.

    Hello

    I took the XSLT you sent everywhere and the XML for this thread, and using a XSLT Tester, I got the answer with all the perfectly good values.
    Maybe you do something wrong within the OSB.

    Here are my steps:

    1. create the XSL (the one you sent by e-mail)
    2 create just a proxy service dummy where I can use my replace action (trying to reproduce your design)
    3. Add a spare action.
    4. There is my setup in my Action to replace - XPath-. (dot), variable - body Expression - selected the XSLT and as a past - entry Document $body / *: ODS, replace content of the node

    That's all.

    In my opinion, you are probably a small mistake thinking the request sent and therefore the variable "Input Document" in step 4 above.
    For example, my request was an element of SOAP body because of which I did - $body / *: ODS in step 4, because the parent element was ODS inside the element root, which is the body.

    I hope this helps.

    -Alexia

  • Parsing XML in ColdFusion 5

    Hello there,

    It's not like there is a native way to parse XML in ColdFusion version 5.0. ColdFusion MX makes it easier to work with XML, but unfortunately I am working under Windows with a CF5 server.

    I've gotten to the point of use CFHTTP to retrieve XML content in a variable, but I don't know the best way to decompress the data in a query, or another structure that I can use to feed the rest of the model. I thought to save the content of a file and then a loop top, but something tells me that it is an inefficient way to do the job.

    I would like to avoid having to install any additional software, but if it's the only way to process XML in CF5, then I would be grateful for any recommendations on the best tools to evaluate or buy. Or if there is a way to do it in JavaScript, it would be great, too.

    Thanks for any help!

    try to use SoXML, it is a custom tag, is free and can be downloaded from the Adobe Exchange website

    --> Adobe Exchange link

    M

  • Cannot receive or send messages using Android.

    I own a laptop and an Android, with Skype, the laptop works Skype perfectly without any problems so far, but the messaging feature in the Skype app on my phone seems to have stopped working together, as when I send a message using my phone, it appears on the screen of receptors, but not mine. Also, if someone sends a message to me using Skype, I'm also not able to post using my phone. It's quite a big drawback for me because I use Skype as one of my apps email/primary vocation and rarely get to use my laptop, so I rely on Skype my phone.
    One way to help it would be appreciated.

    Update: the settings of date and time of the phone have been recently a bit off, and as soon as they have been fixed my Skype messaging functionality started working too. So I can only assume that the reason was because of my time and day go wrong it somehow prevented the application of the ability to send and receive messages, or not. Whatever it is, it is fixed.

Maybe you are looking for