ActionScript 3.0 :: How To Use WCF Webservice
Jan 10, 2012can i use WCF webservice in actionscript 3.0? is it possible thn how?
View 1 Repliescan i use WCF webservice in actionscript 3.0? is it possible thn how?
View 1 RepliesLet me know if some one has experience of using c# dot net webservice in AS3.
View 1 RepliesIs it possible to use webservice with actionscript 3.0 and flash? know it was possible with actionscript 2.0 and actionscript 3.0 with flex, but under flash..
View 6 RepliesI have a Flash movie written in Flash 8 with AS2 that is attempting to access a webservice on a server that is https.
I can't get the webserviceconnector to even load the WSDL file.
I have a crossdomain.xml file at the root of my http/https server that allows the domain the swf is being served from to get in and it has the secure attribute for that domain set to false, but it still can't get through.
Not sure what I am missing at this point.
I have a quick update. I figured that since my webserver is serving the secure site up under a different Website in IIS that I needed a crossdomain policy file at the home directory of the site. I have placed it there and when the movie loads I am using loadPolicyFile to get the crossdomain file which still loads into flash without issue but I still get a WebServiceFault when I try to load up the WSDL.
Can anyone point out a crossdomain example where a flash movie on an http domain is accessing a webservice on an https domain?
I need some sort of way to handle Magento's customer login, customer account creation and order checkout via some kind of webservice to be used for Flash, preferably XML.As far as I know the Magento API doesn't have these features. I found the Mammoth Webservices extension but it seems that the project is inactive judging from heir site.
View 1 RepliesI'm developing a Flex app which is connected to a webservice - but I'm curious about what is generally best practice for handling the data locally. My webservice provides fairly small XML docs containing all the details about a certain object - is it considered better to parse that XML into objects for use in my UI, or just store the XML and access it directlyMy instincts say the former, though I'm sure doing a lot of parsing / encoding XML objects that I'm wondering if I shouldn't just add and remove elements when needed.
View 2 RepliesI am using flex/actionscript. i have created a webservice with following path [url]... When i run the above url its works fine. but when i use it using httpservice and send method it is giving me error. event[code]...
View 1 RepliesI am creating a flex dashboard using flash builder. I initially created a flex web based program without any server. This dashboard gets data from SAP query_view_data. And works fine. Now i wanted to host this on IIS. So i created released built. However after deploying on IIS. I receive error : "Security error accessing url.Unable to load WSDL. If currently online, please verify the URI and/or format of the WSDL ". Is this because of some crossdomain.xml. I added this to my webroot, However no luck.
View 2 RepliesI have an application in Flex how create and XML in UTF-8. When I open it everything is ok.I send it to a server using a webservice (the xml is send like a string), the server receive the xml but all the accent, degree symbol and some other stuff are gone.
I create an XML and save it in a file
var xml:XML = myObject.xml;
file = new File(myObject.path);
var fileStream:FileStream = new FileStream();
[Code].....
I am calling a webservice by doing the following:Code:var service = new WebServiceHowever the flash document doesn't always site onI don't want to make lots of different versions ideally i need it to auto update no matter what server it is on. Each site will have its own web service.
View 2 RepliesWhat I am in the process of doing is building an application where I can use the FileReference class to pass a file to any server via ftp provided you supply the uri, username, and password.Right now I am very close but it's kind of like having 2 children that do not play well together. I can connect to the web service through flash, use the FtpWebRequest object in .NET to establish a connection to a server located elsewhere via FTP, and login. Where I am having trouble is passing a file:ByteArray format to the webService that is to receive the byte[] file format. These 2 kiddo's dont want to play nice together.WebService Code in C#:Below is one of my methods that connects and returns a confirmation back to flash.[code]
View 4 Repliesfirst pls excuse my english...I'm trying to get data from a webservice placed on an other server, parse the data and display it in a datagrid. I'm using the WebServiceConnector component. I placed a crossdomain.xml on the remote server, allowing my domain (<allow-access-from domain="*.mydomain.corp" secure="false" />)
Everything works fine within Flash. (Ctrl+Enter) Data is recovered, parsed and diplayed propoerly.
But when i try somewhere else, it doesn't work at all. (local swf, local html, nor in http on mydomain)
I placed dynamic txt fields to trace the status of the webserviceconnector, throught a listener on "status" event. I have of course an other listener for "result" event, which launches parsing and display.
[Code]...
I want to access data from websevice. How to pass my webservice in following code?
//***************************************************AS*************** **************
imgname_list = new Array();
BrandID_list = new Array();
[Code].....
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]...
I have My Sharepoint Web Service URL, but when i try to access it i get HTTP Request Error. My Share point Webservice has credentials in it. I have also set that in Flex.
webService.setRemoteCredentials("CITMOSSAdministrator","Pa$$w0rd"); When i trace the url, my console does read the XML, but i am unable to call the method. It throws me HTTP Request Error.
I have created webapplication in which I am getting the error:-
ypeError: Error #1009: Cannot access a property or method of a null object reference.
at FlexSBTSApp/displayString()[E:UsersUser1DocumentsFlex Builder 3FlexSBTSAppsrcFlexSBTSApp.mxml:38]
[code].....
I am working on a flex application which makes calls to an .NET webservice. I am trying to follow the MVC design pattern. I have created a model, which stores all information received from the webservice. The webservice itself is created by actionscript in the controller. The view in my case, consists of various user-defined components (multiple .mxml files).
The Model is a singleton class, and each of the views accesses a getInstance of the model. The question is how do i access the webservice (i.e. controller) from each of these components? Does the controller also need to be a singleton class just like the model? and let each component get an instance of the controller in order to access the webservice?
I am using a webservice deployed on SAP Web Application Server to create some charts. While migrating my FLEX application from dev to QA, I also wish to change the address of my target webservices in flex, so that they access webservices from QA. What I did was add the target server address as a URL parameter and add these URL parameters as flashvars in Flex.
var wsdlUrl= window.location.search.substring(1);
flashvars.serverUrl = wsdlUrl;
Now I try to access the flashvars during declaration of the webservice
<fx:Declarations>
<cscustomreportservice:CSCustomReportService
id="cSCustomReportService" useProxy="false" wsdl="
[Code].....
But the flashvars are somehow not accessible during the declaration time.
Is there any way I can pass the server URL during runtime so that the URL need not be hardcoded in the Flex application in anyway?
host in my webpage an swf, and through Cirrus I could establish a connection between two different users, that worked like a charm, BUT, I had to pass through msn the peer ID in order to establish that connection.I know that this part must be resolved by a webservice.. but, how can I make one, and, more important, how does it work?
View 1 RepliesI want to declare a webservice in .mxml and pass it to a function in a separate class. The problem: callresponder's lastresult never gets updated when the call is succesfully made.[code]...
View 1 Repliesto create a flash-application that works like this example:Combobox1 provide some country namesCombobox2 provide some city namesThe data should be provided with webservices (like .asmx).I want them to work together and when i choose country in Combobox1 all cities related to that country will be shown on the second Combobox2.I've searched alot for an answer but couldn't find any for AS2 and please now i need your support
View 3 Repliesbuilding this code to send a email... the person helping me on the web ran this code and got this trace returned:OK. So now it gets interesting. LOL. I just sent a message to YOUR service and got this:
SOAP (mx.messaging.messages::SOAPMessage)#0
body = "<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlnssi="http://www.w3.org/2001/XMLSchema-
[code].....
I have heard that Web Service class is not available in AS3.implementing a WebService in AS3 with authentication.
View 2 RepliesI am targeting Flash Player 7.I have created a call to a webService that retrieves the result Hello World, however, the value is only retrieved and displayed when viewed locally, when viewed online I get nothing.The embed and object script both have 'allowscriptaccess always' and the webservice is in the same domain.So I created a cross domain policy document just in case the web service resides on a different domain.URL...[code]Still works locally but a value is still not retrieved when viewed online.
View 3 RepliesI've got a movie that i'm calling a webservice from. When I run the movie in flash it downloads the service stub and makes the SOAPCall and loads the data as you would expect. But when i upload it to a site it loads the service stub makes the SOAPCall but "Received SOAP response from network" is not called.
About the files: I load the movie in an html file using UFO. There are some external interface calls before the webservice is called but these definatley return what is required for the webservice to run because the stub does not get downloaded if they don't return anything.[code]...
i am working on creating a custom application for FMS 3.0 that calls a webservice to validate the user coming in. I have tested the following sample code from the Server-Side ActionScript Language Ref. (See below) The URL has been changed to protect the innocent.
This codes seems to work fine when going to an unsecured site but the innvocation of the service never seems to go out when attempting it over SSL. The Server documentation says that outgoing calls like this should work over SSL. Is this true? If so what do I need to do to get it to work?
[Code]...
I am Working on set up of gmail web service and I am trying to pass parameters from a function after it connects to be sent in a email. It connects just fine but wont pass the peramiters it treats them as functions.
var ws:WebService = new WebService();
ws.addEventListener(Event.CONNECT, connected);
ws.connect("[URL]");
ws.cacheResults = true;
var initTime:Number;
[Code] .....
I get this Error:
TypeError: Error #1034: Type Coercion failed: cannot convert "myPassword" to Function.
Why it is trying to convert my parameters into a function.
I've managed to get the flex WebService class working with my Flash CS4 project.The problem I'm having is that If I do two calls in rapid succession to different methods of the same WebService,then I can't distinguish the results when they come back.In my project,my function onWebServiceData would trigger twice,but I couldn't tell which time was in response to Method1 and which was in response to
Method2.
How does one change / modify the Result property of a web service operation?
For example, I have declared my WebService as follows:
<mx:WebService id="ws">
<mx:operation name="Call_One" result="Call_OneRH(event)" fault="Call_OneFH(event)" />
[Code]...
I want to be able to change the result of the operation "Call_One" to another result, since I am planning to re-use the same web service, but the result would be treated differently.
Am not sure if this would work:
ws.operation.Call_One.result = "myOtherResult"
UPDATE: The problem was not to do with namespaces or flex at all. My webservice was returning the wrapped xml. I was blaming the language I had least experience with before questioning the java...I have a basic soap webservice that I am having trouble reading the result from in flex.I'm a solid java programmer and just trying to get my head around adobe flex.In the documentation I should be able to use "WebService" to return the result in e4x format.
<mx:WebService id="CurrentLayersWS" wsdl="http://localhost:8080/myproject/ws/myservice.wsdl" showBusyCursor="true" result="updateSelected(event)" fault="Alert.show(event.fault.faultString), 'Error'">
<mx:operation name="publisher" resultFormat="e4x">
<mx:request>
[code]....
Unfortunately, the event object seems to nested and encoded strangely. When I step trough with the debugger I see that responseXml is of type XMLList containing one element (at index 0) of type XML which just contains the following xml:
<sch:temp xmlns:sch="http://www.mycompany.co.uk/myproject/schemas" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns2:publisherResponse xmlns:ns2="http://www.mycompany.co.uk/myproject/schemas">
<getConfigurationResponse>
<configuration>
...etc
Why is my xml nested inside a document with a root node "sch:temp"?