Nokia E61i Push Data using XML Cisco Objects?
Hi:
I have a Nokia E61 (wifi) suscribed to a Cisco Call Manager.
Is there any posibility to Push Data to the device?, like XML Cisco Objects to IP Phone 7970.
Could I send an SMS without use the mobile network?
thanks in advance,
marcelo
Thanks for the reply. Yes, I did compile all the Java and it
works OK with a simple Java program. It just will not work in a
Flex application.
The java classes are:
RRA:
package blah.myPackage;
import java.util.List;
import java.util.Collection;
import flex.data.DataSyncException;
import flex.data.assemblers.AbstractAssembler;
class RRA extends AbstractAssembler
public Collection fill( List fillParameters )
RRS service = new RRS();
return service.getSome();
RRS:
package blah.myPackage;
import java.util.ArrayList;
import java.util.List;
import java.sql.*;
import flex.EORS.*;
class RRS
public List getSome()
ArrayList list = new ArrayList();
String str = "bob";
RR rr = new RR(str);
list.add(rr);
return list;
RR:
package blah.myPackage;
class RR
private String name;
public RR() { }
public RR(String name)
this.name = name;
public String getName()
return this.name;
public void setName(String name)
this.name = name;
I started with something that retrieved data from a database
but watered it down just to try and get some kind of communication
between Flex and Java.
Similar Messages
-
Dynamically load content by date using xml
i would like to load content by date using xml. meaning if i
have 5 upcoming social events listed, i want them to dynamically
drop off from my webpage as the event date passes. i would like to
use the built in spry xml dataset functionality, but don't have to.
i can't seem to find a way to get the server date and then compare
it to a date in a xml node. this seems simple, but i can't seem to
find a tutorial that does not get crazy with all kinds of
code.Have the column headings (which the user clicks to sort by
that column) as
links back to the main page, with the sort as a url parameter
eg
www.mysite.com/mypage.php?sort=name
www.mysite.com/mypage.php?sort=date
etc
Then in your recordset, change the code from
$sql = "SELECT * FROM table ";
to
switch($_GET['sort']){
case "date":
$sql = "SELECT * FROM table ORDER BY date DESC";
break;
case "name":
$sql = "SELECT * FROM table ORDER BY name DESC";
break;
You`ll need to change the above to suit your needs obviously,
but the above
shows the principles that you need to use.
So you use the same page for each sort, but the SQL to
retrieve the records
in the order you want changes dynamically.
Gareth
http://www.phploginsuite.co.uk/
PHP Login Suite V2 - 34 Server Behaviors to build a complete
Login system. -
hi everyone...i want to upload a video to youtube from my desktop application. i went through the following link.
http://code.google.com/apis/youtube/2.0/developers_guide_protocol_resumable_uploads.html#Sending_a_Resumable_Upload_API_Request
it is for sending data using XML. but i don't know how to send data using XML. can someone give me an insight of data POST'ing using XML? any help is appreciated.actually i saw the following segment in this link :
http://code.google.com/apis/youtube/2.0/developers_guide_protocol_resumable_uploads.html#Sending_a_Resumable_Upload_API_Request
POST /resumable/feeds/api/users/default/uploads HTTP/1.1
Host: uploads.gdata.youtube.com
Authorization: AuthSub token="DXAA...sdb8"
GData-Version: 2
X-GData-Key: key=adf15ee97731bca89da876c...a8dc
Content-Length: 1941255
Slug: my_file.mp4
Content-Type: application/atom+xml; charset=UTF-8
<?xml version="1.0"?>
<entry xmlns="http://www.w3.org/2005/Atom"
xmlns:media="http://search.yahoo.com/mrss/"
xmlns:yt="http://gdata.youtube.com/schemas/2007">
<media:group>
<media:title type="plain">Bad Wedding Toast</media:title>
<media:description type="plain">
I gave a bad toast at my friend's wedding.
</media:description>
<media:category
scheme="http://gdata.youtube.com/schemas/2007/categories.cat">People
</media:category>
<media:keywords>toast, wedding</media:keywords>
</media:group>
</entry> -
Importing data- using xml file into HANA Table
Hi,
We are using (HDB STUDIO ) - revision 60.......
Is it possible to import data using XML file into HANA table (Master,Fact tables)?
(Without using any intermediate adapters for conversion of data.....)
Can any one suggest us........
Thank you.Hi user450616
I am a bit confused about what you are trying to achieve.
Are you:
1. importing a CSV file into APEX
2. adding an extra column to the Oracle Table
3. populating the extra column with the CSV filename?
Let us know if this is what you are trying to do.
Cheers,
Patrick Cimolini -
Using XML-based object structures to represent data in code/at run-time
Hello,
I have quite a "high level" question which has be bothering me for some time, and I haven't found the subject tackled in any books. I believe J2SE/J2EE is not an important divide here.
Lets say I want to develop a J2SE game application with two programs: a "level designer", and a "level viewer", and I want to store the level files in an XML format.
My question, and I use this example only to try and illustrate it, is:
when coding the level designer or viewer, is it reasonable to use an XML-based object hierarchy for representing a level in code/at run-time, i.e. using the standard Java DOM APIs? Or should one (as I would have done before XML came along) develop a set of classes much closer to modelling the real form of a level, and then add a means to convert those objects to/from to XML format?
This second option of course I would use/would have used if I wasn't thinking about XML, but isn't it sometimes easier to just read in an XML file into a DOM representation and just use the data straight out of that structure, rather than go through the bother of parsing the XML into a set of unrelated objects defined by a different family of classes? What shapes your decision here? And if the second option is best, what is the easiest way of converting to/from the XML?
Thank you for any advice.
GregHi Christian,
Can I ask: what about if your domain was quite 'close' to an object/DOM representation of XML?
For instance, what if a game operated by acting out a theatrical script, a spoken conversation, between two characters, perhaps somehow influenced at points by the user, and a particular level was just a different script for the characters.
One could imagine that the object representation of this would in the end be quite similar to how you'd represent XML, i.e. like a tree of nodes, where each node was a line from the script, and some nodes were a decision point where different nodes could be chosen from.
Would you still want to avoid using XML-based classes to represent the underlying 'game', or is there a point where you would 'give it' to the similarity and use existing XML structures directly?
Thank you for any advice
Greg -
Error while saving data using two entity objects (EO)
Hi All,
i am using two entity objects for saving the date in two different tables.
on my page i am having two tables and two save buttons for saving the data in the respective tables.
if i am not entering any data on the first table and putting valid data on the second table and click on the save button.
it is going into error saying "Null Pointer Exception"..
i am using getTransaction.commit() in my AM.
so it is trying to save all the data in both the tables.
i want to commit data of the respective table for which the save button is clicked.
Waiting for ur replyHi,
i am using the following code for saving the data in the AM
// TO SAVE THE JOB ASSIGNMENT DETAILS
public void saveJobAssignmentDetails(String projectId)
EmpAssignmentVOImpl empAssignVO = getEmpAssignmentVO1();
getTransaction().commit(); // Line where i am getting the error
rowNumberCountJobAssign = 0; // IN JOB ASSIGNMENT
// EXECUTING THE DISPLAY FUNCTION AGAIN SO TAHT ALL SAVED FIELD ARE READONLY AS REQUIRED
displayJobAssign(projectId);
if(empAssignVO.getRowCount() != 0)
throw new OAException("Job assignment details have been saved successfully. ",OAException.CONFIRMATION);
Stack trace :
oracle.apps.fnd.framework.OAException: oracle.jbo.DMLException: JBO-26041: Failed to post data to database during "Insert": SQL Statement "BEGIN INSERT INTO pa_job_bill_rate_overrides(START_DATE_ACTIVE,LAST_UPDATE_DATE,LAST_UPDATED_BY,CREATION_DATE,CREATED_BY,LAST_UPDATE_LOGIN,BILL_RATE_UNIT,PROJECT_ID,RECORD_VERSION_NUMBER,JOB_BILL_RATE_OVERRIDE_ID,RATE_CURRENCY_CODE) VALUES (:1,:2,:3,:4,:5,:6,:7,:8,:9,:10,:11) RETURNING JOB_BILL_RATE_OVERRIDE_ID, JOB_ID, START_DATE_ACTIVE, LAST_UPDATE_DATE, LAST_UPDATED_BY, CREATION_DATE, CREATED_BY, LAST_UPDATE_LOGIN, RATE, BILL_RATE_UNIT, PROJECT_ID, TASK_ID, END_DATE_ACTIVE, RECORD_VERSION_NUMBER, RATE_CURRENCY_CODE, DISCOUNT_PERCENTAGE, RATE_DISC_REASON_CODE INTO :12, :13, :14, :15, :16, :17, :18, :19, :20, :21, :22, :23, :24, :25, :26, :27, :28; END;".
at oracle.apps.fnd.framework.OAException.wrapperInvocationTargetException(OAException.java:972)
at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(OAUtility.java:210)
at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(OAUtility.java:152)
at oracle.apps.fnd.framework.server.OAApplicationModuleImpl.invokeMethod(OAApplicationModuleImpl.java:721)
at tcsl.oracle.apps.pa.jobBillRateAndAssignment.webui.jobBillRateAndAssignmentCO.processFormRequest(jobBillRateAndAssignmentCO.java:357)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:799)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(OAPageLayoutHelper.java:1118)
at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(OAPageLayoutBean.java:1579)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:995)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:961)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:816)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormRequest(OAFormBean.java:395)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:995)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:961)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:816)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(OABodyBean.java:363)
at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2633)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1659)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:497)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:418)
at OA.jspService(OA.jsp:40)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
at java.lang.Thread.run(Thread.java:534)
## Detail 0 ##
java.sql.SQLException: ORA-01400: cannot insert NULL into ("PA"."PA_JOB_BILL_RATE_OVERRIDES"."JOB_ID")
ORA-06512: at line 1
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:289)
at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:583)
at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1983)
at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:1141)
at oracle.jdbc.driver.OracleStatement.executeNonQuery(OracleStatement.java:2154)
at oracle.jdbc.driver.OracleStatement.doExecuteOther(OracleStatement.java:2036)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2880)
at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:622)
at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:698)
at oracle.jbo.server.OracleSQLBuilderImpl.doEntityDML(OracleSQLBuilderImpl.java:371)
at oracle.jbo.server.EntityImpl.doDML(EntityImpl.java:5108)
at tcsl.oracle.apps.pa.jobBillRateAndAssignment.schema.server.JobBillRateEOImpl.doDML(JobBillRateEOImpl.java:124)
at oracle.jbo.server.EntityImpl.postChanges(EntityImpl.java:4015)
at oracle.apps.fnd.framework.server.OAEntityImpl.postChanges(OAEntityImpl.java:1676)
at oracle.jbo.server.DBTransactionImpl.doPostTransactionListeners(DBTransactionImpl.java:2694)
at oracle.jbo.server.DBTransactionImpl.postChanges(DBTransactionImpl.java:2540)
at oracle.jbo.server.DBTransactionImpl.commitInternal(DBTransactionImpl.java:1783)
at oracle.jbo.server.DBTransactionImpl.commit(DBTransactionImpl.java:1976)
at oracle.apps.fnd.framework.server.OADBTransactionImpl.commit(OADBTransactionImpl.java:680)
at tcsl.oracle.apps.pa.jobBillRateAndAssignment.server.jobBillRateAndAssignmentAMImpl.saveJobAssignmentDetails(jobBillRateAndAssignmentAMImpl.java:772)
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:324)
at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(OAUtility.java:189)
at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(OAUtility.java:152)
at oracle.apps.fnd.framework.server.OAApplicationModuleImpl.invokeMethod(OAApplicationModuleImpl.java:721)
at tcsl.oracle.apps.pa.jobBillRateAndAssignment.webui.jobBillRateAndAssignmentCO.processFormRequest(jobBillRateAndAssignmentCO.java:357)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:799)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(OAPageLayoutHelper.java:1118)
at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(OAPageLayoutBean.java:1579)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:995)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:961)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:816)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormRequest(OAFormBean.java:395)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:995)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:961)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:816)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(OABodyBean.java:363)
at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2633)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1659)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:497)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:418)
at OA.jspService(OA.jsp:40)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
at java.lang.Thread.run(Thread.java:534)
java.sql.SQLException: ORA-01400: cannot insert NULL into ("PA"."PA_JOB_BILL_RATE_OVERRIDES"."JOB_ID")
ORA-06512: at line 1
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:289)
at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:583)
at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1983)
at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:1141)
at oracle.jdbc.driver.OracleStatement.executeNonQuery(OracleStatement.java:2154)
at oracle.jdbc.driver.OracleStatement.doExecuteOther(OracleStatement.java:2036)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2880)
at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:622)
at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:698)
at oracle.jbo.server.OracleSQLBuilderImpl.doEntityDML(OracleSQLBuilderImpl.java:371)
at oracle.jbo.server.EntityImpl.doDML(EntityImpl.java:5108)
at tcsl.oracle.apps.pa.jobBillRateAndAssignment.schema.server.JobBillRateEOImpl.doDML(JobBillRateEOImpl.java:124)
at oracle.jbo.server.EntityImpl.postChanges(EntityImpl.java:4015)
at oracle.apps.fnd.framework.server.OAEntityImpl.postChanges(OAEntityImpl.java:1676)
at oracle.jbo.server.DBTransactionImpl.doPostTransactionListeners(DBTransactionImpl.java:2694)
at oracle.jbo.server.DBTransactionImpl.postChanges(DBTransactionImpl.java:2540)
at oracle.jbo.server.DBTransactionImpl.commitInternal(DBTransactionImpl.java:1783)
at oracle.jbo.server.DBTransactionImpl.commit(DBTransactionImpl.java:1976)
at oracle.apps.fnd.framework.server.OADBTransactionImpl.commit(OADBTransactionImpl.java:680)
at tcsl.oracle.apps.pa.jobBillRateAndAssignment.server.jobBillRateAndAssignmentAMImpl.saveJobAssignmentDetails(jobBillRateAndAssignmentAMImpl.java:772)
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:324)
at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(OAUtility.java:189)
at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(OAUtility.java:152)
at oracle.apps.fnd.framework.server.OAApplicationModuleImpl.invokeMethod(OAApplicationModuleImpl.java:721)
at tcsl.oracle.apps.pa.jobBillRateAndAssignment.webui.jobBillRateAndAssignmentCO.processFormRequest(jobBillRateAndAssignmentCO.java:357)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:799)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(OAPageLayoutHelper.java:1118)
at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(OAPageLayoutBean.java:1579)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:995)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:961)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:816)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormRequest(OAFormBean.java:395)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:995)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:961)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:816)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(OABodyBean.java:363)
at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2633)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1659)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:497)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:418)
at OA.jspService(OA.jsp:40)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
at java.lang.Thread.run(Thread.java:534) -
How to extract data using xml datatype
Hi,
I tried the following example using xml data type , but not getting the required output.
could you please correct the query so as to get the required one
CREATE TABLE TEST.EMP_DETAIL
EMPNO NUMBER,
ENAME VARCHAR2(32 BYTE),
EMPDETAILS SYS.XMLTYPE
Insert into EMP_DETAIL
(EMPNO, ENAME, EMPDETAILS)
Values
(7, 'Martin', XMLTYPE('<Dept>
<Emp Empid="1">
<EmpName>Kevin</EmpName>
<Empno>50</Empno>
<DOJ>20092008</DOJ>
<Grade>E3</Grade>
<Sal>3000</Sal>
</Emp>
<Emp Empid="2">
<EmpName>Coster</EmpName>
<Empno>60</Empno>
<DOJ>01092008</DOJ>
<Grade>E1</Grade>
<Sal>1000</Sal>
</Emp>
<Emp Empid="3">
<EmpName>Samuel</EmpName>
<Empno>70</Empno>
<DOJ>10052008</DOJ>
<Grade>E2</Grade>
<Sal>2530</Sal>
</Emp>
<Emp Empid="4">
<EmpName>Dev</EmpName>
<Empno>80</Empno>
<DOJ>10032007</DOJ>
<Grade>E2</Grade>
<Sal>1200</Sal>
</Emp>
</Dept>
'));I need to get the record for Empid="2"
So tried the following query with no expected o/p
SELECT a.empno,a.ename,a.empdetails.extract('//Dept/Emp/EmpName/text()').getStringVal() AS "EmpNAME",
a.empdetails.extract('//Dept/Emp/Empno/text()').getStringVal() AS "EMPNumber",
a.empdetails.extract('//Dept/Emp/DOJ/text()').getStringVal() AS "DOJ",
a.empdetails.extract('//Dept/Emp/Grade/text()').getStringVal() AS "Grade",
a.empdetails.extract('//Dept/Emp/Sal/text()').getStringVal() AS "Salary",
a.empdetails.extract('//Dept/Emp[@Empid="2"]').getStringVal() AS "ID",
a.empdetails.extract('//Dept/Emp[EmpName="Coster"]').getStringVal() AS "CHK"
FROM emp_detail a
where empno=7
AND a.empdetails.existsNode('//Dept/Emp[@Empid="2"]') =1thanks..I am not very good at this... But Shouldn't your XML be more like this
SQL> Insert into EMP_DETAIL
2 (EMPNO, ENAME, EMPDETAILS)
3 Values
4 (7, 'Martin', XMLTYPE('<Dept>
5 <Emp>
6 <Empid>1</Empid>
7 <EmpName>Kevin</EmpName>
8 <Empno>50</Empno>
9 <DOJ>20092008</DOJ>
10 <Grade>E3</Grade>
11 <Sal>3000</Sal>
12 </Emp>
13 <Emp>
14 <Empid>2</Empid>
15 <EmpName>Coster</EmpName>
16 <Empno>60</Empno>
17 <DOJ>01092008</DOJ>
18 <Grade>E1</Grade>
19 <Sal>1000</Sal>
20 </Emp>
21 <Emp>
22 <Empid>3</Empid>
23 <EmpName>Samuel</EmpName>
24 <Empno>70</Empno>
25 <DOJ>10052008</DOJ>
26 <Grade>E2</Grade>
27 <Sal>2530</Sal>
28 </Emp>
29 <Emp>
30 <Empid>4</Empid>
31 <EmpName>Dev</EmpName>
32 <Empno>80</Empno>
33 <DOJ>10032007</DOJ>
34 <Grade>E2</Grade>
35 <Sal>1200</Sal>
36 </Emp>
37 </Dept>
38 '));
1 row created.so that you can
SQL> SET LINESIZE 250
SQL> COLUMN EMPNAME FORMAT A20
SQL> COLUMN EMPNUMBER FORMAT A2
SQL> COLUMN DOJ FORMAT A10
SQL> COLUMN GRADE FORMAT A10
SQL> COLUMN SALARY FORMAT A10
SQL> SELECT a.empno,a.ename,a.empdetails.extract('//Dept/Emp[Empid="2"]/EmpName/text()').getStringVal() AS "EmpNAME",
2 a.empdetails.extract('//Dept/Emp[Empid="2"]/Empno/text()').getStringVal() AS "EMPNumber",
3 a.empdetails.extract('//Dept/Emp[Empid="2"]/DOJ/text()').getStringVal() AS "DOJ",
4 a.empdetails.extract('//Dept/Emp[Empid="2"]/Grade/text()').getStringVal() AS "Grade",
5 a.empdetails.extract('//Dept/Emp[Empid="2"]/Sal/text()').getStringVal() AS "Salary"
6 FROM emp_detail a
7 /
EMPNO ENAME EmpNAME EM DOJ Grade Salary
7 Martin Coster 60 01092008 E1 1000Edited by: Karthick_Arp on Apr 30, 2009 2:21 AM -
does anyone know the UK release on O2 for nokia e61i - also does anyone on here know any reviews on it or have tested the phone? is it worth the upgrade from e61 or should i wait to use my upgrade credit for a better handset in 6 months time maybe?Message Edited by mgibbins on 18-May-200710:44 PM
It's all down to subjective opinion of course but as far as mine goes the "i" models are almost never worth the money if you own the first generation handset. The changes they make to the phones always seem to be in this grey area where the changes that have been made are changes you wish you had such as corrections, adaptions and such that make the phone better the second time around, but they are never enough to warrant paying again for the i model.
As a matter of rule I don't buy them unless its my first handset of that type. They do invoke some passion from people as some folks see it as Nokia using the first generation users of the phone as beta testers.
The E61i will probably have very little going for it that you would want to use an upgrade credit on it if you own the E61 unless your completely happy with it and don't want to move on. I recommend you wait for a better or different phone...like the E90. ;-)
Useful links: Phone firmware update | Nokia support site -
XML generation with SAP data using XML schema - Reg
Hello experts,
My requirement is , SAP( ztable data ) data has to be transferred to third party software folder.Third party using XML so they requires output from SAP in XML format.
For that third party software guys told me that they will give their own XML schema to me.I have to generate XML file with SAP data using their XML schema.
Generating XML file with their Schema should be underlined.
I studied that call transformation statement helps for this.
Even then i don't have clear idea about this topic.
Please brief me about how to use their XML schema to generate XML with my own sap data.
Thanks in advance experts.
Kumarplease try this same program and see it ....
*& Report z_xit_xml_check
REPORT z_xit_xml_check.
TYPE-POOLS: ixml.
TYPES: BEGIN OF t_xml_line,
data(256) TYPE x,
END OF t_xml_line.
DATA: l_ixml TYPE REF TO if_ixml,
l_streamfactory TYPE REF TO if_ixml_stream_factory,
l_parser TYPE REF TO if_ixml_parser,
l_istream TYPE REF TO if_ixml_istream,
l_document TYPE REF TO if_ixml_document,
l_node TYPE REF TO if_ixml_node,
l_xmldata TYPE string.
DATA: l_elem TYPE REF TO if_ixml_element,
l_root_node TYPE REF TO if_ixml_node,
l_next_node TYPE REF TO if_ixml_node,
l_name TYPE string,
l_iterator TYPE REF TO if_ixml_node_iterator.
DATA: l_xml_table TYPE TABLE OF t_xml_line,
l_xml_line TYPE t_xml_line,
l_xml_table_size TYPE i.
DATA: l_filename TYPE string.
PARAMETERS: pa_file TYPE char1024 DEFAULT 'c:temporders_dtd.xml'.
* Validation of XML file: Only DTD included in xml document is supported
PARAMETERS: pa_val TYPE char1 AS CHECKBOX.
START-OF-SELECTION.
* Creating the main iXML factory
l_ixml = cl_ixml=>create( ).
* Creating a stream factory
l_streamfactory = l_ixml->create_stream_factory( ).
PERFORM get_xml_table CHANGING l_xml_table_size l_xml_table.
* wrap the table containing the file into a stream
l_istream = l_streamfactory->create_istream_itable( table = l_xml_table
size = l_xml_table_size ).
* Creating a document
l_document = l_ixml->create_document( ).
* Create a Parser
l_parser = l_ixml->create_parser( stream_factory = l_streamfactory
istream = l_istream
document = l_document ).
* Validate a document
IF pa_val EQ 'X'.
l_parser->set_validating( mode = if_ixml_parser=>co_validate ).
ENDIF.
* Parse the stream
IF l_parser->parse( ) NE 0.
IF l_parser->num_errors( ) NE 0.
DATA: parseerror TYPE REF TO if_ixml_parse_error,
str TYPE string,
i TYPE i,
count TYPE i,
index TYPE i.
count = l_parser->num_errors( ).
WRITE: count, ' parse errors have occured:'.
index = 0.
WHILE index < count.
parseerror = l_parser->get_error( index = index ).
i = parseerror->get_line( ).
WRITE: 'line: ', i.
i = parseerror->get_column( ).
WRITE: 'column: ', i.
str = parseerror->get_reason( ).
WRITE: str.
index = index + 1.
ENDWHILE.
ENDIF.
ENDIF.
* Process the document
IF l_parser->is_dom_generating( ) EQ 'X'.
PERFORM process_dom USING l_document.
ENDIF.
*& Form get_xml_table
FORM get_xml_table CHANGING l_xml_table_size TYPE i
l_xml_table TYPE STANDARD TABLE.
* Local variable declaration
DATA: l_len TYPE i,
l_len2 TYPE i,
l_tab TYPE tsfixml,
l_content TYPE string,
l_str1 TYPE string,
c_conv TYPE REF TO cl_abap_conv_in_ce,
l_itab TYPE TABLE OF string.
l_filename = pa_file.
* upload a file from the client's workstation
CALL METHOD cl_gui_frontend_services=>gui_upload
EXPORTING
filename = l_filename
filetype = 'BIN'
IMPORTING
filelength = l_xml_table_size
CHANGING
data_tab = l_xml_table
EXCEPTIONS
OTHERS = 19.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
* Writing the XML document to the screen
CLEAR l_str1.
LOOP AT l_xml_table INTO l_xml_line.
c_conv = cl_abap_conv_in_ce=>create( input = l_xml_line-data replacement = space ).
c_conv->read( IMPORTING data = l_content len = l_len ).
CONCATENATE l_str1 l_content INTO l_str1.
ENDLOOP.
l_str1 = l_str1+0(l_xml_table_size).
SPLIT l_str1 AT cl_abap_char_utilities=>cr_lf INTO TABLE l_itab.
WRITE: /.
WRITE: /' XML File'.
WRITE: /.
LOOP AT l_itab INTO l_str1.
REPLACE ALL OCCURRENCES OF cl_abap_char_utilities=>horizontal_tab IN
l_str1 WITH space.
WRITE: / l_str1.
ENDLOOP.
WRITE: /.
ENDFORM. "get_xml_table
*& Form process_dom
FORM process_dom USING document TYPE REF TO if_ixml_document.
DATA: node TYPE REF TO if_ixml_node,
iterator TYPE REF TO if_ixml_node_iterator,
nodemap TYPE REF TO if_ixml_named_node_map,
attr TYPE REF TO if_ixml_node,
name TYPE string,
prefix TYPE string,
value TYPE string,
indent TYPE i,
count TYPE i,
index TYPE i.
node ?= document.
CHECK NOT node IS INITIAL.
ULINE.
WRITE: /.
WRITE: /' DOM-TREE'.
WRITE: /.
IF node IS INITIAL. EXIT. ENDIF.
* create a node iterator
iterator = node->create_iterator( ).
* get current node
node = iterator->get_next( ).
* loop over all nodes
WHILE NOT node IS INITIAL.
indent = node->get_height( ) * 2.
indent = indent + 20.
CASE node->get_type( ).
WHEN if_ixml_node=>co_node_element.
* element node
name = node->get_name( ).
nodemap = node->get_attributes( ).
WRITE: / 'ELEMENT :'.
WRITE: AT indent name COLOR COL_POSITIVE INVERSE.
IF NOT nodemap IS INITIAL.
* attributes
count = nodemap->get_length( ).
DO count TIMES.
index = sy-index - 1.
attr = nodemap->get_item( index ).
name = attr->get_name( ).
prefix = attr->get_namespace_prefix( ).
value = attr->get_value( ).
WRITE: / 'ATTRIBUTE:'.
WRITE: AT indent name COLOR COL_HEADING INVERSE, '=',
value COLOR COL_TOTAL INVERSE.
ENDDO.
ENDIF.
WHEN if_ixml_node=>co_node_text OR
if_ixml_node=>co_node_cdata_section.
* text node
value = node->get_value( ).
WRITE: / 'VALUE :'.
WRITE: AT indent value COLOR COL_GROUP INVERSE.
ENDCASE.
* advance to next node
node = iterator->get_next( ).
ENDWHILE.
ENDFORM. "process_dom
reward points if it is use fulll ....
Girish -
How to delete large data using XML batch in chunk
public void DeleteListItems(SPWeb web, SPList list)
RMPExceptionManager.LogErrorInFile("--------Delete List Items from : " + list + " starts--------", true);
try
web.AllowUnsafeUpdates = true;
StringBuilder builder = new StringBuilder();
builder.Append("<?xml version=\"1.0\" encoding=\"UTF-8\"?><Batch>");
string s = "<Method>" +
"<SetList Scope=\"Request\">" + list.ID + "</SetList>" +
"<SetVar Name=\"ID\">{0}</SetVar>" +
"<SetVar Name=\"Cmd\">Delete</SetVar>" +
"</Method>";
foreach (SPListItem item in list.Items)
builder.Append(string.Format(s, item.ID.ToString()));
builder.Append("</Batch>");
web.ProcessBatchData(builder.ToString());
web.AllowUnsafeUpdates = false;
RMPExceptionManager.LogErrorInFile("--------Delete List Items from : " + list + " ends--------", true);
catch (Exception ex)
RMPExceptionManager.LogErrorInFile("--------delete List Items exception--------", bIsLogEnabled);
RMPExceptionManager.LogErrorInFile(ex.Message, bIsLogEnabled);
RMPExceptionManager.LogErrorInFile(ex.Source, bIsLogEnabled);
RMPExceptionManager.LogErrorInFile(ex.StackTrace, bIsLogEnabled);
RMPExceptionManager.LogErrorInFile("-------------------------------------------------------", bIsLogEnabled);
I am using the above code to delete the data from list.
currently its not deleting properly as its executing huge xml batch.
How can I change the above code in to chunk of 1000 so that I can delete 25000 records easily?I tried the below code but its not working properly.
first time when it comes in do loop its deleting the records one by one and not using batch of 1000.
after some time(aprox 30 min) it starts executeing batch of 1000 but not deleting whole records. out of 10,000 its deleting hardly 7000 then stops the delete process and jumps on next step.
I am not getting why its showing this behaivour ? Is it time out after some time in xml batch? but its still executing the other code after comming out of delete function.
web.AllowUnsafeUpdates = true;
StringBuilder builder = new StringBuilder();
builder.Append("<?xml version=\"1.0\" encoding=\"UTF-8\"?><Batch>");
string s = "<Method>" +
"<SetList Scope=\"Request\">" + list.ID + "</SetList>" +
"<SetVar Name=\"ID\">{0}</SetVar>" +
"<SetVar Name=\"Cmd\">Delete</SetVar>" +
"</Method>";
// Query to get the unprocessed items.
SPQuery query = new SPQuery();
query.RowLimit = 1000;
query.Query = "<Where></Where>";
do
SPListItemCollection remainingItems = list.GetItems(query);
foreach (SPListItem item in remainingItems)
builder.Append(string.Format(s, item.ID.ToString()));
builder.Append("</Batch>");
web.ProcessBatchData(builder.ToString());
query.ListItemCollectionPosition = remainingItems.ListItemCollectionPosition;
RMPExceptionManager.LogErrorInFile("--------Delete batch remaining : " + remainingItems.ListItemCollectionPosition + " --------", true);
} while (query.ListItemCollectionPosition != null);
any body got this type of issue?
is there any problem in above code?
is there any other way to do this deletion process in better way? -
Hi All,
I want to write a program which keeps a look at a particular folder and when ever there is a update or a new file added in the folder it should push that file automatically to a file server using ftp. if any one has the code to do similar kind of thing please pass it to me. i am a novice in java!! Thanks in advanceHi All,
I want to write a program which keeps a look at a
particular folder and when ever there is a update or
a new file added in the folder it should push that
file automatically to a file server using ftp.This is a relatively trivial program to write, but is there a reason you're wanting to do this in Java, and not with - say - a cron job and a shell script?
if any one has the code to do similar kind of thing please
pass it to me. i am a novice in java!! If you're a novice, I recommend you start with something even simpler. Check out the tutorials on this site, and get some practice before you start writing network applications.
Thanks in advanceIf you insist on writing this yourself in Java, look at the java.io.* package and the Timer class. You should also consider using the Jakarta Commons net packages in order to make life MUCH easier when it comes to FTP. -
This question was posted in response to the following article: http://help.adobe.com/en_US/Director/11.5/UsingScripting/WScf09ce35f85d76b4-31c73ea211d558 551a5-7ffb.html
where is the samples XML parser & JScript ?
-
When to use XML file Datasource
Hi,
I would like to know under what scenario we have to use the XML file as a datasource?
Is it possibe to extract data from a email.
The client is getting data in email everyday and is it possible to upload this data directly from the email.
or do i have to convert this data in the form of a .csv flat file and upload.
please give an idea if i can use the XML file upload facility provided in BI, whether i can use this in my
scenario.
regards,
manHello Man,
Please see this doc for sending XML data to BW
[How to Send XML Data to BW|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/21d8aa90-0201-0010-5e83-a3798b9a5ee0]
[How to Push Data into BW from XI|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/18dfe590-0201-0010-6b8b-d21dfa9929c9]
[SAP BW Data Retrieval|http://www.sap-press.de/download/dateien/939/sappress_sap_bw_data_retrieval.pdf]
For Transfering data using XML see this SAP Help Page [SOAP-Based Transfer of Data |http://help.sap.com/saphelp_nw04/helpdata/en/fd/8012403dbedd5fe10000000a155106/content.htm]
Thanks
Chandran -
Breaking up data in a remote object
Currently I have a chart that gets its data using a remote
object connection. The chart currently shows a months worth of
data. Now I need to break that monthly data into weekly data. The
customer would rather have the data spread acroos four weekly
charts instead of just one monthly chart. The customer would then
just click click a 'Next' or 'Previous' button to cycle through the
charts.
I know that I just change the function (CFC) that calls for
the data to only return a weeks worth of data, but I don't want to
make a separate data call every time the user clicks 'Next' or
'Previous'
Is there a way to grab the whole month's data set and then
divide it into weekly data sets within the app?Okay I figured this one out. If I add a hSlider with two
thumbs I can set the thumbs with just a couple of functions.
Basically when the user clicks either button a function is called
that passes in a predetermined value of how many tick marks to
move.
The HSlider has a property called 'values' that holds the
positions of all the thumbs. Using some simple functions they can
easily be manipulated.
Setting the slider's visible property to 'false' will keep
the navigation focused on just the buttons. -
Serialising data objects using XML
Does the support for XML in wl6.0 mean that java data objects can be serialized using xml entirely within weblogic (currently we use a 3rd party product, and are hoping to remove this if possible)?
What about SOAP?
Isn't that what SOAP does - marshals and unmarshals between objects and XML
You can use SOAP from Java, or C++ or whatever.
Contrary to a commonly held perception, SOAP doesn't require remote
transmission of the serialized XML datastream.
Where is the SOAP support for WLS6 ? I heard it was separately
downloadable?
"Alex Thomas" <[email protected]> wrote in message
news:3a532681$[email protected]..
>
With some limitations, yes, if you are starting from a DTD - see the docsfor the WebLogic DTD2Parser tool which generates a high-speed custom parser
for a given DTD.
>
This tool anticipates the JAXB standard (aka Data Binding, formerlyProject Adelard) - see http://java.sun.com/xml/ - which is due fairly
shortly AFAIK.
>
If you were wanting to start with arbitrary Java classes and serializethem to XML you'd have to wait longer unfortunately, though there are some
implementations around, e.g. http://www.wutka.com/jox.html. This would then
correspond to marshalling if the objects were parameters to an RPC of some
kind.
>
cheers
(another) alex
"alex" <[email protected]> wrote:
What I should have said is: can wl6 automatically populate java objects
from xml and vice versa? I believe this is called 'data marshalling and
unmarshalling', but I cannot find references to this in the doco.
>>
>
Maybe you are looking for
-
How can I store ALL cache files in ONE place? i.e. in one folder
Firefox 28.0 WIN xp I would like all the cache files to be maintained in one single folder and not spread over multiple folders in a directory structure (as it currently operates). (current cache location) C:\Documents and Settings\xxx\Local Settings
-
hi guys In my report, I want to enter percentage out of the total sales where is next to each of the column. If I use Afterrange, it just added at the end. What I want is possible???? If so, could you please suggest me a kind of documents or
-
Windows vista not recognizing internet on my mac
I just recently installed boot camp and windows vista. Windows opens fine and seems everything is okay but it does not see my wifi (or any other network for that matter). I plugged in an Ethernet cable to my modem and it doesn't recognize that either
-
Can no longer connect to toll-free 888, 866, 877 numbers from iPhone
Why not call the non-toll free numbers. It costs the same. Some toll free numbers have territorial limits and sometimes cell phones, even though they are in the proper territory, the way that they are routed sometimes cause toll free numbers to rejec
-
Panasonic Plasma TV repair - Geek Squad
Hello community - Two years ago I splurged, and purchased a beautiful 55" Panasonic plasma TV. I am frugal, and do not do this often, so I also decided to protect it with a 4 year Black Tie Geek Squad warranty. Been very pleased with it, up until 20