Flex :: When Mapping Inheritance In Web Service For A Client

Dec 1, 2009

I have an issue when consuming a web service from a Flex app. In the backend I have a hierarchy, let's say I have an abstract class Fruit, and 2 implementations: Apple and Orange. Fruit has a property, name, Apple has a property color, and Orange has a property radius. Then, I have a service wich returns a collection of Fruit. When I consume it from Flex, this collection returns objects wich type are Fruit, with its name property; but I lose all the properties for the implementation classes (color nor radius). So, the question is, does Flex support inheritance mapping when using web services? If not, is there any workarround?

View 1 Replies


Similar Posts:


Flex :: Setting Up Web Service Client?

Jun 1, 2010

I am new to Flex and needed some help setting up Web service client.I have a web service of method: public String printEchoStr(String str);I am facing problem while creating action script to call this service.I am getting error1067 : Implicit coercion of a value of type String to an unrelated ty generated. webservices:PrintEcho.I am not sure if this is the correct way.

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"
xmlns:srv="generated.webservices.*"[code]...........

View 1 Replies

C# - RSA Encryption From Flex Client And Corresponding Decryption From Web Service

May 24, 2011

I'm having a problem setting up RSA encryption/decryption mechanism between flex client and web service written in c#. The idea is this: I'll encrypt some text from flex and then decrypt it from web service. I'm using as3crypto library from google. It is encrypting/decrypting text properly. I also have the code on the web service side to encrypt/decrypt properly. My problem is synchronizing them - basically sharing the public key to flex and keeping the private key to the web service.

My flex "encrypt" function takes modulus and exponent of RSA to do text encryption, so how do i get these modulus and exponent attributes from the web service's RSACryptoServiceProvider, so they speak the same standard.

[Code]...

View 3 Replies

Flex :: Get The Client's IP Address In An LCDS Service Call?

Aug 30, 2009

I'm trying to find the IP address of a client when they make a particular LCDS service call. Understanding all the issues of getting a "real" IP address and privacy concerns and so on, it is possible to find the client's IP address?

View 3 Replies

Php :: Flex Service - Bind A Service To A Button

Feb 2, 2011

I am experiencing a strange problem when I want to bind a service to a button or something else:

[Code]...

I can add the services to the Data Services panel but I have two strange things:

1) when I want to configure the return type he doesn't let me create a new ValueObject type, I only get the bottom datagrid which states: Properties returned by the operation: Property: country_Id, provence_Id, city_Id, id_cdpc, district_Id with the related values on the right side. Why can't I create a new data type on the top?

2) When I accept this and want to add the service call to a button (drag&drop) I get the following error: Error occurred while generating code. Make sure that there are no compiler eroors and try again after reopening the file. Componentn type services.cdpc.CDPC not found... (ps: When I perform a Test Operation everything seems to be ok, I get the expected output values)

View 1 Replies

Mapping PHP And Flex Objects?

Jun 23, 2009

I am using ZendAMF for remoting.

<?php
error_reporting(E_ALL | E_STRICT); //error reporting, not needed
require_once "Zend/Amf/Server.php"; //the zendAMF server
require_once "process.php"; //our test class

[Code]...

View 2 Replies

Flex :: AMF Class Mapping Not Working?

Oct 28, 2011

I am building an application using Flex 4.5 and Zend_AMF as my AMF endpoint.I would like to map a class called CRequest in PHP to a class called Request in Flex.This is my php class:

<?php
namespace appweb;
class CRequest{

[code].....

View 2 Replies

ActionScript :: Flex : Mapping Objects To Classes?

Jun 16, 2009

If I've got a bunch of plain old Objects, what's the best way to map them to a bunch of Classes?For example, if I use an HTTPService to pull in some JSON, then deserialize it, I'll have a bunch of objects which look like:

{ type: "person",
id: 42,
name: "David" }

And I want to turn them into instances of a Person class:

class Person {
id:int;
name:String;
}

(also to be considered: how about some standard way of dealing with relationships between objects? For example, if the Person had an additional "spouse" field:

{ type: "person", spouse: 61, ... } // Where 61 is the ID of the spouse
)

View 2 Replies

Php :: AMFPHP Flex Propel Mapping Class Bug?

Sep 23, 2009

I'm working on a website using :

- Flex 3.4
- AMFPHP 1.9b
- Propel 1.3
- PHP/MySQL

I'll try to focus on the problem which takes place in a whole system.To sum up, I have 2 entities (MySQL) :

create table AAA
(
id_AAA int not null auto_increment,
id_BBB int,

[code]....

I retrieve all my BBB, they are mapped from PHP classes (generated by Propel) to AS3 classes on the Flex side.But when I create a AAA row in the database.I retrieve all my BBB, and all objects are mapped EXCEPT the BBB whose id corresponds to the foreign key in the inserted AAA row.

if you know anything about how AMFPHP / Propel / Flex are dealing with Foreign Keys and why class mapping is failing right here.The weird thing is that it seems to happen only for this specific case ...

View 2 Replies

Flex :: Mapping Pictures To A Sphere Or Cylinder?

May 14, 2010

i am developing an application where client can add his photos to appear on a sphere or ball or coffee cup and able to save them and give it for printing using flex. like itasveer.com site. i tried to use away3D but if the image is small it is stretched and added to sphere. i dont want it to strech instead the original image shud appear on the sphere. if it is added to cup it shud cover only the circular part it shud not add this to top and bottom.

View 1 Replies

Flex :: AS3 - Inheritance And Factory Method

Mar 22, 2011

My data is of mixed types like String, Array Collection, Boolean. I have to populate the data into appropriate UI component - for example Boolean to check box, Array to List. So we have created a factory class which will return 3 different type of component based on the input argument.

CTextfield -> extends mx.controls.Text
CList -> extends mx.controls.List
CCheckBox -> extends custom.MultiLineCheckBox

MultiLineCheckBox which extends mx.controls.CheckBox and few methods are overridden to bring the multiple line label. [URL]. It works perfect.Am using the MultiLineCheckBox in the entire application wherever I want check Box. Now I went into a scenario where I want check Box instead of MultiLineCheckBox. How to rewrite my CCheckBox to handle MultiLineCheckBox and also default CheckBox? Each of the CCheckBox class has lot of methods init.

View 1 Replies

Flex :: Looking For Flash Mapping Framework With Multiple Levels

Jun 30, 2010

I'm looking to create a Flash Map with multiple zoom levels. Ideally what I'd like is to be able to click onto a 'state' area, and then have the map zoom down to a sub-area (which can then either have a link or zoom down to yet another sub-area). Ideally I would like to be able to define sub-areas recursively (e.g. state area, region area, town area etc.) on an infinite level, but 2 levels should suffice. I found several solutions on Flash Den, however they can only handle 1 level. Does anyone know of any Flex/Flash libraries or frameworks which are capable of doing this? Alternately, does anyone know if this would be possible with Google Maps/KML? I already have vector outlines of the areas I would like to use in Flash.

View 2 Replies

Flex :: Mxml Inheritance Works Instanceof?

Jul 5, 2010

[Code]....

It is not works! When I see in debugger, child have type "Screen2", but "child is Screen" returns false to me (and "child instanceof Screen" too). When I apply compiler key: "-keep-generated-actionscript" I can see Screen2-generated.as and it's contains public class Screen3 extends screens.Screen

View 1 Replies

Flex :: Keyboard Code Mapping In Adobe Flash For The Browser?

Jun 18, 2009

difference between key code and character code. For example, the number 1 (one) and the character ! (bang) both have the same key code but different character codes. Likewise, the number 7 from the row of numbers and the number 7 from the numpad have different key codes but the same character codes.

I'm programming a music rhythm game in Adobe Flex and would like to bind keyboard keys. This isn't a problem, but I certainly would have a problem, say, setting the default keys to A, S, D, and F and telling the user that this is the case.If you take a look at the documentation for flash.ui.Keyboard, you'll see that there are constants for keyboard keys to key codes. However, these are only available in Adobe AIR and not the browser. This makes sense since not all operating systems and keyboards are alike (or present!), so key codes can vary.

So, how can I assign default keys that have meaning instead of picking key codes and praying?My only sane thought is to store the character codes for the key bindings and then provide an character code to String mapping so I can tell the user what to press. However, my gut tells me that this will break in subtle or not-so-subtle ways. Like CAPSLOCK.

View 2 Replies

Flex :: Web Services - Consuming WSDL With Inheritance Types

Jul 4, 2011

General information:
I use Flex 4.5
I use FlashBuilder 4
I generate the WSDL using JAX-WS 2.2 (via a GlassFish 3.1 AS)
I want to have a web service that returns a list of clients.

In the Java code, I have a base class for a Client, and 2 extending classes:
public class Client {
public String getName() {
return this.name;
[Code] .....

View 1 Replies

Flex :: Security - Setting Wsdl Service In Flex Project Crossdomain.xml?

Apr 7, 2011

How can i settings crossdomain.xml my flex project.* this is my crossdomain.xml.

<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<site-control permitted-cross-domain-policies="all"/>

[code].....

I've tried lots of different methods but my project send error message "Security error accessing url Unable to load WSDL. If currently online, please verify the URI and/or format of the WSDL [URL]"

put the file in different places

C:wampwwwMYPROJECTin-debugcrossdomain.xml
(my swf url : http://localhost/bin-debug/test.html checked http://localhost/bin-debug/crossdomain.xml its ok)
C:wampwwwcrossdomain.xml

I added the load line of the project

protected function application1_initializeHandler(event:FlexEvent):void
{
Security.loadPolicyFile("http://localhost/MYPROJECT/bin-debug/crossdomain.xml");
}

if flex server type select none everythings ok. but server type select PHP need crossdomain.xml how can i fix.

View 1 Replies

Flex - Pass Authentication Headers Using Flex HTTP Service?

Sep 6, 2010

I am trying to access a .Net service which requires an authentication header. If WebService is used it works fine. But when it is accessed using HTTPService it throws error. The project is already done by somebody else using HTTPService. Now changing to webService requires some time since there needs to be modification in a lot of files.

Below is the SOAP envelop required by the service.

[Code]...

View 1 Replies

Flex :: Builder - Deploy Flex App Using Different Web Service Urls?

Sep 28, 2011

Is there some sort of configuration settings in FlashBuilder 4.5 where you can easily switch between webservice urls? Right now I have to delete and recreate the web service every time I switch from local to production and vice versa.

View 2 Replies

Flex :: Using Grails To Connect To A Flex Web Service?

Jun 20, 2009

I have a grails application that will be rendering an html page into a pdf file and I have a flex application sitting on a server that is going to accept REST parameters and construct a graph based on the parameters (which will be formatted in JSON). What I want to do is make a call to the flex app with my parameters and have the flex app create the graph, render a JPEG of the graph, then send an image back to grails. In other words, I want to put an HTML img src=that will render the image directly to the page so that my PDF Plugin in grails will render it into the PDF.

View 1 Replies

Flex :: Develop Flex/Air Application As A Service?

Jan 28, 2011

Is it possible to develop flex/Air application as a service. The application doesn't require any GUI it should run as service in embedded Linux/Linux/Windows.

View 1 Replies

Flex :: Mvc - A Different Service App Using Zend_Amf?

Feb 4, 2010

I have an iterator service that works fine already and returns a correctly structured values to my flex application through my Zend Amf server

$contacts = array();
mysql_connect( 'localhost', 'root', 'test' );
mysql_select_db( 'test' );

[code].....

View 2 Replies

Asp.net :: Asp.net - Flex App Not Hitting Web Service?

Dec 1, 2011

determine what is preventing my web service from being called. We have a working application in production and the developer who wrote it has left. am trying to build it on my machine and I can see a web service call in fiddler being made with the URL "/Services.asmx/MethodName" (as a GET request).I have set my break point in the asmx web service and it is not being hit. All I get in the flex front end is a pop up with " The remote server failed to respond and may be offline. he web service is in the same application as the web app that hosts the SWF file.I have the cross domain policy file in place.

View 1 Replies

Flex :: Binding To A Base Class Property With Class Inheritance?

Feb 9, 2010

say that i have a base class called Base, that is Bindable and has a String property like this:

[Bindable]
public class Base
{
public var msg:String;

[Code]......

where msg is some textInput field. I am getting a message from the compiler that....

Data binding will not be able to detect assignments to "msg"

is there a limitation with data binding to a base class?

View 1 Replies

Flex :: Stop A Web Service From Executing?

Jan 12, 2010

is it possible to stop a web service from executing?

I have a flex web application that searches clients with both full name and client id, when searching by name sometimes the usuer just types the last name and it takes a long time.

Since the app is used when clients are waiting in line, I would like to be able to stop the search and use their full name or id instead, and avoid waiting for the results and then having to search the user manually within the results.

I meant "web service" I actually meant mx.rpc.soap.mxml.WebService, I want to stop it from waiting for the result event and the fault event.

View 2 Replies

.net :: Use A Service Object Within Adobe Flex

Feb 3, 2010

How can I use a .NET service object in an Adobe Flex application? Is it even possible? Do I have to use some third-party tool?

View 3 Replies

Php :: AMF Data Is Incomplete With Flex Service?

Apr 28, 2010

I am bussy with a Flex Project with a data services. Flash builder installed Zend Framework with Zend_Amf.

When i run the project i get the error NetConnection.Call.Failed: HTTP: Failed. With chalers i say that Zend_Amf give the error: AMF data is incomplete (0 bytes of 0 bytes). Please check the recording limits in the Recording Settings.

I don't know what the problem means. I have searched on google, but i haven't found a good result. The Flex project code is:

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"

[code]...

View 2 Replies

.net :: Flex - What Value Does WebORB Add When Accessing A .NET Service

Jul 1, 2010

I've been reading about WebORB, and am wondering: if I just need to call methods on a .NET web service from my Flex app, does it add any value?

View 3 Replies

Php :: Call An AMF Service Using Flex And Get Back A MP3?

Jul 6, 2010

My flex 3.5 application has an audio player whose content is accessed by calling an AMF service to get the mp3 data. As far as I can tell, flash.media.Sound is initialized with a URLRequest, so it's not clear to me how I can provide it with data using my RemoteObject.

I want to do one of the following things:

Provide data to the Sound object's load method from a RemoteObject service call.
Create a URLRequest object that will perform the requisite AMF wrapping so that my service implementation will look exactly like any other service call if at all possible. Any alternative that allows me to invoke a PHP4 AMF service and play the audio it returns in a Flash audio player.

View 3 Replies

Flex :: Sychronous Web Service Calls

Sep 10, 2010

Does adobe flex supports sychronous web service calls justify your answer???

View 1 Replies

Flex :: Set The Location For A SOAP Service?

Apr 8, 2011

I have successfully generated my web service proxies using the FlexBuilder menus. This particular web service has an internal (or incorrect) "location" specified in its WSDL. This means that when I go to make an actual method call, it fails because the DNS name specified in the location field is wrong. (It shows as "aborted" in fire bug).

How do I set the location attribute on the service object?

update:

The field that needs to be changed is listed below. It is called "WSDL- ndpoint." So the question is: How do I do this programmatically given the generated web service object (the one that extends WebServiceWrapper)?

<annotation name="ServiceConfig">
<item name="DEFAULT_ENTITY_PACKAGE">valueObjects</item>
<item name="WSDL-endpoint">http://eoc7/eoc7/api.asmx</item>
<item name="LINKED_FILE"></item>
</annotation>

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved