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


Similar Posts:


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 :: Access A SOAP WebService From Library Project?

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

ActionScript 1/2 :: Access Data From Webservice?

Apr 1, 2011

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].....

View 1 Replies

Actionscript 3 :: Getting Error To Access Webservice?

Apr 8, 2010

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].....

View 1 Replies

ActionScript 3.0 :: Access Of Undefined Property When Adding Webservice Eventlistener

Feb 21, 2009

Every time i try to run it i get the following errors.[code]....

View 0 Replies

Flex :: Registering Event Listeners In A Controller?

Nov 10, 2009

I'm working on creating a simple MCV application, in order to understand MVC better. The problem I'm having is registering event listeners. The way I see MVC is that the view dispatches events, the controller listens for these events and acts on them, either updating the model or amending the view. So in my MVC app I have a controller which during initialisation should register all the events that are dispatched by the view. This is my controller:

[Code]...

Now is this the way to do this, and why is it that my controller is not registering the event handlers?

View 2 Replies

.net :: .NET MVC Controller Action Not Invoked By GET Or POST From Flex App

Mar 3, 2010

A flex app running in a view of my .NET MVC app can load data fine from another route, but submitting data via either POST or GET never invokes the controller action. Interestingly, the only way I can get the action method to fire is by passing intentionally malformed post variables in the http request. Odd. Content type is application/x-www-form-urlencoded and I have set authentication to "None" in web.config with no improvement.

View 1 Replies

Silverlight :: Flash Vs Silverlight On Localhost /local File Permission To Access Remote Webservice?

Mar 30, 2011

In Flash user can give permission to localhost and even local html file to access remote webservice.I fail to see the same thing for Silverlight which is a nightmare for testing on local pc.

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

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

Flex :: Implementing A MVC Pattern Without A Framework, Should Httpservice Be In The Model Or The Controller?

Jul 1, 2011

I would like to implement the MVC pattern to an existing Flex project.I want to separate out the controllers and models from the views. They currently all live together in large mxml files.My question is, should httpservice requests be in the model or the controller? What sort of advantages/disadvantages would there be to either?

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

Java :: Hibernate And Servlets With Adobe Flex + Model View Controller Pattern?

Aug 30, 2010

I am preparing a document for a project. The project's backend is developed in Java, frontend is adobe flex.
I am not sure about the correct way of describe the project in Model-View-Controller way.

For Model layer: Using Hibernate Java beans to implement all the business logic and persistence? For View Layer: Using Adobe flex send post or get request to Controller layer, and get respond in XML format. For Controller Layer: Using Java servlet to handle requests from Flex client?

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

Flash :: Get XML By Post Method From Webservice In Flex

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

Actionscript 3 :: Caching Webservice Calls On Flex 3?

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

Actionscript 3 :: Flex WebService Using WSDL - How To List Available Operations

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

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







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