Flex :: Replace An Existing XML File Using Webservice In It?
Jul 15, 2011
Is it possible to Replace an existing XML file using Webservice in Flex(browser-based application)?
I wanted to replace an existing xml file with new xml file of same name for example 'dashboard.xml'.
How can i replace this file from Flex browser-based application? can this is possible using webservice?
what things should be taken care to implement this?
View 1 Replies
Similar Posts:
May 4, 2010
How can I consume a webservice that hasn't explicitely created a crossdomain.xml? I understand it's for security and to prevent cross-site scripting, but it does seem like a major limitation to the Flex framework. For example, if I want to consume a webservice, which is suppose to be language agnostic, then I can't with Flex. The webservice/server has to be specifically prepared for Flex/Flash. If it's not, then it cannot be consumed.
View 3 Replies
Jul 19, 2006
JSFL includes a nice command named addItemToDocument. This allows the script to add components from the component panel to the stage (and library). If the component already appears on stage and the addition is newer than the version on stage, a dialog appears with the question 'One or More library items already exist in the document.' That is a rather inconvient happening for automating this task. My main goal is to update the components in many files after I update a component. I don't want to manually respond to that dialog.
View 2 Replies
Mar 8, 2012
I have a data file on my computer that I need my flex mobile app to read from. Is it possible to put this file in a certain location on my computer so that the app will see it when I'm testing(ex-can i put it in a folder that is linked to the applicationstoragedirectory directory)?
View 1 Replies
Jan 24, 2012
I had flex project with few action script files.I want to make the project as swc file. So can i know how to create it as swc file.
View 2 Replies
Mar 2, 2007
I'm currently working on a project that contains a lot of data, about 14.000 records. This means an xml file of about 3mb. Now my question is: Should I use the xml file to load all the data at once, or should I use a webservice, that provides the data when I need it? Keep in mind that I'm new to webservices. And if I'm going to use a webservice: How do I store the data, in a mySQL database?How fast is a webservice?
View 1 Replies
Jan 22, 2009
how can we dynamically load webservice url from actionscript to the mxml file
View 2 Replies
Nov 20, 2009
All I'm trying to do is load an external .swf file into a precise location on the stage of my existing Flash file. I've spent an hour and a half on this site search and found nothing. What do I add to my loadMovie command to place the file at specific x,y coordinates?
View 3 Replies
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
Feb 6, 2010
I have a flash file that is 1.5mb in size. As it takes about 6 minutes for someone on dialup to load this file, I have created a smaller swf file and loaded the larger one from it but I don't want the larger one to begin to play until it's fully downloaded. How do I set this up? I have set up the action script 2 as follows: loadMovieNum("top2.swf", 0);
View 7 Replies
Sep 2, 2009
I'm trying to use e4x to retrieve xml from the result event thrown when my Flex webservice is successful.
This is a snippet of the returned xml
<p430:getRoomsResponse xmlns:p430="http://impl.service.com">
<p430:getRoomReturn type="p888:Room" xmlns:p888="http://vo.room.com" xmlns="http://www.w3.org/2001/XMLSchema-instance"> <p888:roomName> ABC
[Code]....
The full xml contains approx 40 of these "ROOM" types containing roomname,size etc.
I want to create a collection containing a list of the 40 room objects based on the xml above.
How can I map the objects from my xml to an object using e4x?
The purpose is to display the objects in a datagrid
View 1 Replies
May 6, 2010
If it's possible to call a webservice with an attachment from Flex Webservices?
View 1 Replies
Jun 2, 2011
I 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 Replies
Jun 11, 2011
I 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 Replies
Jul 12, 2011
I 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].....
View 1 Replies
May 1, 2008
I'm doing my final year uni project (1 week left) and having trouble with some actionscripting and xml.Basically I have all the usual AS coding sorted out for my XML data and it's working fine but what I want to do is replace the xml file with another xml file depending on what button (I have 25 different files/buttons to do) is pressed.
So button 1 will put in: xmlFile.load("button1.xml")Button 2 will replace the above scripting with: xmlFile.load("button2.xml")
Is this possible? I don't want to create 25 instances/frames of the full xml text as the xml datat is displayed on an animation and it would significantly increase the file size.
View 2 Replies
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
Mar 22, 2010
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.
View 1 Replies
Jun 22, 2010
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?
View 1 Replies
Nov 13, 2010
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?
View 2 Replies
Mar 28, 2012
I 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 Replies
Aug 20, 2009
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"
View 1 Replies
Oct 16, 2009
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"?
View 2 Replies
Feb 8, 2010
I have a Flex 3 application that makes a call to a webservice. That webservice calls returns a 2 Mb file that flex reads and parses. The problem is that it takes sometimes 45 seconds. I was wondering if there is a way to cache the response form the webservice? So the next time I load the flash movie it doesn't have to re-download the full file but just the updated data.
View 2 Replies
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
Sep 28, 2011
I am trying to call a webservice using proxy. My settings for proxy-config on blazeds side are as below:[code]Unable to load WSDL. If currently online, please verify the URI and/or format of the WSDL (null)faultString: [MessagingError message='Destination 'ws-catalog' either does not exist or the destination has no channels defined (and the application does not define any default channels.)']
View 2 Replies
Jun 3, 2009
I created a servlet in java that will give me a xml response when called
protected void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
response.setContentType("text/xml;
[Code].....
Now I want to get this xml in flex. I tried mx:WebService and mx:HttpService but both of them did not work.
View 2 Replies
Jun 22, 2007
I have a Flex 3 application that makes a call to a webservice. That webservice calls returns a 2 Mb file that flex reads and parses. The problem is that it takes sometimes 45 seconds. I was wondering if there is a way to cache the response form the webservice? So the next time I load the flash movie it doesn't have to re-download the full file but just the updated data.
View 1 Replies
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
Oct 29, 2010
I would like to access a soap webservice from a class in a Flex (AIR) Library Project.
How can I instantiate a WebService and get data from a SOAP WebService.
View 1 Replies