Receive xml as string from OSB and pass it to Bpel
I was given xml and DTD by our external partners. I need to receive this xml, parse this and insert some of the
values of the elements into DB.
Question1:
Since I don't have WSDL, can I receive xml in string and pass it on to OSB BS which calls Bpel process?
If yes, how and can I get any example?
How do I set up osb bs service to talk to bpel?
I have installed oracle soa suite 10g with patch set 4. This runs with Oracle AS. I have my Bea weblogic 10.3 with OSB installed.
Both the servers are running seperately.
If I use
string to xml --- fn-bea:inlinedXML()
How do I extract a value of an element? When I log the xml that got extracted from a string, I only see the values of elements with no element names:
eg: if incoming string format of xml is:
<Customer>
<name>aaa</name>
<address>bb</address>
</Customer>
After fn-bea:inlinedXML($body)
I see:
aaa
bbb
in the log, but with no element names
Similar Messages
-
I need to call a batch file from java and pass arguments to that Batch file
Hi,
I need to call a batch file from java and pass arguments to that Batch file.
For example say: The batch file(test.bat) contains this command: mkdir
I need to pass the name of the directory to the batch file as an argument from My Java program.
Runtime.getRuntime().exec("cmd /c start test.bat");
How to pass argument to the .bat file from Java now ?
regards,
Krish
Edited by: Krish4Java on Oct 17, 2007 2:47 PMHi Turing,
I am able to pass the argument directly but unable to pass as a String.
For example:
Runtime.getRuntime().exec("cmd /c start test.bat sample ");
When I pass it as a value sample, I am able to receive this value sample in the batch file. Do you know how to pass a String ?
String s1="sample";
Runtime.getRuntime().exec("cmd /c start test.bat s1 ");
s1 gets passed here instead of value sample to the batch file.
Pls let me know if you have a solution.
Thanks,
Krish -
I'm receiving duplicate emails, one from icloud and one from yahoo
I'm receiving duplicate emails, one from icoud and one from my yahoo, how do I fix this?
Have you turned on a forwarding or copying service at yahoo? The only way to get duplicate emails from two different email services is if one of them forwards and copies to another, or if senders are sending to both email addresses.
-
Trap string output from resultset and pass the value to getSchema.
I want to get the string ldb output frm the resultset and pass it to getSchemas(ldb).kindly let me know how to do it,right now it is throwing error like variable ldb might not have been initialised.
public boolean Err_getSchemas() {
boolean ret = true;
try {
System.out.println("**** Testing getSchemas Tests : - ");
if(login()) {
Statement stmt = con.createStatement();
ResultSet rs;
String ldb;
rs = stmt.executeQuery("SELECT identifier FROM ldb_catalog");
while(rs.next())
ldb = rs.getString(1);
//String ldb = rs.getString(1);
//System.out.println("lll"+ldb);
try{
System.out.println("1.Testing DatabaseMetaData.getSchemas() with string ldb");
ordbjava.jdbc.ordbMetaData dbmd = ( ordbjava.jdbc.ordbMetaData)con.getMetaData();
ResultSet dbmdrst = dbmd.getSchemas(ldb);
System.out.println(" Exception not thrown: TEST Pass ");
dbmdrst.close();
}catch(Exception ex){
System.out.println("***JDBCMetaData.getSchemas() with string ldb failure***");
System.out.println(" Catch Exception"+ex );
catch (SQLException e) {
printExceptionStack(e);
System.out.println("***ordbCollection Preparation Error Caught SQLException: " + e.getMessage());
return false;
finally {
try {
con.close();
catch (SQLException e) {}
return ret;
}I want to get the string ldb output frm the resultset and pass it to getSchemas(ldb).kindly let me know how to do it,right now it is throwing error like variable ldb might not have been initialised.
public boolean Err_getSchemas() {
boolean ret = true;
try {
System.out.println("**** Testing getSchemas Tests : - ");
if(login()) {
Statement stmt = con.createStatement();
ResultSet rs;
String ldb;
rs = stmt.executeQuery("SELECT identifier FROM ldb_catalog");
while(rs.next())
ldb = rs.getString(1);
//String ldb = rs.getString(1);
//System.out.println("lll"+ldb);
try{
System.out.println("1.Testing DatabaseMetaData.getSchemas() with string ldb");
ordbjava.jdbc.ordbMetaData dbmd = ( ordbjava.jdbc.ordbMetaData)con.getMetaData();
ResultSet dbmdrst = dbmd.getSchemas(ldb);
System.out.println(" Exception not thrown: TEST Pass ");
dbmdrst.close();
}catch(Exception ex){
System.out.println("***JDBCMetaData.getSchemas() with string ldb failure***");
System.out.println(" Catch Exception"+ex );
catch (SQLException e) {
printExceptionStack(e);
System.out.println("***ordbCollection Preparation Error Caught SQLException: " + e.getMessage());
return false;
finally {
try {
con.close();
catch (SQLException e) {}
return ret;
} -
Converting XML to String in OSB
Hi All,
Is there any function (apart from fn-bea:serialize function) for converting XML payload to a String in OSB. Please let me know.
Thanks,
BpeltechieThat's how it's worded by W3C
http://www.w3.org/TR/REC-xml/#syntax
The ampersand character (&) and the left angle bracket (<) must not appear in their literal form, except when used as markup delimiters, or within a comment,
a processing instruction, or a CDATA section. If they are needed elsewhere, they must be escaped using either numeric character references or the
strings " & " and " & lt; " respectively. The right angle bracket (>) may be represented using the string " & gt; ", and must, for compatibility, be
escaped using either " & gt; " or a character reference when it appears in the string " ]]> " in content, when that string is not marking the end
of a CDATA section.Note that it says left angle bracket must not appear in their literal form, but the right angle bracket may be represented using the string " &gt; "
Cheers,
Vlad -
Reading Variable from JSP and pass to servlet
hello
i have a servlet page which transfers data to a jsp page. The jsp displays the data only. Now i want to read a string from a jsp page and then pass it to the servlet.
How can i do it?
thnkshello
this is working fine: out.println("<input
type=\"hidden\" name=\"bookId\" value=\"+bookId+\"
size=\"25\">") ;
works fine
thnksI guess you didn't understand me. Look to the difference between the following two statements:
out.println("<input type=\"hidden\" name=\"bookId\" value=\"+bookId+\" size=\"25\">") ;and
out.println("<input type=\"hidden\" name=\"bookId\" value=\""+bookId+"\" size=\"25\">") ;In the first you're handling the bookId variable as String, in the second it will use the actual value of bookId. -
I AM TRYING TO IMPORT CHARACTERS FROM A TAB DELIMITED FILE INTO A TABLE ON LABVIEW. ONCE THE DATA IS IN THE TABLE I WANT TO BE ABLE TO SELECT INDIVIDUAL STRINGS FROM THE TABLE AND PLACE IT IN A NEW TABLE. WHEN I CLICK ON A STRING I WOULD LIKE THE SELECTED STRING TO SHOW IN A TEXT BOX LABELED 'SELECTED STEP' AFTER ALL THE SELECTED STRINGS IS IN THE TABLE I WOULD LIKE TO SAVE THE NEW TABLE AS ANOTHER SPREADSHEET -- TAB DELIMITED -- FILE, MAKING IT ACCESSIBLE TO OPEN. HERE IS WHAT I HAVE SO FAR. I CAN INPUT DATA INTO THE TABLE, BUT I CAN ONLY TRANSFER ONE STRING INTO THE TABLE I WOULD LIKE TO BE TO INPUT MULTIPLE STRINGS. ALSO WHENEVER I TRY SAVING THE FILE, IT ALWAYS SAVES A UNKNOWN FILE, HOW CAN I GET IT TO SAVE AS A SPREADSHEET FILE. THANKING ALL OF YOU IN ADVANCE FOR YOUR HELP!!!!!!
Attachments:
Selector.zip 30 KBPondered,
The question you are asking is the same one that you asked in: http://forums.ni.com/ni/board/message?board.id=170&message.id=132508#M132508, to which I supplied a revised version of the original vi you used (which was modified from the original one I supplied to an earlier thread). A couple of questions: 1) What does my latest not do that is in your question, 2) Why are you starting yet another thread about the same problem? We are here trying to help, it makes it a lot easier if you keep the same problem in the same thread, it reduces duplication of effort from those that might not have been following the previous thread(s). Those of us that don't have our "names in blue" are just doing this "for fun" (the blue names are NI employees, who may still be doing it "for fun"), and it makes it more fun if it doesn't seem (correctly or not) that our attempts are ignored. If an answer doesn't help, or seems incomplete, post a little more detail to the same thread so that the original respondent, or someone new, can provide more information, or understand your problem better.
P.M.
Message Edited by LV_Pro on 07-20-2005 01:20 PM
Putnam
Certified LabVIEW Developer
Senior Test Engineer
Currently using LV 6.1-LabVIEW 2012, RT8.5
LabVIEW Champion -
Firing an external app from flash and pass parameters
Hi all,
I need to fire an exe from flash projector and pass it a lot
of parameters(need to regenerate an image). Could someone tell me
what would be the best solution for this... can I make a php
executable which could use all the gd functions? If yes, can you
please write a brief tut or provide some guidelines.
Thanksthen use:
fscommand("exec", "correctanswer.exe"); -
How to import values from txt and pass values to variables
I need to export some variables from Indesign and import them in Illustrator. I can export a txt file from InDesign but I don't know how to import and pass the values to variables in Illustrator.
Can someone help?Well from you ID script Im presuming that you are simply writing a few lines of info to a plain text file like so…
writeFile('SomeData');
writeFile('AnotherData');
writeFile('LastData');
function writeFile(info) {
try {
var log = File('~/Desktop/ID_Data.txt');
log.open('a');
log.write(info + '\r');
log.close()
catch (e) {
alert(e);
So you would just read this back where or when ever you need to use it in your Illustrator script…
var log = File('~/Desktop/ID_Data.txt');
log.open('r');
var a = log.readln();
var b = log.readln();
var c = log.readln();
log.close();
alert(a); -
Open SAP window from browser and pass values
Hi,
I am developing JSP application and I want to open and pass some values to mm03. Is there any possible way to do this .Hi,
You will need to do a function module with a bdc to call MM03.
Then you can pass the parameters to the function module and run MM03. -
Custom fault message from OSB is not throw in BPEL
Hi,
I have created a custom fault error in OSB which is sent to BPEL.
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
<env:Header/>
<env:Body>
<env:Fault>
</env:Fault>
</env:Body>
</env:Envelope>
If my namespace in FAULT tag is "http://schemas.xmlsoap.org/soap/envelope/",
message is understood as fault IN BPEL. But if I change namespace, BPEL understands as reply message.
How can I use my custom fault message with different namespace as http://schemas.xmlsoap.org/soap/envelope/ ?
Regards,SOAP Fault has a defined structure and defined namespaces. It does provide a placeholder for custom data though. Just like you can not change the namespace of Envelope of Body, similarly you cant change the namespace of Fault(if you want it to be recognized by the client apps). Any custom data you want to send in the SOAP Fault needs to be set as a child of 'detail' element of SOAP Fault. This custom data can have any namespace you wish. This Custom XML will be the element you define as Fault element in your WSDL
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
<env:Header/>
<env:Body>
<env:Fault>
<faultcode>env:Client</faultcode>
<faultstring>some error string</faultstring>
<faultactor>somedata</faultactor>
<detail>
{here you can put your custom XML content in any namespace which you have defined in the WSDL}
</detail>
</env:Fault>
</env:Body>
</env:Envelope> -
Flex 4 - is it possible to load xml data into the preloader and pass it to the application?
or is there a similar method to load XML data while the preloader is active, so the XML data will be ready when the main application loads?
i'm having great difficulty finding any relevant info from the forum and the web about accessing preloader variables from the application.
is there a way to access the preloader itself from the application?
It seems logical that the systemManager garbage collects it. If that's the case, how can i access the systemManager from the preloader and possible pass variables to it, then later access them from the application? this seems to be the best direction to tackle this problem. but maybe i'm overlooking another way? -
Passing vectors into JSP from Servlet and passing data back to Servlet
I have been building an MVC application.
It has a controller which instantiates classes and evokes methods to
populate vectors. These vectors are then passed into a JSP. This part of the application works fine.
What I am having trouble with is a new JSP I have designed; this will
display the data that is actioned by the FORM action. This is actioned
based on the Search criteria entered by the user. Based on this a further vector is populated and brought back to the JSP as a vector
and this is rendered via the TABLE tag. Again this works fine.
Against each of the rows displayed, I have a print checkbox which can be checked by the user. On checking the records they want to print, they should then hint a Print button which should go back to the Servlet and print the data. THIS IS WHERE I HAVE THE PROBLEM. On going
back to the servlet the checkbox values are not displayed, rather
the values that initially populate the JSP. How do I get these new values back into the vector and hence accessible from the Servlet.
Any help with be very much appreciated.
ChrisThanks for this.
Just to clarify I am not using Struts.
What I am having difficulties with is the fact that:
I can't get the checked values back to the Servlet - they keep the values they have in the bean - so as part of instantiating the bean class I set the value of the item to 'off'. The user will then check
the checkbox which should presumbably set the value to 'on'. This isn't happening because the setter method of the bean is not evoked again
because I don't come into this JSP again - the Servlet has finished here
and now needs to print the records. It can't do this because as
far as it is concerned nothing has changed since it last passed through
the vector to the JSP.
Even when I do the following:
Enumeration paramNames = request.getParameterNames();
String param = null;
while (paramNames.hasMoreElements())
param=(String)paramNames.nextElement();
System.out.println("parameter " + param + " is " +
request.getParameter(param));
what comes back is the valus of 'off' as opposed to 'on'.
The other thing is that 'request.getParameterNames()' only works
with the first record in the vector, i.e. it doesn't fetch any other
records that are rendered in the <TABLE> tag.
In desperation is there anybody out there who can help me.
Thanks
Chris
I am going to assume you are using a MVC framework
like Struts or very similar (I am assuming that from
the language you are using).
When the servlet passes the vector back to the JSP
page and you render the HTML that is passed back the
client your Vector is gone. The Vector is not
available at the HTML level that is being viewed at
the browser.
When the user selects the checkboxes and submits the
page (by clicking the print button) the controller
servlet (called ActionServlet in Struts, yours maybe
called something else) forwards the request to the
appropriate JavaBean and Servlet to process the
request. Either the JavaBean has to recreate the
Vector (not recommended) or the processing Servlet can
(better). You can do this by recreating the Vector
from scratch for the HttpRequest parameters or, at the
time of the initial request, saving Vector to a
session and then updating with the data you get back
from the client (again from the HttpRequest
parameters).
Either way you have to work with
HttpRequest.getParameter(). -
After installing IOS6 on my iphone 4 and my daughters iphone 4s we have this wonderful connection that we would like to break. We are now seeing/receiving each others text messages. I love my daughter but I don't really want to get all of her text messages from her friends and I don't really want to read every response she sends. Additionally, she can also see my text messages and there are times I really don't need for her to know everything that I am doing.
So It is time to cut the cord we need our own seperate texting. I am not sure what we did to have this happen but how do we undo it?Get your Apple ID sort out.
Only use the same Apple ID in Settings > iTunes & App Stores to share purchases, no where else.
Here some tips, it was written for IOS 5 but it's still valid for iOS 6.
iOS 5 & iCloud Tips: Sharing an Apple ID With Your Family -
Need Help to get value from MessageChoice and pass it to another MesgChoice
Hi All,
How to get a value from a messageChoice1 in CO into a variable. Once the messageChoice1 is selected i need to pass this variable into a VO whereClause and the page get refreshed, so that another messageChoice2 in the same page will have the values based on the messageChoice1 value.
Kindly give me your suggestions.
Thanks and Regards,
MyvizhiI think you want to do a nested loop within each Item in the data provider, to pull out each child's (series1, series2, etc). "label" attribute.
Maybe you are looking for
-
How do I change the color of one of my calendars
My calendar for work changed to a very bright blue (by itself). How do I change back to the original red color it had?
-
Everything that has to do with burning a CD/DVD unexpectedly quits!!!!
When I am in 10.4.5 (or when I had 10.4.4) I cannot burn with Toast, iTunes, iDVD, etc. However, I have an Ext. HD with 10.4.2 and don't have any problem burning CDs/DVDs at all. I recently upgraded my CDR/DVD-ROM with a Superdrive from OWC (MATSHITA
-
How to access XML packages in Applet?
Hi all, I am new to XML. I just found, in any Java Applet program, if I include a declartion from Java XML packages, like this. DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); Java will comiple, but when I try to run that java
-
Budget in SAP 2007B (Urgent)
Hi All, How to create Revised budget in SAP 2007B. Is Budget scenario is Revised budget? If yes, how do we set revised budget as default... This is bit urgent Thnz in advance Shashi
-
HP Envy 5530 e-all-in-one Does Not Work With Mac
Just bought an HP Envy 5530 all-in-one. It does not print through Safari and possibly other Mac applications. Does not frame the page properly even with "print page" and prints slower than 1 page per minute, even with no background images. My old HP