Spring Service class for Flex
Hi Guys,
I have to display data from db on to Flex page. For which I have been asked to create Service class for Flex screen. But i donot know what is service class, what should be its functionality. I am totally new to this.
Can anyone tell me what is Service class & how to create it.?
What should be the content of Service Class ?
How is it linked to db (preferably by iBatis).?
Are there any config files ?
How to use it to populate the data through Service class ant send it to Flex screen to display data.?
Kindly help me in brief and also provide if anyone has any links to be refered with example.
Thanks,
Anand.
The purpose of NativeWindow in your app is to make it visible and maximise it. The converted web app is in the browser window so that it is visible so you don't have to worry about that part. As for maximising, you should not change the size of the browser window (you can make it full screen but then if you do you'd lose the keyboard interactions.) So the short answer is just remove that chunk of code
Similar Messages
-
I've got a couple of questions I'd appreciate some advice on:
1) I'd love to work with Adobe as part of their professional services arm, but attempts to get to account managers or the right h/r individuals with a view on upcoming projects that require staffing has proven elusive. Does anyone know a good contact here in the UK. My attempts to telephone Adobe directly have fizzled out. I never seem to be put through to the right contact.
2) Alternatively. I'd rather deal directly with companies and not have to go through agencies. Are there dedicated Flex job boards that cater to the UK marketplace - or that have the ability to filter by geographic radius that anyone can recommend?hey, I'm not jocking.
and please let me download an AIR socket network app able to work for days on my computers without any interruption. may I have a look to Adobe Unicom?
rfr http://forums.adobe.com/thread/1405783?tstart=0
thank you.
mc -
Flex 4 Web Service Introspection For Dynamic WSDL Locations
In Flex 3, introspecting a web service resulted in a constructor that allowed the location of the web service to change at runtime. It appears that the Web Service introspection tool now only allows the single WSDL URI that was specified in the WS Wizard. It this the case or am I just missing something?
Flex 3 introspected services would create a service class with the following constructor signatures:
private var service:MyWebService;
service= new MyWebService(null, wsdlLocation); // With parameters
or you could use:
service = new MyWebService(); //with no parameters
In Flex 4, it appears that you can only use:
service = new MyWebService();
So if you don't know the web server location until runtime, am I going to need to manually override the instrospected/generated _super_MyWebService.as class in order to get back the ability to point to different servers at runtime?
Anyone know why this has changed, or what the "new" way the Flash Builder 4 web service introspection tool uses for dynamic servers?
Thanks a bunch!In Flex 4, it appears that you can only use:
service = new MyWebService();
add
service.wsdl = "your wsdl";
However if you want this to work you have to remove the hardcoded wsdl from the
superclass otherwise it will not reset it,
C -
Revision: 17982
Revision: 17982
Author: [email protected]
Date: 2010-10-01 00:39:15 -0700 (Fri, 01 Oct 2010)
Log Message:
Bug: BLZ-564 - Some classes in flex-messaging-core.jar define main methods for debugging purposes. This creates an unintended entry point and the main methods should be removed.
QA: No - just removed main methods
Doc: No
Checkintests: No - just removed main methods
Ticket Links:
http://bugs.adobe.com/jira/browse/BLZ-564
Modified Paths:
blazeds/trunk/modules/core/src/flex/messaging/services/messaging/selector/NumericValue.ja va
blazeds/trunk/modules/core/src/flex/messaging/util/Base64.java
blazeds/trunk/modules/core/src/flex/messaging/util/Hex.java
Added Paths:
blazeds/trunk/modules/core/test/src/flex/messaging/util/Basae64Test.java -
Best Practice for WSDL Generate Proxy Class for Web Service with Two Versions
Dear All
Thank you in advance for you help.
I would like to generate proxy classes for same function but with two versions.
Old version web service (v23.2) is used for stable modules in a project which is not going to modify.
However, enhancement is added in new version web service (v24) and is going to use in any future modules.
For example,
wsdl.exe -o="TestProxy.cs" -l:CS -n:Test -sharetypes https://community.workday.com/custom/developer/API/Notification/v23.2/Notification.wsdl https://community.workday.com/custom/developer/API/Notification/v24.0/Notification.wsdl
It generates similar classes with an '1' added at the end of the class name.
ublic partial class Event_TargetObjectType {
private Event_TargetObjectIDType[] idField;
public partial class Event_TargetObjectType1 {
private Event_TargetObjectIDType1[] idField; ...}
Since the function inside some class is the same, is it possible for WSDL.exe to generate proxy classes automatically that if the class is the same, then generate one class only (sameFunction()) but if it detects the class is different, then add '1'
to the end of class name (differentFunction() and differentFunction1())
i.e.
public class sameFunction()
public class differentFunction()
private int a;}
public class differentFunction1()
{ private int b;
Best Regards
mintssoulHi mintssoul,
As per this case, I have shared corresponding details below :
1.As far as I know, WCF doesn’t support method overloading directly
2.Because WSDL doesn’t support method overloading (not OOPs).
3.WCF generates WSDL which specifies the location of the service and the operation or methods the service exposes.
4.WCF use Document/Literal WSDL Style : Microsoft proposed this standard where the soap body element will contain the web method name.
5.By default all the WCF services conform to the document literal standard where the soap body should include the method name.
6.but you can differ the method in the same manually by using Name attribute like below
For example:
[OperationContract(Name="Integers")]
int Display(int a,int b)
[OperationContract(Name="Doubles")]
double Display(double a,double b)
7. Or I suggest you that can use svcutil to map multiple namespaces for generating wcf service proxies .
for more information about this, refer here :
http://stackoverflow.com/questions/1103686/use-svcutil-to-map-multiple-namespaces-for-generating-wcf-service-proxies -
Completely different AMF request packets for same remote service call from Flex to PHP using ZendAMF
I was trying to debug why one of the remote-services in our Flex application was failing randomly. What I found was interesting. Completely different AMF request packets were sent for same remote service call from Flex to PHP.
When the service call succeeds the AMF request packet looks like the following:
POST /video/flex/bin-debug/gateway.php HTTP/1.1
Host: localhost
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.15) Gecko/20110303 Firefox/3.6.15
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Cookie: PHPSESSID=j6u30i8uu6c3cvp8f4kipcpf05
Referer: http://localhost/video/flex/bin-debug/main.swf/[[DYNAMIC]]/5
Content-type: application/x-amf
C ontent-length: 305
Flex Message (flex.messaging.messages.RemotingMessage) operation = getMemberFromEvent clientId = 2F997CD0-7D08-8D09-1A9B-0000422676C8 destination = MembereventService messageId = B46AB58D-2241-83F0-41E4-9FE745565492 timestamp = 0 timeToLive = 0 body = [ 280 ] hdr(DSId) = nil
And when the service fails the AMF request packet looks like this:
ServiceRequest: getMemberFromEvent; RemoteService; getMemberFromEvent
(mx.messaging.messages::RemotingMessage)#0
body = (Array)#1
[0] 250
clientId = "1AA4FAAB-AEA5-8109-4B0D-000002B3A9A1"
destination = "MembereventService"
headers = (Object)#2
DSEndpoint = (null)
DSId = "nil"
messageId = "2F92E6C0-FE92-A09B-B150-9FE2F28D9738"
operation = "getMemberFromEvent"
source = "MembereventService"
timestamp = 0
timeToLive = 0
Also, following is the error message on Flex when the service fails:
{Fault code=Channel.Call.Failed, Fault string=error, Fault detail=NetConnection.Call.Failed: HTTP: Failed, Destination=MembereventService}
We are using Swiz as the micro-architecture for Flex development and Zend AMF for remoting between Flex and PHP.
Any ideas what is wrong here, what is causing Flex to send different request packets for the same service & what I can do to fix it?Hi, I know that your post is almost 5 years ago, but have you found the solution to this issue?
Thanks. -
Abap Class for Enterprise Service
Hi guys.
I've published as webservice in SAP ECC as enterprise service get it in Enterprise Service Workplace.
I have two questions:
1- How can I know the abap class associated to this enterprise service.
2- Could I extend the functionality of this enterprise service? For instance I'd like to response with one more field. Is that possible or I have to create a new one?
Thaks a lot.
Regards.
Edited by: Christian Abad Chico on Feb 20, 2012 4:03 PMHi
May be the below link helps you,
[http://wiki.sdn.sap.com/wiki/display/EmTech/PublishWeberviceinABAP,ConsumeWebserviceinABAPandAdobeFlex.]
Regards,
Vijay V -
Cannot load required classes for service SLD Data supplier
Hello Experts,
I am trying to use the SLD Data supplier service from visual administartor for registering my DEV EP 7.0 engine in central SLD.When am trying to access that particular service from visual admin,it is throwing an error saying that:"Cannot load required classes for SLD Data Supplier service and please refer the not for resolution Note No:1017526.
My NW EP 7.0 is at SP17 level and as per the above note all settings are fine and the relevant application is also started well.
Please suggest us for any possible solution.
Thanks&Regards,
Apparao S.> You can also try the following: Move sldserv.jar from
> /usr/sap/<SID>/<InstID>/j2ee/cluster/server0/bin/services/sld/
> to
> /usr/sap/<SID>/<InstID>/j2ee/admin/lib/
Hi Desiree,
Thanks, worked for me too.
Only in my case, when I moved the file, the sld data provider service did not start at all after reboot of the instance.
Also, the sap.com/tcsldwd~main application refused to start.
I then copied the file back, this time maintaining an entry in both locations and reboot the instance. Everything started working after I reboot the instance. The error also disappeared and I was able to change the SLDuser password.
Thanks
Prasad -
Form class for service notification
Hi All,
I am unable to find form class (In transaction EFCS) for service notification for shop papers printing. Can anyone help me in finding form class for this.
Thanks in advance.
VijayTcode OIDA (I had to type /NOIDA
IMG>Plant Maintenance and Customer Service>Maint and Serv Processing>Maint and Serv Notifications>Notification Procesing>Notification Print Control -
Revision: 5604
Author: [email protected]
Date: 2009-03-26 14:00:26 -0700 (Thu, 26 Mar 2009)
Log Message:
Ensuring qualified class names are used in type selector cache keys for Flex 4 applications.
QE: Yes, this should address style issues for test cases that contain two different components with the same local name.
Dev: No
Doc: No
Checkintests: Pass
Modified Paths:
flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/StyleProtoChain.asRemember that Arch Arm is a different distribution, but we try to bend the rules and provide limited support for them. This may or may not be unique to Arch Arm, so you might try asking on their forums as well.
-
Revision: 15863
Revision: 15863
Author: [email protected]
Date: 2010-05-02 19:20:15 -0700 (Sun, 02 May 2010)
Log Message:
Remove FLEXOSMF 4.0 tagging, the OSMF for Flex 4 version of this class lives in the display package
Modified Paths:
osmf/trunk/framework/OSMF/org/osmf/layout/ScaleMode.asWhat I've done is remove osmf.swc from the Flex 4.0 sdk, then I added the new osmf.swc file to my libs folder for my project. Is there a for updating osmf in Flex 4.0 it works nativly with the sdk. The original reason why I got errors was because the frameworks/projects/osmf/src/OSMFClasses.as packages in Flex 4 were not the same as the new osmf.swc (most of the flex 4 swc have these package reference files). So those would have to be updated every time the osmf packages change.
-
When trying to retrieve information for a form that contains textbox so as to display product information on a form I am getting an error which is listed below
java.lang.NullPointerException
file:/K:/Learner/JavaFx2/ProductApplication/dist/run876373360/ProductApplication.jar!/com/product/app/view/viewsingle.fxml
at com.product.app.controller.ViewSingleController.initialize(ViewSingleController.java:70)
and here is the code for controller as well as service class
package com.product.app.controller;
import com.product.app.model.Product;
import com.product.app.service.ViewProductsService;
import com.product.app.util.JSONParser;
import com.product.app.util.TagConstants;
import java.net.URL;
import java.util.ArrayList;
import java.util.List;
import java.util.ResourceBundle;
import javafx.collections.ObservableList;
import javafx.concurrent.Service;
import javafx.concurrent.Task;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.control.ProgressIndicator;
import javafx.scene.control.TextArea;
import javafx.scene.control.TextField;
import javafx.scene.layout.Region;
import javafx.stage.Stage;
import javax.swing.JOptionPane;
import org.apache.http.NameValuePair;
import org.apache.http.message.BasicNameValuePair;
import org.json.JSONArray;
import org.json.JSONObject;
* FXML Controller class
* @author Arun Joseph
public class ViewSingleController implements Initializable {
private static String action = "";
@FXML
private TextField txtID;
@FXML
private TextField txtName;
@FXML
private TextField txtPrice;
@FXML
private TextArea txtDesc;
@FXML
private Region veil;
@FXML
private ProgressIndicator p;
private ViewProductsService service = new ViewProductsService();
private JSONObject product = null;
private JSONParser parser = new JSONParser();
private int pid = 1;
public void setPid(int pid) {
this.pid = pid;
* Initializes the controller class.
@Override
public void initialize(URL url, ResourceBundle rb) {
veil.setStyle("-fx-background-color: rgba(0, 0, 0, 0.4)");
p.setMaxSize(150, 150);
p.progressProperty().bind(service.progressProperty());
veil.visibleProperty().bind(service.runningProperty());
p.visibleProperty().bind(service.runningProperty());
Product product = new Product();
service.start();
ObservableList<Product> products = service.valueProperty().get();
products.get(pid);
txtID.textProperty().set(String.valueOf(products.get(pid).getPid()));
//product = service.valueProperty().get().get(pid);
//txtID.setText(String.valueOf(product.getPid()));
txtName.textProperty().set(product.getName());
txtPrice.textProperty().set(String.valueOf(product.getPrize()));
txtDesc.textProperty().set(product.getDescription());
private SomeService someService = new SomeService();
@FXML
private void handleUpdateButtonClick(ActionEvent event) {
action = "update";
someService.start();
p.progressProperty().bind(service.progressProperty());
veil.visibleProperty().bind(service.runningProperty());
p.visibleProperty().bind(service.runningProperty());
@FXML
private void handleDeleteButtonClick(ActionEvent event) {
action = "delete";
someService.start();
p.progressProperty().bind(service.progressProperty());
veil.visibleProperty().bind(service.runningProperty());
p.visibleProperty().bind(service.runningProperty());
@FXML
private void handleCancelButtonClick(ActionEvent event) {
closeStage();
private void closeStage() {
ViewSingleController.stage.close();
private static Stage stage = null;
public static void setStage(Stage stage) {
ViewSingleController.stage = stage;
private class SomeService extends Service<String> {
@Override
protected Task<String> createTask() {
return new SomeTask();
private class SomeTask extends Task<String> {
@Override
protected String call() throws Exception {
String result = "";
int success = 0;
List<NameValuePair> params = new ArrayList<NameValuePair>();
switch (action) {
case "update":
params.add(new BasicNameValuePair("pid", txtID.getText()));
params.add(new BasicNameValuePair("name", txtName.getText()));
params.add(new BasicNameValuePair("price", txtPrice.getText()));
params.add(new BasicNameValuePair("description", txtDesc.getText()));
product = parser.makeHttpRequest(TagConstants.url_update_product_with_id, "POST", params);
success = product.getInt(TagConstants.TAG_SUCCESS);
if (success == 1) {
result = "Successfully Updated the product";
JOptionPane.showMessageDialog(null, result);
closeStage();
break;
case "delete":
params.add(new BasicNameValuePair("pid", txtID.getText()));
product = parser.makeHttpRequest(TagConstants.url_delete_product_with_id, "POST", params);
success = product.getInt(TagConstants.TAG_SUCCESS);
if (success == 1) {
result = "Successfully Deleted the product";
JOptionPane.showMessageDialog(null, result);
closeStage();
break;
return result;Is line 70 in the code above
txtPrice.textProperty().set(String.valueOf(product.getPrize()));
also line 70 in your original code? (Sometimes the syntax highlighter seems to delete blank lines.) If so, then txtPrice must be null, which would likely be caused by the fx:id attribute for it being set incorrectly in the fxml file.
Check which is line 70 in the original code though. -
Extending the class - For extra feilds\properties on service requests
We have extended the class for service request so we can have extra properties for user input on service requests. These extra feilds are now visible via the extensions tab at the top of the service request and also on a new tab next to Histroy.
However each time we open a new service request the default tab it opens onto is this new "Notes" tab and not the "General" tab, causing a lot of fustrations. See below:
Anyone know how to change this default view back to the general tab?An annoying "feature" of SCSM form customisation is that the last tab changed becomes the default tab shown. Open your custom form MP in the Authoring Tool again and go to the general tab, change the top margin by 1 of the title or something
similar, reseal, import. The general tab will be the default once more.
Rob Ford scsmnz.net
Cireson www.cireson.com
For a free SCSM 2012 Notify Analyst app click
here -
Unable to Generating a proxy class for the Enterprise Service
Hi ,
I am trying to consuming an SAP XI Web
Service in Visual Studio 2005. I followd this document <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3057b5a7-99d0-2910-8f8f-f357dc4b70b5">Consume ES Workplace Enterprise Services with Microsoft .Net 2.0 and Visual Studio .Net 2005:</a>.
While try to create a Proxy Class for the WSDL file(XI) using wsdl.exe tool it shows the error like this "There is an error in XML document -Value cannot be null Parameter name:name".
If there any way to pass the parameter through wsdl.exe tool .
Regards,
Malini.VCheck for unnecessary spaces in the WSDL file. Especially in xsd:union tags.
I had the following problem:
<xsd:union memberTypes=" xsd:time genericTime" ...
Correct:
<xsd:union memberTypes="xsd:time genericTime" ...
and WSDL.exe was able to generate the proxy class code.
Kind regards
Holger -
Serial number for Flex Data service Beta 3
Which serial umber should be entered for flex Data service
beta 3. It says that if no serial number is entered it reverts to
the Express version....There is a serial number in the
Installation
Instructions.
Maybe you are looking for
-
Hello all, SAP recommends the following specifications for the xMII server 1) RAID - 1 Disk (3 logical SATA Disks) Question: Our normal standard is for a RAID 5 with three physical drives. Would this cause any issues? On the 3 logical SATA Disks, doe
-
Portege R200: I would like to replace LCD screen
Hi all... This is my first post here, sorry for my basic questions... My R200 screen has broken and I would like to replace it for as 'CHEAP' as possible... I have looked online and seen an official one for over £300. I have seen 2 different ones on
-
ATV 2 on a 480i Toshiba CRT TV (16:9 capable)?
Will it work on my TV, which can only support 480i?
-
I would like to change the grid size on my drawing page. According to the help, I need to use the Drawing Aids palette. I'm supposed to be able to display it by double-clicking on the rules, but nothing displays. What does the palette look like? And
-
I have a 22" Samsung LCD connected to my MacBook. The problem is that this panel is very saturated. I've tried configuring the panel itself through the OSD menu, but I can't desaturate is more without losing color balance. And I've calibrated the dis