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


Similar Posts:


Java :: Integrate Services With Flex UI Built Using Mate Framework

May 24, 2010

I am new to Flex and need to integrate Java services with Flex UI built using Mate framework. Can anyone point me to any website/links or show an simple example of integrating Flex UI on Mate framework with Java remote services? A simple integration of a "LoginService" will be good enough.

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

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 :: Dispatching A Variable In Mate Framework?

Oct 14, 2009

I have a grid, when i click on the edit button it goes to edit page... but i need the value in the grid also to be passed to the page. this.dispatchEvent(new DepManagementEvent(DepManagementEvent.EDIT_NAVI));The above code lands in EDIT page... how can i move the values too.My Parent Page code.

private function editForm():void {
var event:DepManagementEvent = new DepManagementEvent("Edit Page",true);
dispatchEvent(event);

[code]......

View 1 Replies

Actionscript 3 :: Flex - Use Framework Like Cairngorm Or Mate?

Feb 13, 2010

From what I understand a framework reduces complexity in areas that are common, like a log-in system. I use ASP.NET MVC at work and have done some work in Zend Framework but do not get how a framework helps with client side development. The reason ASP.NET MVC is used at work is for Unit Testing - does a Flex framework help with this too? why I should or should not use a framework with Flex?

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

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

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

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

ActionScript 2.0 :: SOAP WebService WSDL Caching

Apr 6, 2008

I start the service in Actionscript with:[code]My issue is that the server that my WSDL is on, seems to be very slow, and the WSDL file is very large. So it takes around 5 seconds to initially grab the WSDL file. This wouldn't be too bad, but for what I am doing I need to create about 5 or more WebService objects all using the same WSDL (this is a must). It seems pointless to download the WSDL for each new object when I know it is the same.What I am wanting is a way to maybe cache the WSDL locally, or in flash(maybe as an XML object), then apply it to a new WebService object. Or even if someone could tell me how to access the data inside the WebService Object and apply it to a new one.

I have tried a few ideas. I tried using a "clone object" script to clone the WebService object once the original has loaded the WSDL. But it crashed flash because the loop is too big.Is this a case to use a "prototype"? I'm not too sure what it even is. Would it be useful in this situation?

View 2 Replies

Flex :: Localization - Use Localized Runtime Framework Resources?

May 10, 2011

By default, Flex uses signed .swz files to hold the Flex Framework classes. I noticed that under Adobe Flash Builder 4 > sdks > [version] > frameworks > locale > [locale] there are multiple languages supported.en_USen_GBzh_CNetc etcThe files in these directories vary in that they contain a "_rb.swc" at the end of each file. Files include datavisualization_rb.swc, spark_rb.swc, framework_rb.swc, etc etc. These are different from the rsls signed framework resources stored as .swz in framework .rsls. Since localized signed versions of the framework don't appear to be available, can I use these locale > [LOCALE] .swc versions instead as RUNTIME SHARED RESOURCES?

I DON'T want to compile different versions of my app for each locale, rather want to link the localized framework resource libraries at runtime. It would be nice to have the contents of the sdks > [VERSION] > frameworks > locale directory copied into my bin-debug/bin-release folder when I build my app.Is this possible? How would I set this up in Flash Builder 4?My assumption (I know about assumptions) is that there is a way to set up the Flex Build Path or supply compiler options that would cause all of the locales stored in the locales > [LOCALE] folder to be included into the bin-debug/bin-release of the project.

View 1 Replies

Flex :: Runtime Loading Of Localized Framework Files?

Jun 8, 2011

According to the Adobe asdocs, Flex framework files are supposed to be able to be loaded at runtime. These localized framework files, the ones that exist at (on windows) C:Program Files (x86)AdobeAdobe Flash Builder 4.5sdks4.5.0frameworkslocale, are responsible for items such as button text on Alert Dialogs, and a host of other controls. My expectation is that once these framework files are loaded I would see these resources available in my Flex app.

I've set up my project as follows:

MyProject
-src
-Flex4.5
-Referenced Libraries

[code]....

Now the asdocs state that in order to do this, you have to set the compiler settings to read

-locale=en_US,da_DK,de_DE,es_ES,fi_FI,fr_FR,it_IT,ja_JP,ko_KR,nb_NO,nl_NL,pt_BR,ru_RU,sv_SE,zh_CN,zh_TW -allow-source-path-overlap=true -source-path=locale/{locale}

which I have done.My Build Path Libraries for Flex 4.5 - C:Program Files (x86)AdobeAdobe Flash Builder 4.5sdks4.5.0 are set to be Runtime Shared library (of note, the {locale} subfolder says "Merged into code")

But when I change the language in the browser, I'm not seeing any of the framework resources.Also, when I build my project, I don't see any indication of the locale-oriented resource files in the bin-release. Since we only deploy the contents of the bin-release folder (and not the entire project), how is this supposed to work?I am also seeing .swz files in my bin-release (and I know these arent the localized framework resources).

Does anyone have any experience with Runtime Framework Localization?? What am I doing wrong? My expectation is that once I build my project (with the framework resources externalized) that the app would be able to load those resources, but this isn't happening and I am not interested in compiling a different version of my app for all of the locales I support.

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 :: Mate Not Catching Event In EventMap?

Jan 12, 2010

In my AIR application I am having problems catching dispatched events in my eventmap. The class that is dispatching the events looks like this:

Shortcuts.as
[Event(name="centeredZoomOut", type="flash.events.Event")]
public class Shortcuts extends EventDispatcher
{
// Event Names

[Code]...

View 1 Replies

Actionscript 3 :: Mate Not Listening To Events - Flex?

Jan 23, 2011

I am working on a simple project involving flex 4 and Mate framework. When I am including Mate event map in fx:declarations tag in mxml file, and when I fire up an event, Mate event handlers listen to events and act upon it.

The issue is this, in action script based project, when I instantiate the eventmap class(this is in mxml file only) and keep it in top and fireup an event, instantiated eventmap is not listening to event fired up from action script class.

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

Flex :: In Mate, Sending Two Or More Requests To The Server Simultaneously?

Sep 29, 2010

I'm using Mate's RemoteObjectInvoker to call methods in my FluorineFX based API. However, all requests seem to be sent to the server sequentiality. That is, if I dispatch a group of messages at the same time, the 2nd one isn't sent until the first returns. Is there anyway to change this behavior?

View 1 Replies

Flex :: Handling Event Inside Loaded Swf In MATE?

Sep 12, 2011

Can I handle an event inside a loaded swf file(using swf loader) using MATE when my main application fires the event ? i want to make a remote service call based on the data i get from the main applications event , and then populate my loaded swf .

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

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

Flex :: Auto-mate Build Of Multiple Swfs From Flash Builder 4?

Jun 10, 2010

I'm working on a project that has a Main.fla and a Preload.fla. I am doing all the coding in Flash Builder 4. Each time I want to test I have to go to Flash CS5, publish Main.swf and then run Preload.swf. Is there a way to automate this process so I can just press the "Run Main" button inside Flash Builder 4 and all that is done automatically?

View 1 Replies

Actionscript 3 :: Comparison Between Mate Swiz And Robotlegs Frameworks For Flex Development

Jul 5, 2011

My company is willing to reffactor its biggest and heaviest project introducing some kind of framework. Are there good online source/issue/blogpost with comparison of these 3 frameworks - Robotlegs, Swiz and Mate?

View 4 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 :: Actionscript 3 - Mate Doesn't Cache Instance - Created With Object Builder

Aug 16, 2010

If you once run an ObjectBuilder the object instantiated will be cached and next time you use an PropertyInjector or something else, the instantiated object will be used instead of creating a new object. Or at least this should be like this :) But in the example below it seems that mate tries to instantiate the object again: The following error occurs:

[Code]...

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

Flex :: Call A SortCompareFunction On Initialize?

Dec 3, 2009

I want to call the sortCompareFunction for a particular row when the grids first loads. Is this possible? Otherwise is there a way to call a sort method on grid load after it has been asssigned the dataprovdier has been updatad

View 2 Replies

Flex :: Sqlite3 - Using ApplicationComplete And Initialize Together?

Sep 26, 2011

<?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"

[Code]....

Is that because i used both applicationComplete and Initilize together ?

View 1 Replies







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