AJAX Data Service Sample
Hi all,
The LiveCycle Data services Developer's Guide mentions an
AJAX Data Service sample that comes with the LiveCycle Data
Services installation. The doc says that the sample is called
inventory - however I cannot find it on my install (trial
downloaded from Adobe's web site).
Am I looking at the wrong place? If so would anyone know
where that sample can be found?
Thanks in advance for your help.
- Dan
I find a (reasonably) elegant workaround which is to add a transient property in the "public" sub class of the value type - see below - I havent tested it much so not sure if it will work adequateky in all circumstances
package services.listeningpost
public class User_type extends _Super_User_type
public function get xmlSettings():XML
return new XML(settings);
public function set xmlSettings(object:XML):void
settings = object.toXMLString();
Similar Messages
-
Looking for Active Data Service samples with RDBMS change notification fire
Hi,
I am looking for samples/examples of Active Data Service when a server side event, like RDBMS change notification got triggered.
The ADS samples that I found so far are:
- Twitter http://www.oracle.com/technetwork/developer-tools/jdev/learnmore/65-activedataservicestwittersample-191314.pdf
- http://adfwithejb.blogspot.com/2012/12/active-data-service-with-active-image.html
- http://adfwithejb.blogspot.com/2012/12/active-data-serivce-with-data.html
But these samples do not demonstrate how RDBMS change notification got triggered got triggered. The last two samples have a Runnable class that simulate the triggering, and the Twitter example is twitter stream notification.
Please shed some lights on Active Data Service with RDBMS change notification got triggered.
Thanks
-MinaHi Mina,
Check this 2 resources, first a presentation made at OOW by Lucas Jellema: http://www.slideshare.net/lucasjellema/push-to-the-limit-rich-and-proactive-user-interfaces-with-adf-oracle-open-world-2011
second an interesting forum thread around the the topic: ADF BC and the Active Data Service using af:table from what I know this is still valid as of today.
After reviewing the topic there is also one more link that address this topic:
http://technology.amis.nl/2012/06/18/notifying-adf-applications-of-database-changes-fast-and-lean-using-database-query-result-change-notification-part-one/?utm_source=rss&utm_medium=rss&utm_campaign=notifying-adf-applications-of-database-changes-fast-and-lean-using-database-query-result-change-notification-part-one
Thanks,
JC
Edited by: Juan Camilo Ruiz on Jan 9, 2013 2:57 PM -
AdvancedDataGrid compatability with LiveCycle Data Services
Hi,
I have a J2EE project which I have integrated with Flex3,
using the setup provided by your samples.jar in the LiveCycle data
services download - e.g. copied the data from web.xml,
flex-config.xml etc.
Every thing works fine until I put an AdvancedDataGrid
element into a page. I get the error:
Could not resolve <mx:AdvancedDataGrid> to a component
implementation.
I resolved this by copying over the datavisualization.swc
into the libs folder of my app. However then I got the error:
unable to load SWC datavisualization.swc
I then copied over the jars provided by Flex3.0 into the
WEB-INF/flex/jars section of my project, overwriting any old ones
provided by LiveCycle Data services sample. I also updated
flex-config.xml to provide a
<locale><locale-element>en_US</locale-element></locale>
element..
Then, when trying to load the page i got: the following
error:
Exception java.lang.NoSuchMethodError
flex2.compiler.CompilerSwcContext
This is method exists in the old mxmlc.jar file that i
overwrote with the one provided by Flex sdk 3.0 and it is called
from the flex-webtier.jar provided by LiveCycle Data Services.
Am I right in thinking I can't have an advanced data grid at
the moment? Or do i need a different flex-webtier.jar?
Thanks
MattHi,
Could you please file a bug on
http://bugs.adobe.com/flex/
in which you describe your configuration and your installer
settings. Please attach your .log file as well, which can be found
in [your Workspace]\.metadata\.log .
Thanks,
Catalin -
Flex Data Services JOTM, JTA and JMX downloads
I am not a Java developer. I am an Information Architect/UI
Designer and up until a few months ago, I designed GUIs using MS
Studio.Net -- Tomcat is a little different IIS, to say the least.
=)
I have downloaded the trial software of Flex Builder 2 and
Flex Data Services to test it with intent to purchase.
I was getting real happy with Flex Builder 2. Breezing
through the "Getting Started" and all the tutorials. Absolutely
Love it.
Then along comes Flex Data Services. This application has
bought me to a screeching halt.
I've downloaded the files according to the instructions at:
http://www.adobe.com/support/documentation/en/flex/2/install.html#flexj2ee.
I placed the files in my webapps directory running on tomcat.
However, according to the instructions at:
http://www.adobe.com/support/documentation/en/flex/2/install.html#tomcat,
I need to download additional applications in order to
correctly use FDS. I have tried to download the JOTM 2.0.10.tgz
from
http://forge.objectweb.org/project/download.php?group_id=19&file_id=3926
without success. When I try to unzip the file (I am running
Windows XP Professional), I get the following error:
"Error reading header after processing 0 entries."
I've tried to download three different versions of JOTM, no
luck. Our Java developer suggested that I save the "tar" file as a
"zip" file and try to open it after download. However, when I try
to open the archive in WinZip it returns this error:
"Cannot open file: it does not appear to be a valid archive.
If you downloaded this file, try downloading the file again."
Both of these errors occur when trying to open the downloaded
JOTM 2.0.10.tgz and JOTM 2.0.8.tgz files.
How can I get these applications? Has anyone had any success
in downloading these files from:
http://forge.objectweb.org/project/showfiles.php?group_id=19&release_id=1024
The downloaded archive files are empty. I can not run any of
the Data Service samples.
When I tried at:
http://localhost:8080/samples/dataservice/flexcab/flexcabDispatcher.mxml
A service error prompt returns: "Unable to access
UserTransaction in Dataservice".
I'm assuming this is because the JOTM (et. al) is not on my
box, because the archive is empty when I try to open it in WinZip.
Also, while I was reading the installation instructions for
Tomcat at:
http://www.adobe.com/support/documentation/en/flex/2/install.html#tomcat
it seems pretty complicated for a non-Java programmer to
understand. I asked one of our 6-year veteran Java developers here
to help me with this and he said it was a pretty a complicated
process for someone w/o Java programming experience. I thought it
was geared towards front-end developers. But he did say that if I
can't download the JOTM, I won't be able to do whatever it is that
Flex Data Services is supposed to do. I say the latter because I am
still in the "Getting Started" manual going through the last of the
tutorials (which is the Flex Data Services distributed application
tutorial) before I start reading "Using Flex", so I'm not really
sure what lessons I will be doing that require FDS to work
correctly on my box.
Do I really need the FDS to build interactive applications in
Flex Builder?
I appreciate your answers. Thanks in advance.I agree with you about the process of getting FDS installed
and working. I recommend that you try Christophe Coenraets FDMS
tutorial. The JOTM files are in "tar" format, and so I think you'll
have to extract them using a "tar" utility. This is included with
any Unix variant, and so I asked someone at work to extract the
files; on Windows I think you'll have to find a free "tar" program.
I downloaded jotm-2.0.10.tar from the JOTM Sourceforge. Use
parameters "-xf" if the tar file is not compressed, or "-zxf" if it
is compressed. Good luck! -
Data Services for CairgnormStore sample
I am trying to run CairngormStore for Flex 2 end-to-end.
It looks like the only deployment/configuration problem left
is the configuration of Data Services.
What is already done:
- Flex 2 SDK is installed
- Flex 2 builder is up and running
- Flex 2 Data Service Express is installed with the option
"JRun"
- Cairngorm Library is installed
- Project CairngormStore_2 is created in FlexBuilder (
Project type "Flex Data Service")
- the path to the Cairngorm Library is defined
- the path to the JRun is defined
- CairngormStore is build OK
- JRun starts successfully
Attempt to run the CairngormStore results in run-time alert
message "Products can't be retrieved".
Obviously my deployemnt /configuration of Data Services on
the client and server side is not complete.
Given pretty involved combination of declarative
configuration parameters and configuration files it is
not easy to figure out what the problem is and how to cure
it.
Any hint, advise will be greately appreciated.matamel, thanks for the reply.
The point is that there the app does not crash, so there is
not much information in the log.
First, after the execution of
public var model : ShopModelLocator =
ShopModelLocator.getInstance();
there is a log message: "didn't find all selected items"
and later after execution of
CairngormEventDispatcher.getInstance().dispatchEvent( new
CairngormEvent( GetProductsEvent.EVENT_GET_PRODUCTS ) );
there is a message issued by
Alert.show( "Products could not be retrieved!" );
So there is not much to analyze so far. -
Unable to create records in database using PHP Data Service
Hello, I've been stuck on this for a few days and search up and down for this on the net, no response I've found has worked, so I come to you...
Here are the steps I've taken, I think it's pretty standard
1. I have a macbook pro running osx 10.7.3
2. I installed MAMP all default (I've acually reinstalled this because someone suggested this might fix it)
3. Thru phpMyAdmin I created a database called my_test
4. In that database I created a table, this is the export of that table: (I've also tried this with InnoDB which is the default)
CREATE TABLE `customer` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(50) NOT NULL,
`email` varchar(150) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `id` (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
5. I created a new Flx Project (Running Flash Builder 4.5.1 Premium)
Project Name: PHPTest
Application Type: Desktop (Although I've done the same thing with Web and got the same results)
>> Next
Application Server Type: PHP
Web Root: /Applications/MAMP/htdocs/
URL Root: http://localhost:8888/
Clicked 'Validate Configuration' and that worked
Output Folder: /Applications/MAMP/htdocs/PHPService (default by Flash Builder)
>> Finished
6. On the Data/Services tab on the bottom I click 'Connect to Data/Service...'
Select 'PHP'
>> Next
Select 'Click here to generate a sample'
Select 'Generate from database' radio button
Username: root
Password: root (default for MAMP)
Host name: localhost
Server port: 8889 (default for MAMP MySQL port, the HTTP port default is 8888 which in both cases seem to work but every video I've seen that uses MAMP on youtube uses 8889)
Database: my_test
Click 'Test Connection' (works)
Table: customer
Primary Key: id (this field is greyed out and Flash Builder selects 'id' which it figures out from the SQL table)
>> Click OK
7. Then if I don't have the Zend Framework folder in my /Applications/MAMP/htdocs/ folder it tells me its going to create that and I say alright. Then Flash Builder says stuff about how this is really only for testing and not production server ready and I say alright.
8. Then it takes me back to the Form from Step 6 when I get the chance to select 'Click here to generate a sample'
These fields are now filled with this data automaticly:
PHP Class: /Applications/MAMP/htdocs/PHPTest/services/CustomerService.php
Service name: CustomerService
Service package: services.customerservice
Data type package: valueObjects
>> Click Next (shows all the functions that will be now availible)
>> Click Finished (End of the forms and it opens Dreamweaver to the php file it created CustomerService.php which I have no need to edit so I close that down)
9. Back in Flash Builder I switch to design view and drag a datagrid onto the big white area in the middle, whatever that is called.
10. Then below in Data/Services tab on the bottom I click drag the function 'GetAllCustomer' on top of the datagrid.
I say yes to rebound and click ok and the view of the datagrid is updated with the colums from the 'customer' table in mySQL.
(Now let me say that when I hit save and compile this, if I actually had records in this table that I insert thru phpMyAdmin, this does show in the datagrid. So for the whole CRUD thing I am able to get the R which is Read)
11. Now going back to the design view in Flash Builder I will create a form to create records in the table... (I guess this isn't really a step)
12. In the Data/Service tab on the bottom I select 'createCustomer' function and then there is an icon called 'Generate Form' that looks like a white piece of paper with a gear on the bottom of it.
13. This opens up a new form and since I don't have a crazy bunch of fields in my table I just click Finished (If you click next you can specify which fields you want to exclude from the form but this time I don't need to)
14. This actually creates 2 forms if you look at the code, the second just shows the return type from when you click 'CreateCustomer' button on the first form. Because they overlap in design view I drag the form out of the way so you can see the input form, the return form, and the datagrid
15. Then I save and compile...
(Also if your actually reading this I didn't remove the id form field, I get the same result either way, but if you do remove the form field in the code/design you also have to update the button function to not deal with the id before it gets sent off to the php page since in this case the MySQL table is set to auto_increment the id, sorry this doesn't make much sence but this little area doesn't matter much either way)
16. Now fill in whatever data you want for name and email, try differnt numbers in the id field like 0, nothing, 1, 1000 and click 'CreateCustomer'
(For me nothing happens, no return is put in the return field, no error pops up and the datagrid is not updated with the new record, also going over to phpMyAdmin and checking out the table browse doesn't show any changes either, I know the button is calling the function because if I add a state change in that function it changes, it would seem that the line:
createCustomerResult.token = customerService.createCustomer(customer2); doesn't do anything)
So any idea what is wrong here, I'm convenced it's something stupid easy simple I just can't see it.In case you need more info, here is a code dump on a mxml project that has this problem:
<?xml version="1.0" encoding="utf-8"?>
<s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
xmlns:customerservice="services.customerservice.*"
xmlns:valueObjects="valueObjects.*"
currentState="State1">
<fx:Script>
<![CDATA[
import mx.controls.Alert;
import mx.events.FlexEvent;
protected function dataGrid_creationCompleteHandler(event:FlexEvent):void
getAllCustomerResult.token = customerService.getAllCustomer();
protected function button_clickHandler(event:MouseEvent):void
var customer2:Customer = new Customer();
customer2.id = parseInt(idTextInput.text);
customer2.name = nameTextInput.text;
customer2.email = emailTextInput.text;
currentState = "Test";
createCustomerResult.token = customerService.createCustomer(customer2);
]]>
</fx:Script>
<s:states>
<s:State name="State1"/>
<s:State name="Test"/>
</s:states>
<fx:Declarations>
<s:CallResponder id="getAllCustomerResult"/>
<customerservice:CustomerService id="customerService"
fault="Alert.show(event.fault.faultString + '\n' + event.fault.faultDetail)"
showBusyCursor="true"/>
<valueObjects:Customer id="customer"/>
<s:CallResponder id="createCustomerResult"/>
<!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>
<s:DataGrid id="dataGrid" includeIn="State1" x="330" y="10" width="392"
creationComplete="dataGrid_creationCompleteHandler(event)" requestedRowCount="4">
<s:columns>
<s:ArrayList>
<s:GridColumn dataField="id" headerText="id"></s:GridColumn>
<s:GridColumn dataField="name" headerText="name"></s:GridColumn>
<s:GridColumn dataField="email" headerText="email"></s:GridColumn>
</s:ArrayList>
</s:columns>
<s:typicalItem>
<fx:Object id="id1" email="email1" name="name1"></fx:Object>
</s:typicalItem>
<s:AsyncListView list="{getAllCustomerResult.lastResult}"/>
</s:DataGrid>
<s:Form includeIn="State1" defaultButton="{button}">
<s:FormItem label="Id">
<s:TextInput id="idTextInput" text="{customer.id}"/>
</s:FormItem>
<s:FormItem label="Name">
<s:TextInput id="nameTextInput" text="{customer.name}"/>
</s:FormItem>
<s:FormItem label="Email">
<s:TextInput id="emailTextInput" text="{customer.email}"/>
</s:FormItem>
<s:Button id="button" label="CreateCustomer" click="button_clickHandler(event)"/>
</s:Form>
<s:Form includeIn="State1" x="0" y="204">
<s:FormItem label="CreateCustomer">
<s:TextInput id="createCustomerTextInput" text="{createCustomerResult.lastResult as int}"/>
</s:FormItem>
</s:Form>
</s:WindowedApplication> -
New tutorials posted for Text Data Processing on Data Services 4.0
Check out the 3 new Text Data Processing tutorials available at http://wiki.sdn.sap.com/wiki/display/BOBJ/TextDataProcessing within the Product Tutorials section.
-- Introduction to Entity Extraction Transform: this 15-minute demo provides an overview of the Text Data Processing Entity Extraction transform for Data Services 4.0. The Entity Extraction transform enables you to process unstructured text, such as web pages, news articles, maintenance logs, text from a spreadsheet, or even from a database column, to extract key pieces of information that you can use in query and reporting.
-- Using Text Data Processing Blueprints: this 6-minute demo explains how to get up and running with TDP quickly using a series of jobs contained in a blueprint. A blueprint is a sample end-to-end solution available on SAP Community Network.
-- Creating an Extraction Dictionary: this 13-minute demo explains how to create an Extraction Dictionary, which can be used to customize a TDP Entity Extraction transform to improve results.Thanks for sharing your use case. I have a few questions if you don't mind:
1) What file formats are typically found within these compressed containers? For example, html, xml, txt, pdf, MS Office, etc.
2) Do these compressed containers ever have other embedded compressed containers within them? For example, a zip file containing other zip files within it.
3) If the intention is to process document files, do any of the document files have other document formats embedded/nested within them? For example, a MS Word document with a spreadsheet embedded within it. -
Problems on Windows 7 Professional 64 with PHP data service
I've created a data service using PHP in a PHP Eclipse project and I'm trying to connect to it from my new Flash project. When I try to create a custom data type via the Configure Return Type dialog, "Auto detect the return type from sample data" radio button, I get the following error:
There was an error while invoking the operation. Check your operation inputs or server code and try invoking the operation again.
Reason:
Warning: mysqli::mysqli() [mysqli.mysqli]: (HY000/2003): Can't connect to MySQL server on 'localhost' (10061) in C:\Users\davidk\workspace\php-global-includes\mysqlAccess.inc.php on line 11
/0/onStatusÿÿÿÿ �SIflex.messaging.messages.ErrorMessage extendedData faultCode faultDetail faultString rootCause correlationId clientId destination messageId timestamp timeToLive headers body „m …a#0 C:\Zend\ZendServer\share\ZendFramework\library\Zend\Amf\Server.php(550): Zend_Amf_Server->_dispatch('getProductVersi...', Array, 'GetPlayData')#1 C:\Zend\ZendServer\share\ZendFramework\library\Zend\Amf\Server.php(626): Zend_Amf_Server->_handle(Object(Zend_Amf_Request_Http))#2 C:\Zend\Apache2\htdocs\play-debug\gateway.php(69): Zend_Amf_Server->handle()#3 {main} ‚UError instantiating class GetPlayData to invoke method getProductVersions: Error connecting to database server as user via password configured in config_cdna_testdb.php IE83D9958-920E-E203-54BC-E5365BD85289 I5496259E-8C36-AC89-E234-00000D37FD49 I7E8A1BD7-9D60-9329-DBFB-00001B5BE8C7 126823334100
Note that I've tested the GetPlayData class and the getProductVersions() method with some simple "unit testing" code and it works fine when I execute it directly. It just won't run when called from this dialog.
I tried to debug the gateway.php process that is used to do this connecting without much success so far.
Is Windows 7 supported for PHP data service development in this beta release? I'm using Version 4.0 build 253292One more clue: the message from the exception shows that the global variables I'm using to configure the MySQL connection parameters are not set somehow. Maybe I need to upgrade my Zend Framework?
Nope. I upgraded to the latest Zend Framework and it still did not work. The global variables are not working. When I hard coded the connection parameters into the constructor of the GetPlayData class, then it worked fine. I just switched to using define() to create constants instead of using the globals and that worked, too.
It is as if globals set in one include file are not available in another include file. I agree that using them might be a bad programming practice of sorts, but it seems wrong to disallow / not support something that is part of the core language!
So, I don't know if this is a Windows 7 thing or just a general behavior. Globals within the same file seem to work fine still, but not from another include file.
So the answer for me is to not use these cross-include file globals in code that is going to be used from Flash Builder. -
InstantiationException when trying to reference an external jar in my web service sample
Dear all,
I'm working with Weblogic 6.1 SP3 (on NT platform) and, starting from weather
weblogic web service sample, I'm trying to build my first web service sample.
I developed a simple EJB (called OrderManager) that exposes the following functionalities
in its remote:
import com.bosslab.abs.beb.sci.ServiceHeaderVO;
public interface OrderManager extends EJBObject {
public OrderManagerServiceResponseVO
submitOrder(
ServiceHeaderVO header,
OrderManagerServiceVO data) throws Throwable;
the ServiceHeaderVO interface is in another package and it is included in an external
Beb.jar.
This Beb.jar is located under serverclasses in mydomain directory and it is included
in the classpath set in startWeblogic.cmd.
Using wsgen weblogic task & ant I created my WSOrderManager.ear and I deployed
it.
Now no problem testing the EJB (OrderManager) with a simple client (in order to
verify that classpath is correct and also the EJB is running properly).
Also no problem pointing out to this URL "http://localhost:7011/ordermanager/com.bosslab.abs.mediator.OrderManager/com.bosslab.abs.mediator.OrderManager.wsdl"
to see the WSDL of my web service.
But when I run the web service client I got the following error:
Exception in thread "main" ------------- Remote Stack Trace ------------
Server side error:
java.lang.InstantiationException: com.bosslab.abs.beb.sci.ServiceHeaderVO
at weblogic.soap.codec.SimpleSoapEncodingCodec.newInstance(SimpleSoapEncodingCodec.java:198)
at weblogic.soap.codec.SimpleSoapEncodingCodec.decode(SimpleSoapEncodingCodec.java:178)
at weblogic.soap.codec.SimpleSoapEncodingCodec.decode(SimpleSoapEncodingCodec.java:151)
at weblogic.soap.codec.CodecFactory.decode(CodecFactory.java:96)
at weblogic.soap.codec.Operation.read(Operation.java:100)
at weblogic.soap.codec.SoapMessage.readOperation(SoapMessage.java:200)
at weblogic.soap.codec.SoapMessage.read(SoapMessage.java:130)
at weblogic.soap.server.servlet.StatelessBeanAdapter.getInputMessage(StatelessBeanAdapter.java:162)
at weblogic.soap.server.servlet.StatelessBeanAdapter.doPost(StatelessBeanAdapter.java:105)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2546)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2260)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
------------- Local Stack Trace ------------
weblogic.soap.SoapFault:
org.xml.sax.SAXException
at weblogic.soap.codec.FaultOperation.getException(FaultOperation.java:16)
at weblogic.soap.WebServiceProxy.processResult(WebServiceProxy.java:487)
at weblogic.soap.WebServiceProxy.invoke(WebServiceProxy.java:434)
at weblogic.soap.SoapMethod.invoke(SoapMethod.java:186)
at weblogic.soap.wsdl.WebServiceInvocationHandler.invoke(WebServiceInvocationHandler.java:27)
at $Proxy0.submitOrder(Unknown Source)
at StaticWSOrderManagerClient.main(StaticWSOrderManagerClient.java:30)
It seems that there is a problem to instantiate the com.bosslab.abs.beb.sci.ServiceHeaderVO
class included in the Beb.jar, so I thought the problem was related to the classpath
setting, maybe Beb.jar is not set properly in some place ...
To try solving this problem I did these steps:
-> exploded my WSOrderManager.ear
-> created a lib directory and put into it the Beb.jar
so now the ear structure is:
lib/Beb.jar
MediatorOrderManager.jar
META-INF
web-services.war
-> modified the application.xml, adding:
<module>
<java>lib/Beb.jar</java>
</module>
-> modified the Manifest.mf, adding:
Manifest-Version: 1.0
Created-By: 1.3.1_03 (Sun Microsystems Inc.)
Class-Path: lib/Beb.jar
-> regenerate the WSOrderManager.ear
jar cvf WSOrderManager.ear lib MediatorOrderManager.jar ...
-> and redeployed the ear
But after stopping/starting my instance, I got yet the same error when I run my
client.
Could you please help me to understand how solving this problem ?
I thank you in advance
Kind regardsThe WSDL is generated from my web service. I made heavy revisions to my web service which, in turn, affected the resultant WSDL. The changes I made to my web service were almost exclusively related to object substitution. For example, prior to the change I was referencing object A from my web service; after the change, I was referencing object B. The objects that I'm referring to are XMLBeans, if that matters. I can't really describe it more than that without actually showing you the WSDL.
I would post the WSDL file here to allow you to try to create a types jar out of it, but the WSDL exceeds the 30000 character limit for this field. There is no way for me to attach the WSDL to this post. -
hi
i have a problem after installing flashBuilder 4 beta2 .
when i want to create Data/Service with BlazeDs and when i click on button finish
this error shown and I can't do anything with it .
in flashBuilder beta1 it's work perfect .
if any one in thereand know why?
please help me
ERROR: XML parse error : Error on line 1 of documen : cvc-elt.1:Cannot find declaration of element 'model'. Nested exeption:Cannot find declaration of element 'model'.
thanksHi,
Thanks for your feedback
Can you attach your sample project and provide details on the Flash Builder and BlazeDS builds you are using?
Also add your vote to http://bugs.adobe.com/jira/browse/FB-23479 a similar known issue
Thanks,
Balaji
http://balajisridhar.wordpress.com -
Help me about LiveCycle Data Services
Hi all,
I use Flex 3 and BlazeDS server to write my web app. Today, I want use LiveCycle Data Services ES. I have done some steps bellow and I need some guides continue from anyone.
1. Download the LiveCycle Data Services ES from adobe home page (ok).
2. Install it with option is include Tomcat (ok).
... what step continue..?
My project was created with BlazeDS server, and I need place inside LiveCycle Data Services ES that just installed ? Or I must re-create my project with LiveCycle Data Services ES ?
Please guide to me some necessary steps to use LiveCycle Data Services.
Thanks very much.Which file exactly from the lcds samples? I can't find this file in the livedocs nor in the source of the samples.
-
How to setup Data services to use existing zend application
The application I'm working on is going to have views created both in Flex and in PHP. Thus, we want to setup the Zend framework so that it can be used for the PHP part of the application and to display views in the browser. We want to setup the AMF gateway so that it's a service provided through a controller in Zend and with the actual service classes hidden from public view in the application folder, and not like the default now seems to assume that you create a folder in your public webroot where the endpoint and all service classes live.
So the structure we are after is
Zend_AMF endpoint at http://example.com/services/amf
Zend folder structure:
application/controllers/ServiceController.php // the controller that handles all incoming requests, so acts as the gateway.phpI assume
application/services/amf/ // contains the actual service classes, e.g. Users.php, Products.php
public/swf/ // will contain the actual .swf files for the Flex application
the /public/ folder is set to the webroot with /application/ outside the webroot as per the Zend framework recommendations.
I would like to use the Data service introspection to generate the Flex code for the services, however the introspection afaik requires the services to be in the /public/ folder or a subfolder there. So how can I make introspection work for a service that lives in /application/services/amf and is accessed through http://example.com/services/amf ?
Suggestions? links to tutorials?Yes, well hopefully this will be supported in the future. In the mean time, I've noticed that it's only actually when creating the service and the API for it that you need to have the class inside the web root. In order to configure the return types and input types you don't need to go through the standard gateway.php anymore. So, although not ideal, here's how I do it right now:
1. I have set up m zend framework as described in my first post, with my AMF service gateway being a Zend controller and not the gateway.php
2. I create the service class with the API I need inside the application/services/amf folder. If the service needs to connect to the database then I create a Zend Db Model using the zf command line tool (as per Zend framework practices) and then hook my service class to use that. Which basically means that my service classes are very slim and simple.
3. When I created the Flex project I created a dummy service using the sample php, which has set up Flash builder with the default gateway and so on
4. Once I've created my service class, I copy the file to the default location where Flash Builder wants to create my services. I then strip out any implementing code from the copied file, leaving only the public API and empty methods.
5. I then create a new service in Flash builder, point it to the stubb class in the default location and let the introspection discover the public api. This will of course mean that all input values and return values are generic objects.
6. After this is done I delete the stubb class. In the created AS service class I override the service endpoint so that it points to my real gateway controller within the zend framework.
7. After this is done I can configure the return types and input types using auto discovering. It will connect to the real gateway and ignore the default gateway and thus I can develop against the real endpoint and don't need to create my service classes within the public location of the Zend folder structure.
It's a bit of a workaround for sure, but since I don't create new services that often and I can have Flash builder update my return types etc. automatically this way, I figure it's worth the extra steps. Still, I would hope that in the future Flash builder will support having the introspection happen on a location outside the projects own web root. -
How to refresh a region using Active Data Service
Hi,
I need to refresh the region using ADS.
I am creating jsff which contains dynamic tables rendering. This jsff is bound to a task flow (having input parameter and refresh property set to "ifNeeded). The bounded task flow is dropped on a jspx as a region.
Now in order to refresh the region, I need to pass the updated param value, which would cause the region refresh.
I am able to do so on a button click from jspx page. But I have to make it auto refresh using ADS as per app requirement.
The issue is "AdfFacesContext.getCurrentInstance return null..if I am using it in startActive Data or changeData Update (where I am using ActiveDataUpdateEvent)".
Please guide me how can I achieve this.
I am using Jdev 11.1.1.4.
Thanks.
Edited by: 977455 on Jan 3, 2013 7:35 PMHi,
try a variation of this blog entry: http://matthiaswessendorf.wordpress.com/2010/01/22/flexible-active-data-service/
Instead of showing a popup, you do the following
1. set clientComponent=true for the hidden field
2. configured the PartialTrigger property of the region to point to the hidden component
If this doesn't work then try this
1. use <af:clientListener type="propertyChange" method="activeDataCallback" /> as used in the sample
2. define an af:serverListener that points to a managed bean that has access to the region (RichRegion) instance
3. The af:serverListener needs to be defined as a child of the outputText
4. change "activeDataCallback" to queue the server listener event (CustomEvent)
5. Use the managed bean to refresh the region
Frank -
Error in Data Services tutorial
In the "Before You Begin" section of the Flex Data Services
tutorial in "Getting Started with Flex", the first bullet is
incorrect. It text should be:
"Ensure that you have installed the Flex Data Services Beta 3
release and that you can run the applications in the samples web
application."
The installation instructions are located here:
http://www.adobe.com/go/flex2_installation
The tutorial zip file is located here:
http://www.macromedia.com/go/flex2beta1_quickstart_tutorial_zip
- Mike Peterson
Adobe Flex documentation teamJust a slight correction...
>
Niels Weigel wrote:
> You need to have a subscribtion to the US Address Directories, as they are not free of charge.
>
> You can download them on the SAP Support Portal --> Downloads --> SAP Installations & Upgrades
> Choose Entry by applications on the left hand navigation
> Choose SAP BusinessObjects packages and products
> Go to the last Entry Address Directories
> Go to BOBJ ADDR DIR US
> Go to BOBJ ADDR US 2004-2008
> Go to Installation
> Choose Download Tab
> Choose BOBJ ADDRESS DATA - UNITED STATES 2004-2008 CASS MAY-09 (EXE for Win, TGZ for Unix) if you are using Data Services XI 3.x
>
> You will get there only if you have a license for the Address Directories - USA.
>
> Niels
The 2009 CASS version will not be used until the Data Services XI 3.2 release.
Thanks,
Brandon -
ADF BC and the Active Data Service
hi
The OFM Fusion Developer's Guide for Oracle ADF 11g Release 1 (B31974-05) has a section "42 Using the Active Data Service"
at http://download.oracle.com/docs/cd/E15523_01/web.1111/b31974/adv_ads.htm
that says "... If you want your components to update based on events passed into ADF Business Components, then you need to use the Active Data Proxy. ..."
but it does not seem to explain how to use ADF BC and the Active Data Service.
I have been able to create this example application ...
http://www.consideringred.com/files/oracle/2010/ActiveDataServiceADFBCApp-v0.01.zip
... that does not have a af:poll component (but has moved polling into a managed bean).
<managed-bean>
<managed-bean-name>sumSalBean</managed-bean-name>
<managed-bean-class>activedataserviceadfbcapp.view.SumSalBean</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
<managed-property>
<property-name>empSumSalVO</property-name>
<value>#{data.activedataserviceadfbcapp_view_sumSalPagePageDef.SumSal.viewObject}</value>
</managed-property>
</managed-bean>This is some code in the SumSalBean class:
package activedataserviceadfbcapp.view;
// also based on code found in "ADF’s Active Data Service and scalar data (like activeOutputText)" by Matthias Wessendorf
// at http://matthiaswessendorf.wordpress.com/2010/01/07/adf%E2%80%99s-active-data-service-and-scalar-data-like-activeoutputtext/
public class SumSalBean
extends BaseActiveDataModel
protected static final String SUM_SAL_NAME = "sumSal";
protected final AtomicInteger fCurrentChangeCount = new AtomicInteger(0);
protected long fActiveDataUpdateEventTime;
protected EmpSumSalVO fEmpSumSalVO = null;
@PostConstruct
public void setupActiveData()
ActiveModelContext vActiveModelContext =
ActiveModelContext.getActiveModelContext();
Object[] vKeyPath = new String[0];
vActiveModelContext.addActiveModelInfo(this, vKeyPath, SUM_SAL_NAME);
ScheduledExecutorService vSEService = Executors.newScheduledThreadPool(1);
vSEService.scheduleAtFixedRate(new Runnable()
public void run()
if (hasDataChanged())
triggerActiveDataUpdateEvent();
3, // let's wait some seconds
2, // period between the updates
TimeUnit.SECONDS);
public void triggerActiveDataUpdateEvent()
setActiveDataUpdateEventTime(System.currentTimeMillis());
incrementCurrentChangeCount();
ActiveDataUpdateEvent vEvent =
ActiveDataEventUtil.buildActiveDataUpdateEvent(
ActiveDataEntry.ChangeType.UPDATE,
getCurrentChangeCount(), new String[0], null,
new String[] { SUM_SAL_NAME },
new Object[] { getSumSal() });
fireActiveDataUpdate(vEvent);
public String getSumSal()
EmpSumSalVO vEmpSumSalVO = getEmpSumSalVO();
return "" + vEmpSumSalVO.getFirstSumSal();
protected void startActiveData(Collection<Object> rowKeys,
int startChangeCount)
protected void stopActiveData(Collection<Object> rowKeys)
public int getCurrentChangeCount()
return fCurrentChangeCount.get();
protected boolean hasDataChanged()
EmpSumSalVO vEmpSumSalVO = getEmpSumSalVO();
return vEmpSumSalVO.hasDataChanged(getActiveDataUpdateEventTime());
public void setEmpSumSalVO(EmpSumSalVO pEmpSumSalVO)
fEmpSumSalVO = pEmpSumSalVO;
}How all this behaves a runtime can be seen in this screencast
at http://www.screentoaster.com/watch/stUEpQSkxIR19aSV9YW1NRVF9W/activedataserviceadfbcapp_v0_01_zip_demo
I would welcome comments on how the example application in ActiveDataServiceADFBCApp-v0.01.zip can be improved, or references to information on how this should be done properly.
question
(q1) Where can I find some example code that does use ADF BC and the Active Data Service?
many thanks
Jan VerveckenJan,
ADF BC does not natively support ADF yet. Its planned for a next release. The only Data Control that out of the box support ADS is BAM. To use ADF BC with e.g. databae change notifications you
- create a shared AM
- Configure the VO to respond to database changes (check box)
- Configure the database to broadcast changes
- Use an af:poll component for the refresh because the update would be on the model layer only
So what is in the documentation is a doc bug. In the current releae you can use ADS best with a POJO model (that you use directly for dashboard use cases). You can though use a POJO data control, but this at the current stage would just act as a pass through for the data access.
See example 156 on http://blogs.oracle.com/smuenchadf/examples/ for how to do it with ADF BC
Frank
Ps.: Of course, the plan is to make everything working out of the box with no developer action required.
Edited by: Frank Nimphius on Feb 12, 2010 6:56 AM
Re-read your post. Maybe I need to revise my comment. Are you accessing AM directly or via the ADF layer. If the latter - I did not yet look at your sample - then this may work if you don't release the AM module you access directly (may not scale well)
Maybe you are looking for
-
Need to make links unclickable in a PDF
The company I currently work for is looking for a solution to a PDF issue. Currently I know anything that looks like a link becomes a link when you open it with Adobe Reader or Standard/Pro. I know there is an option per user to turn this feature o
-
No interface sounds in 10.4.11
Complete reinstall of OS with updates. I have the line out checked and everything seems to be working except. Even with interface sounds checked, I don't hear the trash emptied or the mail sent. Do these sounds still work in 10.4.11? I don't have any
-
Is a universal adapter ruining my battery?
Hi, I've had my Mac for a little over a year now; I purchased it in August 2009 in the U.S. For the first 3 months, I used it in France with a European Mac charger to fit the adapters there. After that, I used it in the States with virtually no probl
-
Firefox doesn't delete the browsing history in the address bar
No matter what you do with Firefox in clearing the browsing history by going to History -> Clear Recent History and deleting everything or resetting FF by going to Troubleshooting information, Firefox doesn't delete the browsing history. The website
-
Hi Experts, I want to block PP work Center For Period Of Maintenance Order Period, for that i am taking pp work center in Equipment Location tab, tick on 'Not In Operation' Condition in customising, taking 3 days gap in start date and complite date i