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


Similar Posts:


Php :: Flash - Flex - Connect To Data Service Via PHP Versus SOAP?

Aug 26, 2011

I am writing an application in Flash Builder 4.5. I am also writing a PHP Web service to access data from our MySQL database. This Web service will be made available to third party clients for them to develop applications to access our database as well, via SOAP.

Is there a big performance difference between connecting to the service in Flash Builder via connecting directly to the PHP file vs. connecting to a Web Service via SOAP?I would kind of like to connect to this service the same way that our clients will, to make sure things stay as uncomplicated as possible for future development, but performance is my main priority.

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

Flex :: Cannot Access SOAP Service When App Is Compiled

Dec 9, 2009

I've got a flex app that hits a remote SOAP service and populates a list with the results.

It works fine when i run it through flex builder, but when i compile the application and move it onto a webserver it can't access the services.

I've tried it from a standalone webserver and on my own machine. I'm assuming that there's a security issue that i've missed as i can't think of any other reason why it's ok in flex builder but not when compiled on the same box.

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

Service - Flash Builder: 4.5-1 : Combination "Localazation Compiler Optons" + "Generated PHP Webservice"?

Aug 18, 2011

I've created a GUI in Flash Builder 4.5-1 with localization (copylocal as admin, created the files, implemented in he GUI...) and all works fluid and very well.I now want to generate a PHP service from my DB and that also works ok.When I try to run the application I get the error he doesn't find: Unable to open 'c:Program Files(x86)AdobeAdobe Flash Builder

4.5eclipsepluginscom.adboe.flexbuilder.project.nl1_4.5.1.313231
len_US nl_BE fr_BE de_DEdcradSwcs4.5locale'

When I retrieve the compiler options (additional languages) it works without errors.Do I need additional steps to be able to use "Locale" and "Services" combined?I used to work with Flex Builder 3 and didn't have the issues....

update, still having the issue, isn't there nobody out there? This is the error i get...unable to open 'C:Program Files (x86)AdobeAdobe Flash Builder 4.5eclipsepluginscom.adobe.flexbuilder.project.nl1_4.5.1.313231

len_US de_DE nl_NL
fr_FRdcradSwcs4.5locale' XofferSales Unknown Flex Problem

it happens from the moment I want to use localization + php services....

View 1 Replies

Flash AS1/AS2 : Send A Simple SOAP Message To A Web Service On Another Domain?

Feb 16, 2010

Is there a way to send a simple SOAP message to a web service on another domain, while not caring about the response (this is simply a small data push) in an old flash app?

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 :: Hints Regarding The Use Of ANTLR V3 Generated Files In Flash Builder 4.5.1

Jun 22, 2011

According to these instructions, I'm trying to use ANTLR generated *.as files in a current Flash Builder 4.5.1 project. Therefore, I added this ANTLR's Actionscript runtime to my project - without problems. I compiled lexer/parser specs using ANTLRWorks without problems too. I added the language option to the source *.g file to make ANTLR generate Actionscript sources:

[Code]....

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

Asp.net :: Web Service Creating New Objects When Null Supplied Via Soap

Jul 18, 2011

I have an ASP.NET 2.0 web service and am using it in (among other things) an Adobe Flex application. I have a strange issue where if I send an object to the web service using soap with some fields that are null the webservice is actually creating new objects on the other end (and not putting any data in them).[code]In this example SomeFieldThatShouldBeNull and SomeFieldThatShouldBeNull2 are being created as new objects by the webservice. It is vital for the application that does not happen.

View 1 Replies

Actionscript 3 :: SOAP Web Services In Flash Builder 4.5 Won't Accept A String With Spaces Or Quotes

Oct 7, 2011

When using SOAP web services in Flash Builder, I am able to use the web services tool and test making service calls without any issue.I can pass strings that contain spaces, double and single quotes with great success. when I write code to send a string containing spaces or quotes, the web service doesn't return a success response.If I remove the quotes and/or spaces, success.I've tried wrapping the string in tags, but I don't know what else to do.

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

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

Flex :: SOAP Or Flex Plus Server Side SOAP?

Nov 10, 2010

I'm looking to consume SOAP services -- read only -- from a third party web service. I know Flex has strong SOAP functionality. I am wondering, however, if there is any benefit to using e.g. Ruby or PHP to consume those 3rd party services and then passing the results to Flex, versus doing it all in Flex. Other than decoupling the client code from the SOAP logic, I can't really think of one.

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

Web Service - "SOAP Response Version Mismatch" While Making A Call?

Oct 30, 2009

I have written a flash application and was unsuccessful in consuming the web service from Amazon. The error that I got was "SOAP Response Version Mismatch" while making a call to:
 
URL: http:url].....
 
However, we were able to call the following successfully.

View 1 Replies

ActionScript 3 :: Enable Hardware Acceleration For SWF Generated In Flash Builder

Oct 5, 2011

Is it possible to enable hardware acceleration (Level 1, Level 2) for a swf generated in Flash Builder. I don't use the Flash IDE and therefor I have no access to the "Publish Settings" in the Flash IDE? Maybe there is some compiler arguments? [URL]. To enable the SWF file to use hardware acceleration, select one of the following options from the Hardware Acceleration menu:

Level 1 - Direct Direct mode improves playback performance by allowing Flash Player to draw directly on the screen instead of letting the browser do the drawing.
Level 2 - GPU In GPU mode, Flash Player utilizes the available computing power of the graphics card to perform video playback and compositing of layered graphics.

This provides another level of performance benefit depending on the user's graphics hardware. Use this option when you expect that your audience will have high-end graphics cards. If the playback system does not have sufficient hardware to enable acceleration, Flash Player reverts to normal drawing mode automatically. For best performance on web pages containing multiple SWF files, enable hardware acceleration for only one of the SWF files.

Hardware acceleration is not used in Test Movie mode. When you publish your SWF file, the HTML file that embeds it contains a wmode HTML parameter. Choosing Level 1 or Level 2 hardware acceleration sets the wmode HTML parameter to "direct" or "gpu" respectively. Turning on hardware acceleration overrides the Window Mode setting you may have chosen in the HTML tab of the Publish Settings dialog box, because it is also stored in the wmode parameter in the HTML file.

View 1 Replies

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

Use Flex SOAP Classes In Flash Pro?

Jun 21, 2011

Is there a way to use the soap web service classes that FLEX provides from Flash CS5?

View 1 Replies

Actionscript 3 :: Make Flash Builder Package Explorer Emulate Flex Builder's Navigator Window?

Apr 21, 2010

Does anyone know if there is a way to make the new Package Explorer window in Flash Builder emulate Flex Builders 'Flex navigator' window?

Bottom line is I don't always need to peer into SWC's, and I don't like having a 'default package' automatically created for me. Not sure why the interface wasn't made simpler, allowing access to more power and complexity only if necessary. I want to focus on the code, not on how to navigate and use the bells and whistles in the coding environment.

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

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 - Importing Flash Builder 4.5 Project Into Flash Builder 4.5.1?

Jun 27, 2011

I have an AIR project that I was working on Flash Builder 4.5 which now I'm trying to import to my updated Flash Builder 4.5.1 and it is prompting me to fix some paths before the import is completed. I'm kinda clueless what I should put in those fields.

[URL]

The project access a web server to retrieve data using JSON.

View 2 Replies

Flex :: Soap - Possible To Create A Flex Contact Form That Submits Data To Salesforce.com As A New Lead?

Oct 7, 2011

has their own web-to-lead form that can be used to send leads from a website contact form. But I want to submit leads from a contact form inside a flex application. I can't see anything in the documentation, or on Google about this. Is it possible?

View 1 Replies

Flex :: Add XML To SOAP Request In It?

Jun 21, 2010

I have a Flex service defined like [code]...

View 2 Replies

Flash :: Flex - Migrating A Project From Builder 4.0 To Builder 4.5 Is Producing The Error "The Required Skin State 'disabledWithPrompt' Is Missing"

Nov 28, 2011

I am trying to migrate a project from Flash Builder 4.0 to Flash Builder 4.5. After Flash Builder prompts me to choose my new SDK, I choose 4.5, Then I get the following error:" error "The required skin state 'disabledWithPrompt' is missing".

View 1 Replies







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