OSB: How to read the xml file, which is in OSB project
HelloWe have a generic proxy (PG1) reporting and deals alerts, this proxy is called in the pipelines of proxies anothers (P1... PN) in several projects. Each client proxy (P1... PN) PN) before call proxy PG1, configures a variable with syntactic alert or report.
We thought it would be a good idea to store the specifications for all the proxies of a project as an xml file, so that the proxy PG could read the xml file. This file will be in the OSB project.
The questions are:
-proxy can read a xml file that is in the OSB project?
S ' Please, are all the documentation for this?
Thank you
Kind regards
You can always do customization to work with the properties defined in a XML xquery. The key to this is to use the customization of reference instead of find and replace the customization, similar to the service account customizations.
Keep your real estate to as properties_dev of env xquery specific xmls, properties_sit etc then apply customization of service proxy xquery reference reference specific correct env.
Tags: Fusion Middleware
Similar Questions
-
Need help to read the xml file and place it in a table.
Nice day!
Here is the configuration. I have a xml file from another source which will call a stored procedure in my database (which I am supposed to create). This is a first for me, I've never done development pl/sql or worked with xml. :(
That's what I hoped to accomplish, if there is a better way, that I am open to him.
In short, to have a stored procedure that takes the xml file (transmitted by third parties via the call, no url must be a file), creates a temporary table and populates the two columns needed. Then, the SP will make a select join with the temporary table and other data available in another schema. Once the completed table selection will be truncated and dropped. SP farm.
Details:
DB: Oracle 11.2.0.1 RAC.
Charset: AL32UTF8
Example of XML: (nearly 10,000 lines like this in production)
"< MerchantID report =" "#" name = 'Conversion detail report' ReportStartDate = '2011-09-27 12:00:00GMT' ReportEndDate = '2011-09-27 21:38:13GMT"Version ="1.1"> < Conversion = '1234567891234567 D' MerchantReferenceNumber Convertingdate =" 2011-09-27 13:39:02 "RequestID ="1234567891234567891234"> < OriginalDecision > REVIEW < / OriginalDecision > < NewDecision > ACCEPT < / NewDecision > < Reviewer > testusr < / examiner > < ReviewerComments > no reason to reject. < / ReviewerComments > < Notes > < Note Date = "2011-09-27 13:39:02" AddedBy = "testusr" comment = "Took possession" / > < / Notes > < queue > Digital Review < / queue > < profile > Digital orders QA < / profile > < / Conversion > "
...
< / report >
What I tried.
I found a tutorial: http://it.toolbox.com/blogs/oracle-guide/oracle-and-xml-in-action-a-real-world-example-5319 I tried and was able to make it work. But I could not duplicate the results with my xml file. So I looked away and have had no success. :( I'm not a developer, so I'm really bad...
I found a note of support: (how to load an XML file into a Database Table using DBMS_XMLSave unaided Bfile [227476.1 ID]) and couldn't make it work.
I found some online then Odie son xml and tried these but slipped and couldn't get my versions of these great answers to work for me.
Then... I'm here now and hoping that someone could walk me through this.
I tinkered this SP (it doesn't have to be that way, the suggestions are greatly appreciated)
create or replace procedure xml_to_table (call_1 call_2) as
Start
run immediately "CREATE GLOBAL TEMPORARY TABLE XMLType IMRPT
--(clé primaire contrainte-imrpt_pk (MerchantReferenceNumber))
XmlType store as xml binary basicfile
-(high compression)
virtual columns
(MerchantReferenceNumber as (xmlcast (xmlquery ('/ Conversion/MerchantReferenceNumber ' from object_value content back) as VARCHAR2 (32))))
, NewDecision as (xmlcast (xmlquery ('/ Conversion/NewDecision ' from object_value content back) as VARCHAR2 (10)))
)
-ON COMMIT PRESERVE ROWS
run immediately 'save xml as a file on the local system?'
insert into IMRPT (MerchantReferenceNumber, NewDecision)
run immediately "join select statement.
run immediately 'truncate table IMRPT.
run immediately "drop table IMRTP.
end;
/
On my last test, I tried to select just in the xml file using this:
DECLARE
indomdoc DBMS_XMLDOM. DOMDocument;
innode DBMS_XMLDOM. DOMNode;
myParser DBMS_XMLPARSER.parser;
buf VARCHAR2 (2000);
BEGIN
myParser: = DBMS_XMLPARSER.newParser;
DBMS_XMLPARSER.setBaseDir (myparser, 'XML_DIR');
DBMS_XMLPARSER. Parse (myParser, "test.xml");
indomdoc: = DBMS_XMLPARSER.getDocument (myParser);
-just to test content
innode: = DBMS_XMLDOM.makeNode (indomdoc);
DBMS_XMLDOM.writeToBuffer (innode, buf);
Dbms_output.put_line (BUF);
dbms_xmldom.freeDocument (indomdoc);
dbms_xmlparser.freeParser (myParser);
END;
/
It was another accident and burn.
Any help would be appreciated.
Thank youLike I said:
Here is an example using a REF CURSOR variable ( you will need to declare a plus for your actual procedure )
Your procedure has two parameters, you must declare two variables to hold the two REF CURSOR ;)
DECLARE v_filename VARCHAR2(50) := 'DMReport.xml'; v_rc1 SYS_REFCURSOR; v_rc2 SYS_REFCURSOR; v_order_name VARCHAR2(100); v_reason_text VARCHAR2(100); BEGIN xml2table(v_filename, v_rc1, v_rc2); commit; loop fetch v_rc1 into v_order_name; exit when v_rc1%notfound; dbms_output.put_line('ORDER_NAME='||v_order_name); end loop; close v_rc1; loop fetch v_rc2 into v_order_name, v_reason_text; exit when v_rc2%notfound; dbms_output.put_line('ORDER_NAME='||v_order_name||', REASON_TEXT='||v_reason_text); end loop; close v_rc2; END; /
If you test this in SQL * Plus, do not forget to SET SERVEROUTPUT ON to see the result.
-
How to import the XML file into an oracle table using a BPEL process
Hi friends
How can I import XML file in the db oracle table using a BPEL process
(1) I have generated an XML file in my local system with a field
(2) I created a temporary table in my oracledb with the same field in the XML file
(3) that I want to import these XML files which is the local host to my db oracle using a BPEL process
(4) for that what steps should I me fallow please suggest me if there is no document for this?
Thanks in advance
ATHi to
Here you go...
http://blogs.Oracle.com/ajaysharma/2011/03/using_file_adapter_database_adapter_and_mediator_component_in_soa_11g.html
I hope that helps!
Thank you
AJ -
How to read the xml and save the contents of the ITA in .txt format
Hello
Is it possible to read an xml file and save it in the .txt format. Please let me know if there is a way to do it.
Thank you
Ankit G
That read the function is only for xml files written using the LabVIEW diagram, so if you have something else, you need the functions in the range of xml parser.
-
How to import the xml file into bcc?
My input to atg file is xml containing assets of category or products.
I want the Scheduler to run to auto create a project and send an e-mail to the customer for approval.
When the client approves the xml file, and then run the Scheduler to get the data from the xml file into bcc.
I use: SingletonSchedulableService for this
Give me a direction for the same thing.
Thanks in advance.
I want to implement this in bcc.
What listener will listen to the authorization of the client for email (that contains the XML to import) we sent to him?
You will need to do a custom development to hang your workflow customized with incoming e-mail. To send notifications by mail electronic action is already there, and while creating his element within the ACC, you can specify a JSP page for the email template. You can view the rest of the relevant documents:
Oracle, Web ATG Commerce - Workflows
Oracle, ATG trade Web - action workflow items
I recommend you to consult the existing source of DeploymentEmailer in
\Publishing\samples\Java and see different types of DeploymentEvent and States can be used, based on your requirement in your custom component. See also these API javadocs for the process and the events of deployment available: DeploymentEvent (ATG Java API)
DeploymentServer (ATG Java API)
ATG has a component/atg/dynamo/service/POP3Service to retrieve messages from a POP3 e-mail server, but it is mainly used to detect the bounced email. Not too sure if it helps or adjustment in your case, but still you can go through all the details to know what is already there:
Bounced from Oracle ATG Web Commerce - E-mail
You can also check the event InboundEmail and API javadocs for InboundEmailMessage which are used in this function of rebound detection E-mail:
Oracle, ATG trade Web - InboundEmail event
InboundEmailMessage (ATG Java API)
Now based on all this, if you extend and customize a lot of things, that it would be little complex and tedious detect mail incoming approval based on its content and then advance your workflow. Another approach may be to put a URL in the e-mail template of your notification by e-mail that the approver will click and on the landing page, you can authenticate and advance your workflow to the needs.
-
How reference/read an XML file?
Instead of the inline XML content, pls see code below, thank you.
<? XML version = "1.0"? >
<!-dpcontrols / DataGridSimple.mxml->
"< mx:Application xmlns:mx = ' http://www.adobe.com/2006/mxml" > "
<!--
< mx:XMLList id = "employees" >
< employee >
< name > Christina Coenraets < / name >
555-219-2270 < phone > < / phone >
< email > [email protected] < / email >
true < current > < / current >
< notes >
Christina is a hot chic.
< / notes >
< / employee >
< employee >
< name > Joanne Wall < / name >
555-219-2012 < phone > < / phone >
< email > [email protected] < / email >
true < current > < / current >
< notes >
What a and b!
< / notes >
< / employee >
< employee >
< name > Maurice Smith < / name >
555-219-2012 < phone > < / phone >
< email > [email protected] < / email >
< active > false < / current >
< notes >
Just a pimp.
< / notes >
< / employee >
< employee >
< name > Mary Jones < / name >
555-219-2000 < phone > < / phone >
< email > [email protected] < / email >
true < current > < / current >
< notes >
Mary, Mary, Mary
< / notes >
< / employee >
< / mx:XMLList >
->
< mx:Panel title = "DataGrid Control Example" height = "100%" width = "100%".
paddingTop = "10" paddingLeft = "10" paddingRight = "10" >
< mx:Label width = '100% ', color = 'blue '.
Text = "Select a row in the DataGrid control" / >
<!-old reference inline, dataProvider = {employees}->
{< mx:DataGrid id = "dg" width = "100%" height = "100%" rowCount = "5" dataProvider="{C:\ColdFusion8\wwwroot\Flex\employees.xml}" > "
<!-this above dataProvider reference will not work, how? ->
< mx:columns >
< mx:DataGridColumn dataField = "name" headerText = "Name" / >
< mx:DataGridColumn dataField = "phone" headerText = "Phone" / >
< mx:DataGridColumn dataField = "email" headerText = "Email" / >
< / mx:columns >
< / mx:DataGrid >
< mx:Form width = '100 percent"height ="100% ">
< mx:FormItem label = "Name" >
< mx:Label text="{dg.selectedItem.name}"/ >
< / mx:FormItem >
< mx:FormItem label = "Email" >
< mx:Label text="{dg.selectedItem.email}"/ >
< / mx:FormItem >
< mx:FormItem label = 'Phone' >
< mx:Label text="{dg.selectedItem.phone}"/ >
< / mx:FormItem >
< mx:FormItem label = 'Notes' >
< mx:Label text="{dg.selectedItem.notes}"/ >
< / mx:FormItem >
< / mx:Form >
< / mx:Panel >
< / mx:Application >
in DataGrid dataProvider attribute does not point to a file. He uses (I think) E4X to set a path to a data provider (i.e. HTTPService). You need to access the XML file using a provider of data first and then use this reference to access the data of the element in the document through the dataProvider.
Hope that helps a little.
-
How to read the txt file that has words in between?
Hi all
I'm using Labview 8.2.
I would like to read a text file. I have given (after whenever he was on average more than 100 waveforms) several times recorded on the file. The idea is to further improve the SNR in post processing by averaging once again the data (which was on average about 100 wave forms).
I can get LabView to save the data in the file several times, then it keeps joins.
The problem is to read data from labview, so I can on average now again. The problem is the labview separates data sets with the following:
"Channel 1".
9925 samples
Date 28/10/2008
Time 17:16:11.638363
X_Dimension time
X 0 - 3.0125000000000013E - 3
Delta_X 2.500000E - 6
"End_of_Header."Then when I read it, he sees only the first set of data.
Can someone tell me please how to read all the datasets under labview?
I am attaching the file I want to read 'acquiredwaveform.txt' and the VI base (really basic btw) to play the file.
Thank you
This seems to be a standard LVM-file. You can read segments of different data using the VI Express LVM loop (make sure that the file retains its extension .lvm). I modified your example to show this.
Note that my example is quite inefficient. Table of primitive construction causes a massive memory copy whenever it is used, and you would be probably better on average that you read in. I made this way to make it more obvious how read segments of a file LVM. In the process, I noticed that you have a good amount of phase jitter (zoom in on the graph of all the three waveforms). With an average simple will make you smear on your waveforms. You can either fix the problem in hardware (recommended) or phase shift your data so it lines up before on average. If you need help with it, let us know.
-
How to open the XML file to a string in a LightRoom plugin?
I need to:
(1) open an XML file in a Lightroom chain
(2) analyze some data with LrXml
3) show the user
I have no ideas to the first point, please help me.
Use LrFileutils.readFile (). If you need finer control over file IO, you can use Lua builtin calls library files (io.open, file:read, etc.) -See a Lua reference for more details.
-
How to read the xml value in plsql store proc
I need to read the value at the bottom of the xml script in plsql procedure. I do not understand how to write. I'm new in xml, please help me solve this problem.
<? XML version = "1.0" encoding = "UTF-8"? >
< PrtyActDtlRequest >
< AcctInfo >
< > 84188 PartyID < / PartyID >
< RelAcctID > 125148 < / RelAcctID >
< RelAcctID > 251486 < / RelAcctID >
< RelAcctID > 125147 < / RelAcctID >
< RelAcctID > 125511 < / RelAcctID >
< / AcctInfo >
< / PrtyActDtlRequest >Here < AcctId > can be repeted n times (unbouinded), but < PartyID > is set once. This is the script that we will get out of the source system.
Thanks in advance.
Roy
You needn't PL/SQL for it. Just use XMLTABLE:
with t as)
Select xmltype (')
double x)84188 125148 251486 125147 125511 Select PartyID,
RelAcctID
t,.
XMLTable)
' / PrtyActDtlRequest/AcctInfo.
go x
columns
PartyID path number "PartyID,
Path RelAcctIDXml xmltype "RelAcctID."
),
XMLTable)
'RelAcctID '.
by the way RelAcctIDXml
columns
RelAcctID path number ' / RelAcctID'
)
/
PARTYID RELACCTID
---------- ----------
84188 125148
84188 251486
84188 125147
84188 125511SY.
-
How to read the XML doc in variable with XPath?
Suppose that a variable in BPEL contains an entire XML document as (without the quotes):
"value1 < foo > < bar > < / bar > < bar > value2 < / > < / foo >.
How to read of BPEL an XPath expression with the value of the second
< bar > element in a nother variable "target"?
What do I have to use getvariabledata? How to pass the XPath?
PeterPeter
Here's how you can get there by business to be divested. You can access it by writing the XML expression (do not select foo--> bar directly on the tree) as below
bpws:getVariableData ('Variable_name', 'Foo
','/ NS4:foo / NS4:bar bpws:getVariableData("intCounter") ') and assign it to the variable "target". Here the value of the variable integer "intCounter" represents the nth element under the tag "foo". Let us know if you face any issues. Hope this will help.
-
How to read the map file?
Hello
I have a mapping file to the linker with some data as below
File name: Load.map
ABC 2000 b 598
BBB 20009672
My requirement is to read the hexadecimal value when an entry is given.
Inuts are 'ABC' or 'bbb '.
Example: entering "bbb-" is given then 20009672 should be displayed in the indicator.
Please let me know the solution because it is very urgent.
Thanks in advance,
Krishna
It's really basic things - both with LabVIEW and file reading/Bay of manipulation in general. Check the tutorials.
-
How to read the jad file property
I am able to read the properties of the my application JAD file. My requirement is that through my application, I will download some other app via OTA, so is it possible to read the file property PPP through my application jad, I downloaded.
you don't know. to download another app ota you need the address of the file jad online. with this you can download and analyze its contents.
-
How to read the custom file Jad jad attributes?
Hi all
Please help me.
I need to read the custom JAD JAD attributes frm file.
I use this code
"
AllGroups [CodeModuleGroup] is CodeModuleGroupManager.loadAll ();.
CodeModuleGroup myGroup = null;
String moduleName = ApplicationDescriptor
.currentApplicationDescriptor () .getModuleName ();for (int i = 0; i)< allgroups.length;="" i++)="">
If (allGroups [i] .containsModule (moduleName)) {}
myGroup = allGroups [i];
break;
}
}Get the property
Var description As String = myGroup.getProperty("MIDlet-Description");
Custom string = myGroup.getProperty("My-Custom-JAD-Property");"
Copy the following code gives the 'description' string value, but NOTHING is coming when I read the string "Custom".
Let me know, where I'm wrong.
Kind regards
Ashutosh
Good to know that he has worked through the OTA.
4.2 versions below there is no workaround for it.
-
How to create the xml file in oracle plsql
Hello
I need the under xml (abc.xml) in unix Server out_directory file (the out_directory path: / u01/apps/xml /)
Select sivauser, sivapwd from sivainformations;-it will be multiple records
Select sivatelepone phone; - it will be multiple records
Select xyzverion versionid; - it will be multiple records
based on the above information, I need the sub file xml using oracle plsql procedure or a block
example: suppose we record
<? XML version = "1.0" encoding = "UTF-8"? >
"< sivaService version ="2.0"xmlns ="http://www.siva.ab/siva/4.0/test">."
< data language 'DEU' = >
< sivauser action = "siva3" sivapwd = "siva123" > --i need to sivainformations table(sivauser,sivapwd) timeline
phone < sivatelepone > < / sivatelepone >--i need to chronogram sivatelepone table (phone) based on the sivauser column
< abcversion version = "1.0" >
< Productinfo >
versionID < xyzverion > < / xyzverion >--i need to xyzverion (versionid) based on the sivauser column table records
< / Productinfo >
< / abcversion >
< / action >
< / data >
< / sivaService >
example: assume that multiple records<? XML version = "1.0" encoding = "UTF-8"? >
"< sivaService version ="2.0"xmlns ="http://www.siva.ab/siva/4.0/test>
< data language 'DEU' = >
< sivauser action = "siva3" sivapwd = "siva123" > --i need to sivainformations table(sivauser,sivapwd) timeline
< sivatelepone > '345678' < / sivatelepone >--i need to chronogram sivatelepone table (phone) based on the sivauser column
< abcversion version = "1.0" >
< Productinfo >
'1.1' < xyzverion > < / xyzverion >--i need to xyzverion (versionid) based on the sivauser column table records
< / Productinfo >
< / abcversion >
< / action >< sivauser action = "siva4" sivapwd = "siva123" > --i need to sivainformations table(sivauser,sivapwd) timeline
< sivatelepone > '123456' < / sivatelepone >--i need to chronogram sivatelepone table (phone) based on the sivauser column
< abcversion version = "1.0" >
< Productinfo >
"1.2" < xyzverion > < / xyzverion >--i need to xyzverion (versionid) based on the sivauser column table records
< / Productinfo >
< / abcversion >
< / action >
< / data >
< / sivaService >Please help me
Thank you
SivaI added a column ID to match the lines between the three tables.
SQL> with sivainformations 2 as 3 ( 4 select 1 id, 'karthick' sivauser, 'karthick' sivapwd from dual union all 5 select 2 id, 'ram', 'ram' from dual 6 ) 7 , sivatelepone 8 as 9 ( 10 select 1 id, 1234567890 telepone from dual union all 11 select 2 id, 1234512345 from dual 12 ) 13 , versionid 14 as 15 ( 16 select 1 id, 1.1 versionid from dual union all 17 select 2, 1.2 from dual 18 ) 19 select xmlelement 20 ( 21 "shivaService" 22 , xmlattributes('2.0' as "version", 'http://www.siva.ab/siva/4.0/test' as "xmlns") 23 , xmlelement 24 ( 25 "Data" 26 , xmlattributes('DEU' as "language") 27 , xmlagg 28 ( 29 xmlelement 30 ( 31 "Action" 32 , xmlattributes(s.sivauser as "sivauser", s.sivapwd as "sivapwd") 33 , xmlelement("shivatelepone", t.telepone) 34 , xmlelement 35 ( 36 "abcversion" 37 , xmlattributes('1.0' as "version") 38 , xmlelement 39 ( 40 "ProductInfo" 41 , xmlelement("xyzversion", v.versionid) 42 ) 43 ) 44 ) 45 ) 46 ) 47 ).EXTRACT('*') xml_output 48 from sivainformations s 49 join sivatelepone t 50 on s.id = t.id 51 join versionid v 52 on s.id = v.id; XML_OUTPUT -------------------------------------------------------------------------------------------------------------------
1234567890 1.1 1234512345 1.2 -
Hello
I have red the DBW do that beside Scripture, is that correct?
Thank youJin
DBWR writing data in data file... hope that the server process reads the data from the data file...
Kind regards
Deepak
Maybe you are looking for
-
How can I connect the new Macbook 12 "portable retina to an Apple LED Cinema display 27"?
-
Lifetime of the Apple aa batteries.
Has anyone seen a reasonable guide to the effective lifetime of battery Ni MH Apple.
-
Rotation with El Capitan beach ball?
Why do I get the rotation beach ball all the time since the upgrade to El Capitan?
-
Can I do my Equium L20 - 197-run faster?
Hello world Can I do my Equium L20 - 197-run faster? I am not very good with pc - then do me in terms simple, lol Thanks in advance M
-
Folder, permission issues, launch or directory? Help, please!
Hi all I'll try to keep this long history of strategies to solve problem as brief as possible. MBP mid 2010 Yosemite running started glitching around Christmas (CPU, memory and requiring hard reboot followed by a freezing kernel panic) and I began re