Flex :: Call A Webservice With An Attachment From Flex Webservices?

May 6, 2010

If it's possible to call a webservice with an attachment from Flex Webservices?

View 1 Replies


Similar Posts:


Flash :: Flex - Call A Webservice Without Crossdomain.xml File?

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

Flex :: Multiple Async Webservice Call Requests?

Jul 26, 2011

I am using Flex and Actionscript 3, along with Webservices, rpc and a callResponder. I want to be able to, for example, say:

loadData1(); // Loads webservice data 1
loadData2(); // Loads webservice data 2
loadData3(); // Loads webservice data 3

However, Actionscript 3 works with async events, so for every call you need to wait for the ResultEvent to trigger when it is done. So, I might want to do the next request every time an event is done. However, I am afraid that threading issues might arise, and some events might not happen at all. I don't think I'm doing a good job of explaining, so I will try to show some code:

private var service:Service1;
var cp:CallResponder = new CallResponder();
public function Webservice()[code]....

I could ofcourse save the actions in an arraylist, but whose to say that the addToArrayList and the check if other calls are available do not mess eachother up, or just miss each other, thereby halting execution? Is there something like a volatile Arraylist?

View 2 Replies

Flex :: Check For Nil 'true' Value On XML That Is Passed Back From Webservice Call?

Sep 27, 2011

I am receiving xml from a webservice call that contains a nil="true":[code]I used the Flex DataService (webservice) wizard to create the service objects for the cacheEntry component. This object will be serialized later on a different webservice call and stored in a database.I set a breakpoint on the set SystemFK method in the service object. It appears that the value passed in was an empty string!Allowing this value to be an empty string will cause problems in the webservice implementation in Java on the other side. Since the database value was null it is expecting a null in return, If I avoid setting this value, the serviceObject should send back a null which will make the database happy.How can I detect that a nil = true is present in the XML in order to avoid setting this value?

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

Flex :: Using E4x To Retrieve Xml From Flex Webservice Result Handler

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

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

Asp.net - C# WebServices And Flex RPC Session Doesn't Work?

Oct 10, 2011

look im facing a problem. I have .NET + Flex application. I have a component in Flex who uploads a .XLS file to the server. This component has a Progress Barand it updates its bar and the Label with the

[Code]...

View 1 Replies

Flex :: Debug Pending / Hanging Webservices In It With Builder 4?

Jan 8, 2010

Sometimes (too often...) some webservices "hang". I can see the clock cursor in my app and the network monitor of FB2 shows the webservice as "pending". After waiting a long time, the status changes to "OK" and the clock cursor disappears. How can I find out why a webservice takes sometimes minutes while it usually takes not even a second?

My webservices run on my localhost during development using the Zend AMF Server.

View 1 Replies

Actionscript 3 :: Difference Between RemotingServices, WebServices And HTTP In Flex

Jul 14, 2010

We use 3 types of services in Flex; HTTP, Remoting and WebServices and would like to increase my understanding about their use cases. As far as I understand,

Remoting can be used only in homogeneous environment like Flex-RubyOnRails (through RubyAMF) while Webservices can be used in Heterogenous environment using SOAP protocol. Remoting has advantage of native object support that web services don't have. That also means no parsing/extraction will be required in former. Now, talking of HTTP services, they dont support complex operations or parameter passing and can be used for only basic operations.

View 1 Replies

Php :: Sending An E-mail With Attachment From Flex

Feb 15, 2010

I've made a custom compontent wich mails your own drawings to you. But I have a problem to send an e-mail with attachment. I use the HttpService to send the data to the php-file, but I always get the Fault message (form phpFault()). This is my code in Flex:

[Code]....

View 1 Replies

Flex :: Sending A Json Object Over Flash Builder 4 Webservices?

Aug 12, 2010

Can I use the webservice wizards in Flash Builder 4 to send a json encoded object...not as a string but as type application/json; charset=UTF-8

View 1 Replies

Flex :: Rest - Adding Crossdomain.xml To Tomcat 6.0.24 To Access Webservices?

Oct 28, 2010

I have to deploy a webapp on Tomcat 6.0.24, serving some webservices that should be accessed with REST-style methods (not fully REST, since the used flex class HTTPService can just send GET and POST).

The webservices are deployed at [URL]

The problem is that the policy of flex sandbox (i think it is called so) requires that the server with the services has to offer a file crossdomain.xml on his root directory.

I created that file with the following contents:

<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>

[Code].....

I am testing it and it does not seem to work. Maybe i am not doing it right. PS: I think Apache is not configured to manage Tomcat-addressed requests, every request is dispatched by port, i think. I can not provide the exact flex error since i am not developing that part. I will try to make a minimal example in the next hours and see if i can reproduce the problem.

View 1 Replies

Web Services :: Soap Webservices Call Method With Parameters?

Oct 27, 2011

i want to call a function on a soap-webservice using actionscript 3.the function has multiple parameters each of different type (int string).

this is the as-code i have so far.
var ws:WebService = new WebService();
ws.wsdl = "http://.../Service.svc?WSDL";

[code].....

View 1 Replies

Flex :: Drag And Drop Outlook Attachment In To Adobe AIR

Nov 23, 2010

I would like to know if there is a way to drag and drop an attachment file from an outlook email that is open into an AIR application and for that file to be then accessible to the AIR application. When I experimented with this the drag operation is giving AIR a File Promise List. But I'm not exactly sure how to make use of it once it is dropped. All the examples out there explain how to manupilate File Promises from an AIR application to the desktop. Nothing that explains a file promise into an AIR app.

View 2 Replies

Iphone :: Opening Flex Application From Mail's Attachment In IOS?

Apr 22, 2011

However I'm trying to open attachments in flex application. Is it possible?

View 3 Replies

Flex :: Cannot Access My Webservice

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

Flex :: Getting Data From SAP Webservice

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

Flex :: Send XML To WebService?

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

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

Sharepoint WebService With Adobe Flex?

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

Flex :: .NET Webservice In MVC - Access (controller)?

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

Flex :: Change The Webservice URL Through Flashvars?

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

Flex :: Pass A WebService To Different Class In It?

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

Flex :: Changing ResultHandler Of WebService Operation?

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

Xml :: Using Flex To Read XML In E4x Format From SOAP Webservice?

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/">
&lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&gt;
&lt;ns2:publisherResponse xmlns:ns2="http://www.mycompany.co.uk/myproject/schemas"&gt;
&lt;getConfigurationResponse&gt;
&lt;configuration&gt;
...etc

Why is my xml nested inside a document with a root node "sch:temp"?

View 2 Replies

Actionscript 3 :: Cach Webservice Calls On Flex 3?

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

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

Flex :: Using Proxy Webservice With Adobe AIR / BlazeDS

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







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