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


Similar Posts:


Flex Consuming Java Web Services?

Sep 22, 2011

We are planning to use flex and Java Web Services, what is the best practice to consume web service from flex is it better to directly call the web service from Action scripts or to use remoting where java client will call the web services and later flex using remoting will the java client?

View 1 Replies

Web Services :: Manually Consume WSDL In Flex Builder 3?

Oct 31, 2011

I'm trying to consume a .Net web service of mine in a Flex Builder 3 project. The function's signature in the service is:

bool MyFunction(Enums.Channels var1, Enums.Payments.PayMethods var2)

I tried importing the WSDL with the wizard but when I tried to call the web service it results in an error stating

"Cannot marshall type "http://www.w3.org/2001/XMLSchema::EnumsChannel"to simple type"

What kind of object do I need to create in Flex Builder 3 to pass into the webservice so that it will recognize it as the appropriate type? The wizard is not correctly creating the appropriate type. Here is the xsd for the enums.

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://schemas.datacontract.org/2004/07/My.Shared" elementFormDefault="qualified" targetNamespace="http://schemas.datacontract.org/2004/07/My.Shared">
<xs:simpleType name="Enums.Channels">[code]....

I'd like to try to build my own objects to call the service myself (without the wizard).... created the mx:WebService and mx:Operation but not sure how to handle the enum parameters.

View 1 Replies

Flex :: Equivalent Datatypes For Various Wsdl Data Types?

Apr 21, 2011

WSDL defines a number of datatypes supported by web service . Is there a documentation stating the various equivalents of those datatypes on flex side. In general for any language that we use to consume web service, how do we get to know the equivalent datatypes of the wsdl types.

One of the web service that I am consuming is returning base64Binary (an image binary data) , What is the equivalent datatype of this on flex ?

View 2 Replies

Web Services - Initialize Webservice WSDL At Runtime Using Flex And Mate Framework?

Mar 17, 2010

I am developing a Flex application on top of Mate framework. In this application, I am using a webservice to retrieve data.As this webservice as not a fix location URL (depending on where customers installed it), I define this URL in a config file.When the Flex application starts, it first reads this config file, then I would like to use the value I found to initialize the webservice.But currently, I have no idea how to this.

[Code]...

View 3 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

Actionscript :: Flex WSDL As Ant Task?

Sep 8, 2009

Flex Builder 3 provides support to generate actionscipt from WSDL via the GUI ( Data->Import Web Service (WSDL) ) - but this sort of method requires that you check in the generated source. This is not desirable to us (we understand both sides of the 'should generated source be checked in' and we have decided that they should not) so we would like a method to generate the actionscript classes from an ant task. In this case, the WSDL would live in the file system.

View 2 Replies

Flex :: AS3 Code Generation From A Wsdl

Feb 25, 2010

As part of a nightly build i want to automate the generation of action script classes like Flex does but in an automated fashion. So I'm looking for an equivalent tool to flex builder 3's Import Web Service functionality, but accesable to a Hudson nightly build using ant.

View 1 Replies

Have Flex WebServices Share A Common Wsdl

Aug 3, 2011

I have a flex app that loads a WSDL at runtime and shares that across several different web services I have defined. Unfortunately each call to loadWSDL() makes a network request for it, and while it's not really a problem due to caching it's still annoying and wasteful to have all those requests generated. Is there a simpler way to solve this problem and only make one network request?[code]

View 1 Replies

Actionscript 3 :: Flex WebService Using WSDL - How To List Available Operations

Jun 28, 2009

I'm using WebService class with WSDL.How to list available operations in WSDL and their parameters?There is operations property but it's empty.

View 2 Replies

Flex :: Connect To Data/service Wsdl URL Introspect Error?

Apr 20, 2011

i am trying to add a web service in flex 4. This web service is deployed in share point 2010 in the intranet . I am able to see this wsdl file through browser but trying to introspect the service is giving an authentication error. I am getting the following error :-

There was an error during service introspection.

WSDLException: faultCode=OTHER_ERROR: Unable to resolve imported document at 'http://sql2008:47672/_vti_bin/StoryboardingDatabaseConnect.asmx?WSDL'.: java.io.IOException: Authentication failure

View 1 Replies

Flex :: Solve ClassCastException For Java.util.ArrayList Via WSDL Of ColdFusion 9's CFC?

Mar 20, 2011

I hope this problem would not waste your time. I use Adobe Coldfusion 9 to create CFC to to interact with database. Generally, CFC can be generate WSDL by itself. for example:[URL]..

The WSDL was generated well. But the problem has been found when I tried to use Adobe Flash Builder 4's Data service to generate service class to connect ColdFusion's WSDL.

If you tried to invoked the remote function that return primitive data type as int or String, it works correctly.

[Code]...

View 1 Replies

Actionscript 3 :: Flash Builder - Connecting To Remote Webservice Using SOAP And WSDL Using Flex?

Aug 16, 2011

The requirement is to get the method named getIncidentList() from web service using Soap and wsdl using Flex or Actionscript.

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:WebService id="DirectoryService"
wsdl="http://cmuicds.rutgers.edu/uicds/core/ws/services/DirectoryService.wsdl"
useProxy="false"

[code].....

View 1 Replies

ActionScript 3.0 :: Map Data Types To Custom Types?

Jan 24, 2012

Consider the following function:

Code:
public function foo(bar1:int, bar2:uint, bar3:String, bar4:Boolean):void{}

What I want is to have the different types of data represented by custom named types which are essentially representing the original data types. I other word, I would like to proxy the data types and have a valid function as following:

Code:
public function foo(bar1:PAR_Bar1, bar2:PAR_Bar2, bar3:PAR_Bar3, bar4:PAR_Bar4):void{}

so PAR_Bar1 would proxy the `int` data type, PAR_Bar2 would proxy the `uint` data type, so on and so forth.

The reason I need this is because I'm using a debugger with a GUI that can run methods and allows changing function parameter values in real-time, the issue is that the debugger can't tell me what parameter I'm changing, it only displays the data type of a parameter. So if I need to change 10 different parameters all of type int, the debuggers display all of them as int and not by their names.

I think that if I use proxy types I can easily differentiate between parameters.

So, my question: Is it possible to proxy data types? I mean map specific data types to custom data types that would represent the base data types?

View 2 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 :: 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

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 :: Web Services - Pass Authorization Header From Flex WebService?

Jun 24, 2009

I have Basic Authorization mechanism on the server for WSDL/SOAP. How I can send "Authorization" header through Flex WebService?

Simplified example:

var ws:WebService = new WebService();
ws.wsdl = "http://localhost:8000/api/service.wsdl"

var encoder:Base64Encoder = new Base64Encoder();
encoder.insertNewLines = false;

View 1 Replies

Flex :: Example Flex Zend AMF Sharing Web Services Between Components In ViewStack

Aug 10, 2011

I've been searching for the last couple days but can't seem to find a basic example of what I'm looking for. I'm developing a Flex 4.5 app and in it I have a viewstack of 2 components that use some of the same services. Currently the only way I can get the app to correctly use the web services is by defining 2 different web services that use the same PHP web service file. For example: I have an app, and within it I have a viewstack with tab navigation of 2 components: #1) retrieve a list of all Salary Employees, and #2) retrieve a list of all Contractors. Currently to get it working I am defining a UsersTableEmployees webservice within component #1 and a UsersTableContractors webservice within component #2, but they both point to the same PHP class, and only differ in the arugment value I pass to them. Ie, getUsers("employee") and getUsers ("contractors"). Of course this is not best practice.

Searching StackOverflow and Google gives me many results about ColdFusion and MVC (example What's the best way to share data between components in Flex?), but I'm still confused. Can anyone here point me to a basic example (even sample MVC) and source code of an app that uses Zend AMF and allows different components to call common web services?

View 1 Replies

Flex :: Use Multiple Web Services?

Dec 2, 2010

I am developing an application with multiple windows, all using their own web services.Is it bad practice to use more than one web service per application? If so, what are the disadvantages?

View 1 Replies

Web Services - NET 3.5 WebService Compression For Flex?

Aug 17, 2009

We have Flex applications that connect to our ASP.NET 3.5 Web Applications and usually download lot of data. Now considering XML as transport, for every item, it transmits meta data twice for example.. instead of transferring int value as <Customer CustomerID=23/> it transmits <Customer><CustomerID>23</CustomerID></Customer> .. now here is where bandwidth conservation becomes an issue.

FLEX Can not read GZip and DEFLATE compressed HTTP Response ( So cant use any of them )I heard of some WSCompression but it requires WSE 3.0 now I am skeptical to introduce too many dependency in my hosting environment which requires too much management and overheads. Is WSE 3.0 only dll library which requires no installation on production server? Does it require rewriting all WebService attribute? Or is it simple one time configuration and more or less, anyone knows does it work with Flex ? Flex dynamically generates web services, and we use lot of its auto generated code, now if we want to support compression then do we need to rewrite lot of code?

Simplest solution I can think of is, reduce unnecessary XML tags and reduce them down to attributes to save bandwidth. Is there an easy way to achieve it, our classes has more then 50-70 properties, I understand it will be nightmare to add attributes to each property but we dont know how to do it in case of SOAP.

[Code]...

View 2 Replies

Iphone :: Flex - Use AMF Instead Of JSON (for Web Services)?

May 29, 2010

Although iPhone support JSON natively, AMF is a binary protocol and it supposes to use much less bandwidth. Do you think using AMF is a good idea?Just found this AMF library in cocoa (Objective-C):Here's the famous benchmark that shows AMF is smaller and faster than JSON + gzip in Flex:

View 5 Replies

Flex :: Ignores Changes In Services-config.xml?

Jun 22, 2010

Today I tried to connect to other domain.I changed url of endpoint, but it looks like flex just ignores my changes.I am sure that an old url doesn't exist in any file in src directory,I even renamed services-config.xml to services-config2.xml, cleaned and rebuilded project many times, even made a release build, but it still connects to the same domain.I have tested flex application in localhost and in the same domain, that has AMF services, but it works in the same way.My services-config.xml is:

<?xml version="1.0" encoding="UTF-8"?>
<services-config>
<services>

[code].....

View 3 Replies

Web Services - How To Call Web Service From Flex

Mar 28, 2012

I have some problem with calling web service from flex. I have service with name UserService with one method string GetData(int i). I want to call this method from flex and get data. My code is here:

protected function application1_creationCompleteHandler(event:FlexEvent):void
uService = new UserService();
uService.addEventListener("hello", echoResultHandler);
uService.GetData(1);

[Code]...

View 1 Replies

ActionScript 2.0 :: Consuming Authenticated Webservices?

Nov 4, 2009

Using the Webservices connector, I'm able to connect to any public webservice but when I try the same method to connect to a webservice that requires authentication I get URL not found error.Is there a way to pass the web-services credentials through Flash or any work around?

View 0 Replies

Flash :: Securing .net Web Services For Flex / AIR Applications

Oct 15, 2009

What would be the best way to secure .net web services used by a flex application (both desktop and browser) that requires login? I thought about requesting the user and password in every method of the web service, and having them stored as variables in the flex app, but I don't feel like this is the most elegant way.

View 2 Replies

.net :: Using Classes Obtained Form Web Services In Flex

Mar 30, 2010

from flex, when calling a .net web method that returns a custom class, I always recieve an ObjectProxy, even if I have the same class created on flex. How do I manage this ObjectProxy as the class I have?

View 1 Replies

Flex :: Web Services - How To Handle SOAP Response In 3

May 29, 2010

[Code]...

I want to read SOAP response in flex,am some what new to FLEX

View 1 Replies

Flex :: Web Services - Fusion Charts With Webservice

Mar 31, 2011

I have flex project where i want to call webservice and pass values from it to the xml file to update fusion chart xml My code is

[Code]....

View 2 Replies

Flex :: Web Services - Security Error Accessing URL

Sep 11, 2011

I had this error in a Flex Application that I couldn't figure out. Every time the app attempted to access the Web Service it returned the error Security Error Accessing URL.

View 1 Replies







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