Flex :: Builder - Create A 3 HTTP Service With Variable Arguments?

Aug 6, 2009

I need to call an HTTP service using Flex that has variable arguments. I'm using Flash Builder 4 (Gumbo) to create the service definition, but there's no UI for variable arguments, and the subclass of HTTPServiceWrapper that it creates doesn't seem to support it.

View 1 Replies


Similar Posts:


Adobe Flash Builder Http Data Service Call Fails Only After Export?

Dec 8, 2011

I wrote an app using adobe flash builder that makes an http data service call to a website.

When I build and launch the app it loads in my browser (the address in the broswer is C:Userspath omyapp.html) and works perfectly. However, when I upload the app to my website or even launch it from outside the project build directory, the HTTP service call fails with the popup

Security error accessing url
Destination: DefaultHTTP

Of course I googled this error and realized it may have something to do with a 'crossdomain.xml' in my web root directory. I tried this and it continued to fail.
Below was my crossite domain file

<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<allow-access-from domain="www.my_domain_for_http_service.com" />
</cross-domain-policy>

I'm using the free trial version of Adobe flash builder, but I do not see anything indicating that this has to do with the error.

Data from http service call is in xml format.

View 1 Replies

Flex :: Filling Datagrid From Remote Http Service?

Jul 21, 2009

I am trying my first flex application. And have a problems adding data from xml http service to datagid.

My xml file looks like this:

<players>
<player>
<name>test</name>

[Code]....

The problem is that nothing is shown in the datagrid

View 1 Replies

Flex :: Cross Domain - Error On Using HTTP Service

Dec 17, 2010

I'm trying a simple tutorial of retrieving RSS feeds from yahoo and keep getting this error: RPC Fault faultString="Security error accessing url" faultCode="Channel.Security.Error" faultDetail="Destination: DefaultHTTP" I've seen some articles that say I need a crossdomain.xml file, but I don't really know how to set this file up and how to use it from the Flex SDK compiler (mxmlc).

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

Php :: Actionscript 3 - Read Data Into Combo Box From Page Using Http Service For Flex Spark?

Mar 8, 2012

i am trying to put data in to combo box from php page using http service .there are 2 data records in the php page but instead of displaying data it displays [object object] [object object] in the combo box list

here is the mxml code

@namespace s
"library://ns.adobe.com/flex/spark"; @namespace mx
"library://ns.adobe.com/flex/mx";

[Code]....

View 1 Replies

Flex :: Use One Service Definition For Testing And Another For Deployment With Builder?

Sep 22, 2009

I would like to use different service definitions in a Flex app depending on whether I'm running on:

My local developer machine
The test tier
The QA tier
The production tier

My services are all AMFPHP remote objects, living on different hosts and at different locations depending on which tier I'm on. How can I have my flex app choose the 'correct' tier at runtime to connect to?

View 2 Replies

Flex :: Service - Builder - Can't Find ManagedQuery Or ManagedOperation

Apr 18, 2011

This is the response to my question/error I get, but I don't know how to implement it, It turns out that my issues were caused by having two instances of the same data service class in two different components that were used in the same page. If I changed the components to share the same instance of the data service, then everything works just fine. how to define a service in the main application or elsewhere which can be shared between components?

[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 :: Builder Import Web Service Errors In Autogen Code?

Oct 8, 2009

I'm trying to import a web service with the Flex builder feature (Data > Import Web Service). The process proceeds as expected and the classes are generated based on the web service description. The code is generated with compile errors in it though.There are 20 errors of 2 varieties. I've included a sample of the errors below.It looks like an error in the auto gen. The auto gen code is trying to dispatch an object of ArrayCollection type. As far I know that isn't possible. rror examples:

1067: Implicit coercion of a value of type net.responsys:ListTablesForCampaignResultEvent to an unrelated type flash.events:Event. Responsys/src/net/responsysResponsysWS57.as
1119: Access of possibly undefined property headers through a reference with static type

[code].....

View 1 Replies

Flash :: Flex - Manipulate Data Returned From PHP Service In Builder

Mar 12, 2011

I'm using the data/services in Flash Builder 4 to access the php functions of a site within an Air based Crud, and figuring out the most efficient ways to work with the data objects that come back.

[Code]...

The data comes back as an associative array, which is fine if I want everything from it to be treated the same. But I'm not sure how I am supposed to pull a particular column from the array without having to go through a for loop to parse through it.. since right now the contact name would be at allContacts[i].name.

Basically I want to make a list of the names from the allContacts, so I want an array of allContacts[i].name to set as the data provider for a element. Is there any way to get that done without having to write a for loop to convert it into a new array or writing a new php function?

View 1 Replies

Flex :: Using A ServiceStack Generated SOAP 1.1 Service In Flash Builder

Nov 2, 2011

I have been tinkering around with ServiceStack to expose some web services and have been very impressed. One potential consumer of these services will be a Flex application. Flash Builder (the Flex IDE) has a tool that auto-generates proxy AS3 classes for SOAP web services based on the wsdl - at this point in time only for SOAP 1.1.

If I recreate the HelloWorld tutorial, and try to use the SOAP 1.1 wsdl to autogenerate classes, I get the following errors in Flash Builder. There was an error during service introspection. The part 'parameters' has an invalid value 'HelloResponse' defined for its element. Element declarations must refer to valid values defined in a schema. The part 'parameters' has an invalid value 'Hello' defined for its element. Element declarations must refer to valid values defined in a schema. I am sure this is a problem with Flash Builder's tool. I am wondering if anyone has been successful in auto-generating AS3 classes from a ServiceStack wsdl?

View 1 Replies

Flex - Error #1088 On Passing A Class As A Parameter For Web Service In Flash Builder

Feb 8, 2011

I need to pass a struct and a string in a web service. I am using a WebService components to do so.upon my search, there is no struct type in actionscript and so I used a class for that one.

public class UserInfo{
public var name:String;
public var dateAdded:Date;
}

and I'm filling it up so that I can pass it on the web service like this:

var newUser:UserInfo = new UserInfo();
newUser.name = "myName";
newUser.birthdate = new Date();
webServComponentId.operationToCall(newUser, "password");

Upon sending this request, it prompts me an error of Error #1088.

the component that is being called by webServComponentId.operationToCall(newUser, "password"); is this:

<s:WebService id="webServComponent" wsdl="[PATH OF WSDL HERE]" >
<s:operation name="operationToCall" result="functionToCallWhenResult(event);" fault="Alert.show(event.fault.faultString)" />
</s:WebService>

Basically it is a web service via MXML. So when I call the operation, it always go to fault part and shows Error #1088

View 1 Replies

Actionscript :: Override Flex Netconnection Call Method That Uses Variable Arguments

Jun 16, 2010

I need to override the call method from NetConnection class, the signature of the method is:

[Code]...

View 1 Replies

Actionscript :: Flex 4.5 - Assigning A Variable After Service Data Load

Nov 20, 2011

I have generated a service call to a service called ServiceName.getService() - I can successfully pull data displayed inside mxml layout elements, but, instead of displaying it, I just want to assign it to a global.

I always get an error on the second line below - apparently the value has not been fetched yet. I have also tried adding a listener, and setting the global value on COMPLETE, but that is apparently never called. (I am guessing this generated service call stuff does not actually trigger a COMPLETE?)

Short question is: how do you simply assign a variable after you have loaded it via a service data call. (Not just HTTP)

getServiceResult.token=ServiceName.getService();
GlobalVars.variablename = getServiceResult.lastResult.variablename;

View 1 Replies

ActionScript 3.0 :: Security Error While Flash File Accessing An Http Service

Jul 13, 2010

i'm trying to integrate with a plain http service which has both http/https flavors available for consumption. sadly they never thought of a flash client consuming these services and it will take another 6 months to roll a crossdomain xml policy file on their service (there security team has to approve the process, pm team has to include it in their roadmap and blah blah). i've already implemented the flash client which works fine from a flash ide security sandbox. is it possible to get around this crossdomain policy requirement.

my flash file will always be hosted as [URL] and i will be communicating with [URL]. i'm saying [URL] because they do some loadbalancing at the backend and allocate random servers on connection (which is fine from their server side design perspective). I tried putting following two lines in the constructor of my movie clip, but couldn't pass through the security sandbox error:

View 2 Replies

Flex :: Unable To Create A New Instance Of Type 'some Class'. Types Cannot Be Instantiated Without A Public - No Arguments Constructor

Mar 1, 2011

I have a class with constructor and overloaded methods in it. When i try to import that class using blazeds i get an error saying [RPC Fault faultString="Unable to create a new instance of type 'some class'." faultCode="Server.ResourceUnavailable" faultDetail="Types cannot be instantiated without a public, no arguments constructor."] How to import class having overloaded methods using blazeds

View 1 Replies

Unable To Connect To .NET 4.0 WCF Web Service Within Flash Builder Burrito?

Mar 3, 2011

I'm trying to connect to a very simple .NET WCF web service (created in .NET 4.0) within Flash Builder Burrito and the process hangs on "Introspecting the service". I get no errors -- it just hangs. The web service is on my local network, although not on my local machine.

View 1 Replies

Flex :: Local Variable In Flash Builder 4.5?

Nov 20, 2011

I have two scripts in a View, one script is inside a Component. In the Component script I need to add numbers from data as they are added to a list and then display the total in a label placed in the View.If I declare the variable in the first script, the Component script can't see it and if I declare it in the Component Script the label can't see it.How will I declare it so that everyone in the view can see it?Here is the code, the problem is where should I place the var MyTotal so it can be used anywhere in the view:

<s:view
<fx:Script>
<![CDATA[
//if I place it here the next CDATA inside IconItemRender can't see it.
private static var MyTotal:Number=0;

[code]....

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

Flex :: Adobe - Create A SWF WITHOUT Using Flash Builder?

Dec 6, 2011

if I can create a SWF in Flex WITHOUT using Flash Builder ?

View 4 Replies

Flex :: Assign Variable As Class In Flash Builder 4 Hero SDK

Jan 17, 2011

I am trying to assign a variable to a view navigation as follows:

protected function list_clickHandler(event:MouseEvent):void
{
var name1:String = list.selectedItem.vPage;
var name2:Object = list.selectedItem.vPage.valueOf();

[Code]....

As the View is presented as a static and not a variable. When you try to submit it as a variable in any format (String, Object) an error occurs.

Error #1034: Type Coercion failed: cannot convert "IM" to Class.

how I can send the (View)Class as a variable or if this is a bug in the SDK

View 1 Replies

Flex :: Get Flash Builder To Let Me Create Run And Debug Configurations?

Mar 13, 2012

My project is open - I see the expanded sub-folders. There are not compile errors showing up. Under the project's properties I see Run/Debug Settings but the New button is greyed out.

View 1 Replies

Flex :: Builder - Runtime ReferenceError: Error #1065: Variable Is Not Defined

Aug 22, 2011

Ok, I need some help on this one. I upgraded from Flash Builder 4 to Flash Builder 4.5 and have switched my project to the 4.5.1 sdk. I use an ant script to build my project, so I modified it to use the appropriate flexTasks.jar, mxmlc, etc...

Now, if I start out with a blank bin-debug folder, then build and run the app everything works fine. However, if I then make a code change and build (without deleting the bin-debug) then run the app I get a runtime error:

[Code]...

View 1 Replies

Flex :: Flash Builder 4: Variable Not Displaying In Debug Window (Variables Tab)

Dec 15, 2011

In my flex 3.5 project, I have a class (MyItem) extending Canvas. In this I have declared a private variable named itemInfo which is type of ItemInfo (which is another subclass of Canvas).

I wrote code to hide/show the iteminfo when the mouse is over/out of MyItem. I am not getting any error but it is not showing the itemInfo as expected, when debugged the code, surprisingly the variables tab in debug window does not have the variable itemInfo at all.

I have declared a dummy:int variable and it is also not visible.

View 2 Replies

Flex - Passing Optional Arguments (rest) Through To Another Method That Takes Optional Arguments?

Feb 3, 2010

I have a "format" method that works in a similar manner to the C# String.Format method, with the following signature:

[Code]...

View 3 Replies

Flex :: Create Tree View (like Expandable List ) In Builder For Mobile?

Sep 16, 2011

I want to create a tree view (expandable list ) in flex 4.5 builder mobile,Is it possible for web projects in flex builder for web [URL]

View 1 Replies

Create A Web Service?

Feb 14, 2011

I building a website with Ruby on Rails framework.The site will contain a flash application that will interact with the rails application using web service.My partner builds the flash application and he told me that the flash application interacts through WSDL file.

I am new to web services. I would like to know how to create the WSDL file, and how to make the interaction between the rails application and the WSDL file.

View 2 Replies

Flex :: Convert Flex Builder 3 Project To Flash Builder 4

Oct 6, 2009

I just upgraded to Flash Builder 4 (beta 2) from Flex Builder 3 which I have been using since it came out. Problem: All the projects that were in my workspace from Flex Builder 3 did not carry over into Flash Builder 4 (e.g. in the "Flex Navigator" view if FB3). Flash Builder 4 now uses the .FXP format to manage projects, but Flex Builder 3 did not. Is there an easy way to get all my projects back into Flash Builder 4?

View 2 Replies

Actionscript 3 :: Wrapping A Variable-length-arguments Function In AS

Jun 9, 2011

Is it possible to wrap a variable-length-arguments function in Actionscript?[code]but it didn't work since sprintf was called with just 1 extra argument, i.e. the Array args.

View 2 Replies







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