PHP :: Should Services Act Like Controllers?

May 25, 2011

I've done a fair amount of (web)development in the usual MVC way of thinking and it served me well I think. However, I now have to split my application in a way that my front-end has to access the server-side functions as services. Since I'm the one creating the services, I thought I could think of services as controllers which would, in turn, call the functions in my model. Is that a good way to do it? The server side technology in question is PHP and the client-side is Adobe Flex (ActionScript).

View 2 Replies


Similar Posts:


Asp.net Mvc :: Use A Flash Front End To Talk To ASP.NET MVC Controllers?

Feb 2, 2011

I guess flash can talk to web services, but can one use Flash/Flex in web pages to post back to MVC Controllers (other than via javascript)?

View 1 Replies

Actionscript 3 :: Views And Controllers Invisible To Each Other?

Mar 18, 2011

I have read that Views and Controllers should be invisible to each other.How does the controller then listen for say a button click in the UI view?Surely the controller needs to know about the view to addEventListeners or the UI view needs to call functions in the controller, or dispatch events to the controller.

View 1 Replies

Actionscript 3.0 :: Controllers To Manage Youtube Video Developed

Jun 5, 2009

i have developed a site using Action Script 3.0 and i needed you tube video to be played in it.Well, i some home achieved this task, but now the video is only being played once, there are no controllers like play button, pause button, scrolling bar, volume control etc.i have used the API provided by You tube to develop this.

View 1 Replies

ActionScript 3.0 :: Display Video Controllers When Using A HD Output On Fullscreen Mode?

Feb 12, 2010

basically i'm following this tutorial on how to make a fullscreen HD video [URL]the only difference is i'm not using any flash components with my player.when i play the video on a normal screen, the video zooms in with the size of my object which the embedded plash player. all my controllers are not visible but still somehow it was on the back that you can still click on while the video is playing.also, on fullscreen mode, definitely all controllers are gone.

View 0 Replies

Ruby On Rails :: Generating Controllers For Rails In Terminal?

Feb 19, 2012

I am trying to create a rails controller in ubuntu terminal with "rails generate controller test_it"

But I keep getting a screwy error.

[Code]...

View 1 Replies

Media Server :: Web Services With SSL

May 15, 2009

I am currently connecting to a Web Service (wsdl) with no problems over HTTP.However as soon as I try to connect over HTTPS, my WebSerrvice object queues up the call and sits there forever.What configuration needs to be done in FMS2 to allow outbound WebService calls to be made using SSL?

View 3 Replies

Flash :: Use Network Services For FDT?

Apr 22, 2010

I've recently started using FDT, for a while I was using FlashDevelop, it had a really handy feature in Compiler options where you can set UseNetworkServices to false which would stop the compiled swf from connecting to the internet and became very useful for running standalone flash apps without security warnings when loading in an external xml file etc.

View 1 Replies

Flex :: Use Multiple Web Services?

Dec 2, 2010

I am developing an application with multiple windows, all using their own web services.Is it bad practice to use more than one web service per application? If so, what are the disadvantages?

View 1 Replies

Java :: How To Get Sound From Services

Feb 23, 2012

I have a Java-based server side and a flex client side using Spring BlazeDS Integration. It works fine, but I want to get sound from server side recently. I followed this BlazeDS mapping doc, it says when Java return a Byte[], it will be converted to ByteArray which I want. So I handle the MP3 file by ByteArrayOutputStream, convert it to Byte[] and return it back to front-end, but the value that Actionscript gets turns to be null value.

[Code]...

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

Java :: Web Services Creation And Consumption?

Dec 23, 2009

I'd like to learn how to create a java web service that can be consumed by a web tier, which is constituted of java and flex. What books can help me learn how to create a java web service and consume it via java & flex?Should I look to build a web service from scratch or from frameworks like: XFire, Axis, CXF, Spring Web Services, etc.?If using a framework is recommended, which of the above or any others makes the most sense to learn/use?

EDIT:Both the java AND flex components of the web tier need to independently access the web service. For example, the flex component helps the user create & save a spreadsheet; the java component retrieves the spreadsheet data and displays it accordingly.

View 4 Replies

Iphone :: Flex - Use AMF Instead Of JSON (for Web Services)?

May 29, 2010

Although iPhone support JSON natively, AMF is a binary protocol and it supposes to use much less bandwidth. Do you think using AMF is a good idea?Just found this AMF library in cocoa (Objective-C):Here's the famous benchmark that shows AMF is smaller and faster than JSON + gzip in Flex:

View 5 Replies

Flex :: Ignores Changes In Services-config.xml?

Jun 22, 2010

Today I tried to connect to other domain.I changed url of endpoint, but it looks like flex just ignores my changes.I am sure that an old url doesn't exist in any file in src directory,I even renamed services-config.xml to services-config2.xml, cleaned and rebuilded project many times, even made a release build, but it still connects to the same domain.I have tested flex application in localhost and in the same domain, that has AMF services, but it works in the same way.My services-config.xml is:

<?xml version="1.0" encoding="UTF-8"?>
<services-config>
<services>

[code].....

View 3 Replies

.net :: Create WCF Services That Can Be Consumed By Flash?

Jul 22, 2010

I'm a beginner in WCF, which I have chosen instead of Web Services because all articles and blogs I've read seem to point out that ASMX is old news.I have read a bit about the differences between old Web Services and WCF, and I got the general idea. I also took the MSDN WCF tutorial which seemed simple enough.My problem is that I want to create WCF services that can be consumed by Flash. I've read that it's doable everywhere, but with no obvious A-Z tutorial on how to proceed with the server-side and client-side...

View 2 Replies

Asp.net :: Securing Web Services To Be Consumed From Flash?

Oct 18, 2010

my team is building a game in flash to be embeded in a asp.net application.When the game is over the player have the chance to type his name to save his score.This is done using web services called from flash. The webservice receives the name and score.Since the webservice is publicly available how can I make it only callable from my flash given the following conditions:The .swf is hosted by the same asp.net application There are two domains that can access the same application (I have run previously into cross domain issues).Using SSL is not an option. The webservice has to be consumed by the .swf file.

View 1 Replies

Prototyping In Flash - Using JSON For Web Services?

Mar 19, 2011

I know most people hate 100% flash-based websites, but I was recently forced to use flash for a college assignment. After creating a fully-featured ria in less than 2 weeks with every feature I could imagine, i've regrettably fallen in love with this beast (which I previously refused to touch with a stick) due to the power of AS3 and the ability to sprinkle it everywhere :-

I now want to port a commercial desktop application of mine (which has been largely unsuccesful) to the web and feel flash/flex is an excellent candidate. While creating a html/css/js version would be ideal (working browser shortcuts, for a start), i'm certain it'll take a year to create in cross-browser html/css/js what would take just ~3 months in flash. Obviously as the (paid) desktop product was unsuccessful, i'd want to minimize the risk/investment in the (free) web application.

I plan on using JSON for web services, so it shouldn't be a huge pita to port in the future.Is this a good strategy for launching a web app you're not yet 100% committed to? Or will the fact i'm using flash doom me from the start? Has anybody else done this? If so, how did your userbase respond to the 100% usage of flash, and did you get around to porting it to standard web technologies?

View 1 Replies

Flex Consuming Java Web Services?

Sep 22, 2011

We are planning to use flex and Java Web Services, what is the best practice to consume web service from flex is it better to directly call the web service from Action scripts or to use remoting where java client will call the web services and later flex using remoting will the java client?

View 1 Replies

Web Services - How To Call Web Service From Flex

Mar 28, 2012

I have some problem with calling web service from flex. I have service with name UserService with one method string GetData(int i). I want to call this method from flex and get data. My code is here:

protected function application1_creationCompleteHandler(event:FlexEvent):void
uService = new UserService();
uService.addEventListener("hello", echoResultHandler);
uService.GetData(1);

[Code]...

View 1 Replies

Actionscript 3.0 :: AMFPHP Services Over HTTPS?

Sep 18, 2008

I'm having a very strange problem around a few services I developed for AMFPHP that worked fine over HTTP but once over HTTPS gone completely wrong. When testing right on export flash IDE the connection goes fine but when online and on the browser it doesn't. On connecting, Flash returns a security sandbox violation like this:

"Error #2048: Security sandbox violation:[URL] cannot load data from [URL]. I know that I'm missing the "www" subdomain on the gateway secure address but this is has another purpose for domain configuration. What's most weird is that even the Service Browser went completely wrong since it tries to open the gateway through the HTTP version of the address instead of the HTTPS one. Upon opening the browser I get a "NetConnection.Call.Failed: HTTP: Failed" error. It also tells me that it's trying to connect to [URL] instead of [URL].

View 9 Replies

ActionScript 3.0 :: Does Flash Web Services Allows Https:// Over HTTP

Jun 17, 2009

Does flash web services allows https:// over http ?

View 5 Replies

Data Integration :: Connect Web Services To Flash?

Jul 12, 2009

how to connect web services to flash

View 2 Replies

Media Server :: Setting FMS Services To Run As Administrator?

Jul 1, 2011

Installed fms4 x64 on windows server 2008 to try it out. When I open up task manager to check processes running, FMSCore process does not run [URL] found this in the knowledge base but step3 "Run this program As Administrator" checkbox is greyed out so I cannot do anything. I have stopped and restarted service so many time, rebooted server at least twice. Even the video that's supposed to play when you click the start screen is not playing.

Set the Flash Media Server services to Run as AdministratorComplete the following steps for each of the following files located in the Flash Media Server root installation folder (C:/Program Files/Adobe/Flash Media Server, by default):
FMSAdmin.exeFMSCore.exeFMSMaster.exeFMSEdge.exeRight-click the file and chooseProperties.
Select the Compatibility tab and click Change Settings For All Users.
Select Run This Program As Administrator.
Click Apply, and then click OK.
Complete these steps for each Flash Media Server service.
Restart the computer.
Flash Media Server starts when the computer starts.

View 1 Replies

Flash :: Securing .net Web Services For Flex / AIR Applications

Oct 15, 2009

What would be the best way to secure .net web services used by a flex application (both desktop and browser) that requires login? I thought about requesting the user and password in every method of the web service, and having them stored as variables in the flex app, but I don't feel like this is the most elegant way.

View 2 Replies

Asp.net :: Best Practices Server Side Scripting Or Web Services

Nov 13, 2009

Let me start off by stating that I am a novice developer, so please excuse the elementary nature of my question(s). I am currently working on a Flex Application, and am getting more and more confused about when to use server side scripting, and when to develop web services. For most of the functionality I am working on, I am taking various files from the user (client), uploading to the server for processing/conversion, then sending back to client in new format.

I am accomplishing most of this using asp.net generic handlers (ashx) files, but not very confident this is best practice. But at the same time, does making web services make any more sense? What would be considered best practice for this?

View 3 Replies

.net :: Using Classes Obtained Form Web Services In Flex

Mar 30, 2010

from flex, when calling a .net web method that returns a custom class, I always recieve an ObjectProxy, even if I have the same class created on flex. How do I manage this ObjectProxy as the class I have?

View 1 Replies

Flex :: Web Services - How To Handle SOAP Response In 3

May 29, 2010

[Code]...

I want to read SOAP response in flex,am some what new to FLEX

View 1 Replies

Java :: Software Evaluation Licensing For Web Services

Aug 16, 2010

We have developed a web application. (Eclipse - Dynamic Web Project). We are deploying it as .war file. We want to implement evaluation period license check on this .war file. (Most of the functionalities are Java SOAP Web services and Web UI is in Flex). I have written a Java code for generating the license file and thread for checking the remaining days. (Checking is continuous as the application is supposed to run for days). What is the best way to implement this functionality on the web application using the generated license file?

View 1 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 :: Web Services - Security Error Accessing URL

Sep 11, 2011

I had this error in a Flex Application that I couldn't figure out. Every time the app attempted to access the Web Service it returned the error Security Error Accessing URL.

View 1 Replies







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