GET XML in Sproxy
Hi all,
Is it possible to get XML into the tab Original Response after sproxy execution with error?
Regards,
Let me re-phrase your question.
You want to have a mechanism by which the request message ( in xml format ) can be passed to one of the fields of the response message.
Solution 1:-
1. If you have an inbound synchronous proxy, design the response structure in such a way that the response message will have a root element which is 0.. unbounded. It helps when you don't have an error you don't need to populate the fields.
2. The second part of the synch inbound proxy would be the response message structure containing the error, you can also use the standard fault message structure. So your response proxy would look like this.
Root ( 1... unbounded )
Response ( 1... unbounded )
faulttext
faulturl
faultDetail ( 0... unbounded )
severity
text
url
id
RequestMsg ( 0... unbounded)
<messg structure>
Solution 2:-
1. You can include a field in the response message to contain the entire source xml.
2. To do that you need to generate the xml format data and then convert the xml xstring into string and pass it on the field data.
Regards,
Indranil
Similar Messages
-
Get('XML') doesn't work, but get() does in javascript - CASCADING LOVs
I'm trying to get cascading LOVs working in Apex 3.1.0 in Oracle 11g. When I call get.get('XML') it returns null in firefox and empty string in IE6. If I change it to call get.get() then it returns the XML as a string into Javascript.
The Application process is getting called in both scenarios as i've put PL/SQL logging to disk in order to prove it. The XML being returned is very basic so i'm sure it's not a problem with formatting. I'm not getting any exceptions thrown in javascript either.
Is it possible to use get.get() and then convert the text into an XML object which is returned as per get.get('XML') which at least will allow me to get something working ?
thanks
<script language="JavaScript" type="text/javascript">
function getBusinessFieldJS(pThis, pSelect)
alert('getBusinessFieldJS');
try
var l_Return = null;
var l_Select = html_GetElement(pSelect);
var get = new htmldb_Get(null, html_GetElement('pFlowId').value, 'APPLICATION_PROCESS=GET_DATA_FIELDS_XML', 0);
/*get.add('F120_GETBUSINESSFIELD_ITEM',pThis.value);*/
gReturn = get.get('XML');
alert('gReturn=' + gReturn);
alert('gReturn.value=' + gReturn.value);
if (gReturn == null)
alert('gReturn is null');
if(gReturn && l_Select)
var l_Count = gReturn.getElementsByTagName("option").length;
alert('l_count='+l_Count);
l_Select.length = 0;
for(var i=0;i<l_Count;i++)
var l_Opt_Xml = gReturn.getElementsByTagName("option")+;+
+ appendToSelect(l_Select, l_Opt_Xml.getAttribute('value'),+
+ l_Opt_Xml.firstChild.nodeValue)+
+ }+
+ }+
+
get = null;+
+ }+
+ catch (e)+
+ {+
+ alert('Exception : ' + e);+
+
}+
+}+Hi,
I've been trying to replicate your problem here: [http://apex.oracle.com/pls/otn/f?p=37055:1]
My application process is:
BEGIN
OWA_UTIL.mime_header ('text/xml', FALSE);
HTP.p('Cache-Control: no-cache');
HTP.p('Pragma: no-cache');
OWA_UTIL.http_header_close;
HTP.prn('<select>');
HTP.prn('<option value="-1">Please Select</option>');
HTP.prn('</select>');
END;(Just copied from your post and XML changed to xml, otherwise untouched)
And my page has a simple HTML region with the source of:
<div id="XMLOUTPUT" style="border:1px solid blue; width:200px; height:200px;"></div>
<div id="XMLOUTPUT2" style="border:1px solid blue; width:200px; height:200px;"></div>
<script type="text/javascript">
function getMyXML()
var l_Return = null;
var get = new htmldb_Get(null, html_GetElement('pFlowId').value, 'APPLICATION_PROCESS=RETURN_XML', 0);
gReturn = get.get('XML');
var d = html_GetElement('XMLOUTPUT');
d.innerHTML = gReturn;
var d2 = html_GetElement('XMLOUTPUT2');
d2.innerHTML = get.get();
var s = gReturn.getElementsByTagName("select");
alert(s.length);
</script>
<a href="javascript:getMyXML();">Click</a>Click on Click at the bottom of the page. The first DIV gets the get.get('XML') object and the second one the get.get() and a popup message tells you how many "select" items are in the XML version.
As far as I can see, this works fine.
Andy -
Error While trying to Get XML element(tag) Values
We are trying to get XML element (TAG) value from the XML pay load.
Example.
Getting XML String from a web service and then converting into XML payload.
ora:parseEscapedXML(bpws:getVariableData('signOn_Out','signOnReturn'))
From this XML payload we are trying to get an element (Tag) value.
We are getting following error
Error in evaluate <from> expression at line "130". The result is empty for the XPath expression : "/client:TririgaProcessResponse/client:User/client:LastName".
oracle.xml.parser.v2.XMLElement@118dc2a
{http://schemas.xmlsoap.org/ws/2003/03/business-process/}selectionFailure" has been thrown.
- <selectionFailure xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/">
- <part name="summary">
<summary>
empty variable/expression result.
xpath variable/expression expression "/client:TririgaProcessResponse/client:User/client:LastName" is empty at line 130, when attempting reading/copying it.
Please make sure the variable/expression result "/client:TririgaProcessResponse/client:User/client:LastName" is not empty.
</summary>
</part>
</selectionFailure>
Here are signOnReturn and XML Payload XSD's
<schema attributeFormDefault="unqualified"
elementFormDefault="qualified"
targetNamespace="http://xmlns.oracle.com/Web1"
xmlns="http://www.w3.org/2001/XMLSchema">
<element name="Web1ProcessRequest">
<complexType>
<sequence>
<element name="userName" type="string"/>
<element name="password" type="string"/>
</sequence>
</complexType>
</element>
<element name="Web1ProcessResponse">
<complexType>
<sequence>
<element name="result" type="string"/>
</sequence>
</complexType>
</element>
</schema>
<?xml version="1.0" encoding="windows-1252" ?>
<schema attributeFormDefault="unqualified"
elementFormDefault="qualified"
targetNamespace="http://xmlns.oracle.com/Web"
xmlns="http://www.w3.org/2001/XMLSchema">
<element name="TProcessResponse">
<complexType>
<sequence>
<element name="result" type="string"/>
<element name="User">
<complexType>
<sequence>
<element name="Id" type="string"/>
<element name="CompanyId" type="string"/>
<element name="SecurityToken" type="string"/>
<element name="FirstName" type="string"/>
<element name="LastName" type="string"/>
</sequence>
</complexType>
</element>
</sequence>
</complexType>
</element>
</schema>I am sure and can see the data in audit trail.
[2006/12/12 09:17:36]
Updated variable "signOn_Output"
- <signOn_Output>
- <part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="payload">
- <WebMethodsProcessResponse xmlns="http://xmlns.oracle.com/WebMethods">
<Result xmlns="">
Success
</Result>
- <User xmlns="">
<Id>
2694069
</Id>
<CompanyId>
208133
</CompanyId>
<SecurityToken>
1165936654605
</SecurityToken>
<FirstName>
Jagan
</FirstName>
<LastName>
Rao
</LastName>
</User>
</WebMethodsProcessResponse>
</part>
</signOn_Output>
Copy details to clipboard
[2006/12/12 09:17:36]
Updated variable "tririga"
- <tririga>
- <TririgaProcessResponse xmlns="http://xmlns.oracle.com/WebMethods">
<Result xmlns="">
Success
</Result>
- <User xmlns="">
<Id>
2694069
</Id>
<CompanyId>
208133
</CompanyId>
<SecurityToken>
1165936654605
</SecurityToken>
<FirstName>
Jagan
</FirstName>
<LastName>
Rao
</LastName>
</User>
</TririgaProcessResponse>
</tririga>
Copy details to clipboard
[2006/12/12 09:17:36]
Updated variable "Variable_2"
- <Variable_2>
- <part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="payload">
- <TririgaProcessResponse xmlns="http://xmlns.oracle.com/WebMethods">
<Result xmlns="">
Success
</Result>
- <User xmlns="">
<Id>
2694069
</Id>
<CompanyId>
208133
</CompanyId>
<SecurityToken>
1165936654605
</SecurityToken>
<FirstName>
Jagan
</FirstName>
<LastName>
Rao
</LastName>
</User>
</TririgaProcessResponse>
</part>
</Variable_2>
Copy details to clipboard
[2006/12/12 09:17:36]
Error in evaluate <from> expression at line "130". The result is empty for the XPath expression : "/client:TririgaProcessResponse/client:User/client:LastName".
oracle.xml.parser.v2.XMLElement@1c8768e
Copy details to clipboard
[2006/12/12 09:17:36]
"{http://schemas.xmlsoap.org/ws/2003/03/business-process/}selectionFailure" has been thrown.
- <selectionFailure xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/">
- <part name="summary">
<summary>
empty variable/expression result.
xpath variable/expression expression "/client:TririgaProcessResponse/client:User/client:LastName" is empty at line 130, when attempting reading/copying it.
Please make sure the variable/expression result "/client:TririgaProcessResponse/client:User/client:LastName" is not empty.
</summary>
</part>
</selectionFailure>
Copy details to clipboard -
How to get XML file using servlets that XI sent to my J2EE appl?
Hi All!
I have a scenario like XI sends xml file to j2ee application. In my J2EE application my servlet receives this xml. Will the xml file be in my HTTPServletRequest object? if so how to get that file from Request object.
Please help me its urgent, Any code help is highly appreciated.
My xml file will be like this:
<ns0:Http_Message_Type_Demo
xmlns:ns0="http://abcdemo.com">
<Name>ABC</Name>
<RollNo>123</RollNo>
<Address>a-4</Address>
</ns0:Http_Message_Type_Demo>
somebody should help me!please
ThanksHi,
You can use HTTPServletRequest object to get the XML payload.
BufferedReader reader = request.getReader(); //gets XML payload
String line = reader.readLine(); // to read the XML payload line by line
(request is the HTTPServletRequest object)
Regards,
Uma -
Getting Xml tag values based on procedure in parameter
Hi,
I have an XML file like bellow
<college>
<studenthistory>
<sno>100</sno>
<sname>jeff</sname>
<sdept>comp</sdept>
</studenthistory>
<studenthistory>
<sno>200</sno>
<sname>kelly</sname>
<sdept>physics</sdept>
</studenthistory>
</college>
i am writing a procedure like bellow
create or replace procedure p_test(studendtno number)as
val1 varcahr2(200);
val1 varcahr2(200);
xml_file sys.xmltype;
begin
xml_file:= XMLType(bfilename(testdirectory, 'test.xml'),
nls_charset_id('AL32UTF8'));
end;
i am able to get xml file from rempote to xml_file variable...
Now what i want is if i send 100 as in parameter just i want 100 related ename,edept values ,if i send 200 as in parameter i want 200 related values ename,edept.
output
val1 val2
jeff comp
kelly physics
Thanks
satya
Message was edited by:
satya81
Message was edited by:
satya81
Message was edited by:
satya81
Message was edited by:
satya81How about something like
SQL> create or replace procedure p_test (studendtno number, cur out sys_refcursor)
as
begin
open cur for
with xml_tab as
(select xmltype
('<college>
<studenthistory>
<sno>100</sno>
<sname>jeff</sname>
<sdept>comp</sdept>
</studenthistory>
<studenthistory>
<sno>200</sno>
<sname>kelly</sname>
<sdept>physics</sdept>
</studenthistory>
</college>') xml
from dual)
select t.column_value.extract ('studenthistory/sname/text()').getstringval() sname,
t.column_value.extract ('studenthistory/sdept/text()').getstringval() sdept
from xml_tab x,
table (xmlsequence (x.xml.extract ('college/studenthistory'))) t
where t.column_value.extract ('studenthistory/sno/text()').getnumberval() = studendtno;
end p_test;
Procedure created.
SQL> var cur refcursor
SQL> exec p_test(100,:cur)
PL/SQL procedure successfully completed.
SQL> print cur
SNAME SDEPT
jeff comp
1 row selected. -
Error while getting xml document with default connection in 8iJServer
I had used GZIP utility to zip and store the document in
the CLOB. If i use thin drivers and GZIP to retieve this document it works fine.
instead of thin drivers if i use oracle8iJserver defalut
connection i get the follwing error
:Error while getting xml document Not in GZIP format.
your response is appreciated.
thanks
sanjay.Hi Yepin Jin,
I am facing the same issue did you solved it?
Regards,
Orlando Covault -
I create a Data Model and Save it When i click on Get XML output the data it shows a blank page XML data is not displayed and later when i try to create a Report based on existing DM it gives a message...NO Sample data is saved for the existing DM.... Can anyone help?
From 11g
When you created data model and view xml you gave drow down option on the right top saying
Export xml
Save as sample data
Get data engine log.
Once you completed creating daramodel and view xml please click that option save as sample data . The xml which you viewed will be saved as sample xml file for that data model.
It is must if you want ti upload a template to created data model.
It is a one time job that we need to do whenever we create a new datamodel.
for reference u can check the below link.
Viewing the XML Output and Saving the Sample Data
1 You may have observed that In the current version of the BI Publisher, you can preview the XML data for the data model.
Click the XML icon (found at the right top corner of the page), to see the XML output for the data model you defined in previous topic.
Select All for the number of rows, and click Run to see the XML data output for all the departments:
( A portion of the XML data is displayed here in the screen)
2 .To save this as sample data, click the Open Menu drop-down list icon, and select Save as Sample Data.
You can see that the sample.xml is listed in the Sample Data section of the Data Model ( as shown below):
Note: It is very important to save sample data for a data model, else when creating Layouts, the previews do not appear correctly.
http://st-curriculum.oracle.com/obe/fmw/bi/bip/bip11g/gettingstarted/gettingstarted.htm
Assign me some points if helpful. -
Hi How to get XML file from servlet that XI sent to my J2EE appl?
Hi All!
I have a scenario like XI sends xml file to j2ee application. In my J2EE application my servlet receives this xml. Will the xml file be in my HTTPServletRequest object? if so how to get that file from Request object.
Please help me its urgent, Any code help is highly appreciated.
My xml file will be like this:
<ns0:Http_Message_Type_Demo
xmlns:ns0="http://abcdemo.com">
<Name>ABC</Name>
<RollNo>123</RollNo>
<Address>a-4</Address>
</ns0:Http_Message_Type_Demo>
somebody should help me!please
ThanksHi,
You can use HTTPServletRequest object to get the XML payload.
BufferedReader reader = request.getReader(); //gets XML payload
String line = reader.readLine(); // to read the XML payload line by line
(request is the HTTPServletRequest object)
Regards,
Uma -
Hi All,
I have Adobe Livecycle designer 7.1 and adobe extension server installed in my pc. my question is by using adobe livecycle designer and extension how to get xml file in adobe reader on button click. Kindly suggest me. Thanks in Advance.
Thanks & Regards
GaneshMoving this discussion to the LiveCycle Designer forum.
-
I'm using Oracle BI Publisher 11.1.1.3.0 and I've created a Dataset with several parameters. (6 to be precise) I'm using the "Get XML Output" button to generate my sample data...
Without the parameters all is good... but when I add parameters... the parameters line up from left to right three of my parameters "disappears" to the right and even more importantly the "Run" & "Return" buttons disappear and I cannot access them.
I feel like I'm missing something simple... but I just can't find it. How can I get those parameters to line up some other way?
(Let me specify once again that I am ONLY in the Dataset area, not the report area)
Thanks in advanceLook... this seems like a serious problem...
I cannot generate the sample data when I add more than 3 parameters (Type Menu with a LOV) ....
I cannot generate sample data, the parameters do not appear on the report...
The Run button is off screen and there are no scroll bars...
I am in the data model area only... NOT the report are and I have NO way of seeing the parameters that are off screen or even accessing the Run & Return button or the "Save sample data"
What is going on? -
How to get XML files out of activity diagrams of UML
Using Rational Rose I have developed a model now I want a way to get XML file for each activity diagram of the model built. This XML file will be the input file for Project Cleveland which instantiates the services according to the documentation in this XMl file
In the Photos mode go to the View menu and uncheck Event Titles. That will leave you with only thumbnails displayed in the Photos view. However, if you close from that mode and reopen the opening time will be slower since iPhoto has to read and render all of the thumbnails. It can get rather long.
TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto (iPhoto.Library for iPhoto 5 and earlier) database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
I've created an Automator workflow application (requires Tiger or later), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 6 and 7 libraries and Tiger and Leopard. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.≤br>
Note: There now an Automator backup application for iPhoto 5 that will work with Tiger or Leopard. -
Hi,
i hv a procedure to get the xml data's(values of the xml) from a clob. in a table.it works fine the parent tags but if the same tag is there for two times then i am not able to loop it because i dont know the tag name for which the loop should be run.
to be clear.
<root>
<tag1>value1
</tag1>
<tag1>value2
</tag1>
</root>
i need to run some fns for each node value so i need to loop for each node having same value pls help me to get the node name.You can simply alter get xml node name in loop to return a count on just the node you are looking for. Not sure why you need to know the count when you can have the logic iterate through the nodes for you, either as an XMLType or a DOMDocument (see nodelist).
-
Getting XML from Five Different Oracle Tables
I need to get xml like
<dataset code="123" title="" pubcode="456" minrows="0">
<schema code="s1" /> <!-- can be one -->
<rowset code="rs1" /> <!-- can be one -->
<sorter>
<!-- field can be MORE than one -->
<field name="field1" order="o1"/>
<field name="field2" order="o2"/>
</sorter>
<!-- filter can be MORE than one -->
<filter type="filter1" value="val1" />
<filter type="filter2" value="val2" />
</dataset>
Where each tag corresponds to a a separate table. And each attribute in that tag is a column in the corresponding table Have written below sql for same
SELECT XMLELEMENT(NAME "dataset",
XMLAttributes(ds.DataSet_Code AS "code",ds.DataSet_Title as "title",ds.pub_code as "pubcode",ds.Min_Rows as "minrowss"),
XMLFOREST(
SELECT XMLElement("schema", XMLAttributes(fs.schema_code AS "code"))
FROM File_Schema fs WHERE fr.dataset_code = ds.dataset_code,
SELECT XMLElement("rowset", XMLAttributes(fr.rowset_code AS "code")) FROM File_RowSet fr
WHERE fr.dataset_code = ds.dataset_code,
SELECT XMLELEMENT(NAME "sorter",
XMLAGG(XMLELEMENT(NAME "field",
XMLATTRIBUTES(fsf.field_name AS "name",fsf.field_order AS "order")
FROM File_sorter_field fsf WHERE fsf.dataset_code=ds.dataset_code,
SELECT XMLAGG(XMLELEMENT(NAME "filter", XMLATTRIBUTES(type AS "type",value AS "value")))
FROM File_Filter ff where ff.dataset_code=ds.dataset_code
FROM File_Product fp , File_DataSet ds
WHERE fp.File_Name = ds.File_Name and fp.File_Name = 'abc' and ds.dataset_code ='123' ;
for which I get error like below
ORA-00936: missing expression 00936. 00000 - "missing expression" *Cause: *Action: Error at Line: 4 Column: 28
any help appreciatedScalar subqueries have to be wrapped in parentheses.
Also, you probably don't want to use XMLForest in this case. XMLForest requires an alias for each argument, and generates an additional element with that name.
Maybe something like this is more appropriate :
SELECT XMLELEMENT("dataset"
, XMLAttributes(
ds.DataSet_Code AS "code"
, ds.DataSet_Title as "title"
, ds.pub_code as "pubcode"
, ds.Min_Rows as "minrows"
SELECT XMLElement("schema", XMLAttributes(fs.schema_code AS "code"))
FROM File_Schema fs
WHERE fr.dataset_code = ds.dataset_code
SELECT XMLElement("rowset", XMLAttributes(fr.rowset_code AS "code"))
FROM File_RowSet fr
WHERE fr.dataset_code = ds.dataset_code
SELECT XMLELEMENT("sorter"
, XMLAGG(
XMLELEMENT("field"
, XMLATTRIBUTES(
fsf.field_name AS "name"
, fsf.field_order AS "order"
FROM File_sorter_field fsf
WHERE fsf.dataset_code = ds.dataset_code
SELECT XMLAGG(
XMLELEMENT("filter"
, XMLATTRIBUTES(
type AS "type"
, value AS "value"
FROM File_Filter ff
WHERE ff.dataset_code = ds.dataset_code
FROM File_Product fp
JOIN File_DataSet ds ON fp.File_Name = ds.File_Name
WHERE fp.File_Name = 'abc'
AND ds.dataset_code ='123' ; -
How to Get XML from the PDF form generated using Designer that is stored in LC
We have a Requirement of Generating reports on what a PDF form is comprised of? It is easy for us to scan / parse the XML format of the PDF form and get all the relavent Info we need. We are able to see the XML format of the PDF form when we open up the Form in Designer.
But we are trying to run this report in a Batch Mode for many PDF files. I need to know how to get a XML format of the PDF file that is stored in LC that was developed using Designer. Once we are able to get the XML of the PDF form it is just a scan / parse to get the relavent data.
Can some one tell me how to get the XML format of a PDF file stored in the LC?If I place the PDF form on the LC server - Can you let me know of the tools you are referring to get XML design from the PDF form?
Is it through a Process Orchestration I need to run the PDF through to get a XML design out of it?
I am fine in storing the PDF in the LC server? How will I get the XML design (XML) from this PDF on the server? -
Getting XML result from Oracle request
We have Oracle 8i Entreprise Edition and We like to get XML result from an Oracle request. Can I use only Oracle 8i Entreprise Edition product or should i use another oracle product to do this job ?
Thank youDownload our XSQL Pages technology with the XSQL Servlet and you'll be in business in no time. If you want to just get XML programmatically from SQL in your own programs, you can try the XML SQL Utility (which XSQL Pages makes use of under the covers). XSQL Pages comes with lots of demos and a tutorial.
Maybe you are looking for
-
I work in schools and would like to know if a school opens an iTunes account to purchase apps, how many iPads can that app be loaded onto legally?
-
How to display data in the same tab components ?
Hi, I have a tabbed pane and contains 3 tabs. I have entered some value in the text field and clicked the enter button in the 3rd tab.This enter button contains some validation code and after validation it will display some data in the text area in t
-
Basis Activities in ABAP Trial version
Hello all, I wanted to know if we can practice basis activities in ABAP Trial version. Also i want to know if we can install j2ee engine and make it as addin system. <REMOVED BY MODERATOR> Rgds, Dinesh Edited by: Alvaro Tejada Galindo on
-
Im animating a map for school. But ive got a problem, when i export my movie(swf or mov or avi or...) my letters are 'shaking' I thought i had a solution by exporting all frames to jpegs and converting all jpegs to a movie with a video editor but eve
-
Using Table Variables MSSQL with xMII 11.5
I was trying an experiment with a query today where instead of creating a temp table in SQL, I used the T-SQL table variable. For a simple example: DECLARE @ProductTotals TABLE ( ProductID int, Revenue money) INSERT INTO @ProductTotals (ProductI