Connect Flash Builder 4 to remote PHP service

Hello i have seen some videos that explained how easy is connect Data/Services to local PHP server, and then extract the methods instantly. Also binding it to a datagrid, and everything was with wizard, easy and fast.
I would like to do the same but my problem is that i always work with remote PHP (not localhost), and i don't know how to connect flash builder 4 to my remote PHP class.
PS: I know how to do it manyally, but then i would not use the power of the wizards.
¿Is there any solution?
thanks

Would you mind giving me an example?:
the server path is /httpdocs/
and my website is for example: http://www.smspubli.com
I though that maybe the solution is on mount a virtual folder that connects to my httpdocs via FTP (problem is that in mac os it lets you create virtual folders but only in read mode)...
Please help me, there is no solution in all internet and then only way to use the power of flash builder 4 is connecting to localhost...

Similar Messages

  • Help with connection flash builder 4.5 to remote php database

    help with connection flash builder 4.5 to remote php database

    Fatal error: require_once() [function.require]: Failed opening required 'Zend/Loader/Autoloader.php' (include_path='.;C:\php5\pear;D:/webserver/apache2/htdocs/ZendFramework/library') in D:\webserver\apache2\htdocs\giga\first-debug\gateway.php on line 27

  • How do you connect Flash Builder to a NON-LOCAL PHP Server?

    Is it possible to connect Flash Builder 4 to a non-local PHP Server?  In my case, I want to connect to a PHP server on my web-host (similar to GoDaddy).
    This seems like a really stupid question, but every single tutorial or forum post I've Googled in the past 2 hours talk about how easy this is but all of them use "...localhost..." in the Root URL and I can't find anywhere in Flash Builder to enter FTP style credientals!
    I do not want to turn my PC into a PHP/SQL/IIS server.  I want to be able to do all of my work remotely as I do with Dreamweaver. 
    I've been trying to do this one simple thing for the better part of 2 days and can't believe how under-documented this feature is.
    Please please please help!
    Thanks
    Charles

    Upload your services to a directory on your host, upload your remoting app (Zend AMF etc) and configure it, then change the end point in your code to the gateway.php on your server:
    yourService.endpoint = "http://www.yoururl.com/pathway-to-your/gateway.php";
    For instance, one of mine are:
    protected function updateButton_Click(event:MouseEvent):void
                    // TODO Auto-generated method stub
                    support_Requests.ticket_id = supportGrid.selectedItem.ticket_id;
                    support_Requests.hub = supportGrid.selectedItem.hub;
                    support_Requests.username = supportGrid.selectedItem.username;
                    support_Requests.contactNumber = supportGrid.selectedItem.contactNumber;
                    support_Requests.email = supportGrid.selectedItem.email;
                    support_Requests.request = supportGrid.selectedItem.request;
                    support_Requests.status = statusButtons.selectedValue.toString();
                    support_Requests.note = noteUpdate.text;
                    supportRequestsService.endpoint = "http://www.not-telling-you-my-url/app-resources/gateway.php";
                    updateSupport_RequestsResult.token = supportRequestsService.updateSupport_Requests(support_Requests);
                    currentState='Home';

  • How to create php login in flash builder 4 using php data service

    I have seen the tutorials for creating a php login authentication using HTTP service in flex 3 It uses genrating xml and reading it . But i want to know how to do that with the help of php services in FB4 . I'm a newbie so please any kind of help would be appriciated as 'm not able to get any flex developer in nagpur ....

    Connect to PHP in FB4 is used when you have a PHP Class and you want to use that in FB, for example Employee.php and it has a Employee class and various methods in that like create, update, get, delete.
    However, if you have exposed your functionality in PHP as a HTTP URL (i.e. it is not a class), then you should be using HTTPService from the data menu.
    So if your file is login.php and is accessible as a URL, then using the HTTPService and enter the URL.
    Does this help?
    -Sunil

  • Flash Builder 4 and PHP  Data/Services for beginners

    Hello,
    I'm new here, so I do not know if I posted my doubts in the right place.
    without much la la la go straight to the point.
    I am developing an application in flex / mysql / php / zend DataWizard and used the flex to create the data service.
    populei my dropdown with the desired data (cities) and populei my datagrid with their respective data (customer master), so far so good. That's when I came across a difficulty which already makes two weeks and try to solve anything. the little knowledge I have in programming know it's something silly, but I can not solve.
    Difficulty: I select a city in my dropdown and display all my customers registered in the same city in my datagrid. simple! I found some tutorials on the net talking about it, did exactly what her boss but unfortunately got no success (not populates the datagrid), may be doing algor be unable to realize. so it follows my code so they can help me. grateful!!
    FLEX CODE
    / / Populating DropDownList City
    protected function ddl_cidade_cadastro_solutions_creationCompleteHandler(event:FlexEvent):void
    getAllMunicipioResult.token = municipioService.getAllMunicipio();
    //Populating DataGrid
    protected function ddl_cidade_cadastro_solutions_changeHandler(event:IndexChangeEvent):void
    txt_recebe_cidade.text = ddl_cidade_cadastro_solutions.selectedItem.Cidade_PJ;
    getAllEmpresasResult.token = empresasService.getAllEmpresas(ddl_cidade_cadastro_solutions.selectedItem.Cidade_PJ);
    PHP CODE
    public function getAllEmpresas($q) {
    $stmt = mysqli_prepare($this->connection, "SELECT * FROM $this->tablename WHERE 'Cod_Cidade_PJ' LIKE '%$q%'");
    $this->throwExceptionOnError();
    mysqli_stmt_execute($stmt);
    $this->throwExceptionOnError();
    $rows = array();
    mysqli_stmt_bind_result($stmt, $row->Codigo, $row->CGC, $row->CEmpresa, $row->NomeFantasia, $row->RazaoSocial, $row->Endereco_PJ, $row->Bairro_PJ, $row->CEP_PJ, $row->Cod_Cidade_PJ, $row->Cidade_PJ, $row->Estado_PJ, $row->TelefoneDDD_PJ, $row->Telefone_PJ, $row->FaxDDD_PJ, $row->Fax_PJ, $row->Email_PJ, $row->RecEmail_PJ, $row->HomePage_PJ, $row->NumFunc, $row->CodPorte, $row->Porte, $row->CodRegiao, $row->Regiao, $row->CodCNAE, $row->CNAE, $row->Produto, $row->ExportaPais, $row->IndustriaSN, $row->AnuncianteSN, $row->RowNumber, $row->negrito);
    while (mysqli_stmt_fetch($stmt)) {
    $rows[] = $row;
    $row = new stdClass();
    mysqli_stmt_bind_result($stmt, $row->Codigo, $row->CGC, $row->CEmpresa, $row->NomeFantasia, $row->RazaoSocial, $row->Endereco_PJ, $row->Bairro_PJ, $row->CEP_PJ, $row->Cod_Cidade_PJ, $row->Cidade_PJ, $row->Estado_PJ, $row->TelefoneDDD_PJ, $row->Telefone_PJ, $row->FaxDDD_PJ, $row->Fax_PJ, $row->Email_PJ, $row->RecEmail_PJ, $row->HomePage_PJ, $row->NumFunc, $row->CodPorte, $row->Porte, $row->CodRegiao, $row->Regiao, $row->CodCNAE, $row->CNAE, $row->Produto, $row->ExportaPais, $row->IndustriaSN, $row->AnuncianteSN, $row->RowNumber, $row->negrito);
    mysqli_stmt_free_result($stmt);
    mysqli_close($this->connection);
    return $rows;

    Hi,
    The first issue will be the pathing differences between wamp/mamp/xampp, some use www as root others htdoc you need to setup the php services on your local machine rather than importing a project.
    The created services will have a connection array declared at the top of the code that points to the mysql server, in the project default debug folder you will have the config file that has the zend and webserver path
    top of service file
    ============
    var $username = "root";
    var $password = "";
    var $server = "localhost";
    var $port = "3306";
    var $databasename = "zend";
    var $tablename = "clients";
    var $connection;
    amfconfig.ini
    =========
    [zend]
    ;set the absolute location path of webroot directory, example:
    ;Windows: C:\apache\www
    ;MAC/UNIX: /user/apache/www
    webroot =C:/wamp/www
    ;set the absolute location path of zend installation directory, example:
    ;Windows: C:\apache\PHPFrameworks\ZendFramework\library
    ;MAC/UNIX: /user/apache/PHPFrameworks/ZendFramework/library
    ;zend_path =
    [zendamf]
    amf.production = false
    amf.directories[]=Zender-debug/services
    In your main project folder you have a .model folder the file there is an *.fml file that contains your channel endpoints etc.
    David.

  • Flash Builder 4.5 Data Services Wizard, setting up REST service call returns Internal Error Occurred

    Dear all -
    I am writing with the confidence that someone will be able to assist me.
    I am using the Flash Builder Data Services Wizard to access a Server that utilizes REST type calls and returns JSON objects. The server is a JETTY server and it apparantly already works and is returning JSON objects (see below for example). It is both HTTP and HTTPS enabled, and right now it has a cross-domain policy file that is wide open (insecure but its not a production server, it's internal).
    The crossdomain file looks like this:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
    <cross-domain-policy>
       <allow-http-request-headers-from domain="*" headers="*" secure="false"   />
       <allow-access-from domain="*" to-ports="*" secure="false"/>
       <site-control permitted-cross-domain-policies="master-only" />
    </cross-domain-policy>
    The crossdomain file is in the jetty server's root directory and is browseable via HTTP and HTTPS (i.e. browsing to it returns the xml)
    Now before all of you say that using wizards sucks (generally) I thought I would utilize the FB Data Services Wizard as at least it would provide a template for which I could build additional code against, or replace and improve the code it produces.
    With that in mind, I browse to the URL of the Jetty Server with any web browser (for example, Google Chrome, Firefox or IE) with a URL like this (the URL is a little confidential at the moment, but the structure is the same)
    https://localhost:somePort/someKey/someUser/somePassword/someTask
    *somePort is the SSL port like 8443
    *someKey is a key to access the URL's set of services
    returns a JSON object as a string in the web browser and it appears like the following:
    {"result":success,"value":"whatEverTheValueShould"}
    Looks like the JSON string/object is valid.
    I went through the Flash Builder Data Services Wizard to set up HTTP access to this server. The information that I filled in is described below:
    Do you want to use a Base URL as a prefix for all operation URLs?
    YES
    Base URL:
    https://localhost:8443/someKey/
    Name                    : someTask
    Method                    : POST
    Content-Type: application/x-www-form-urlencoded
    URL                              : {someUser}/{somePassword}/someTask
    Service Name: SampleRestapi
    Services Package: services.SampleRestapi
    datatype objects: valueObjects:
    Completing the wizard, I run the Test Operation command. Remember, no authentication is needed to get a JSON string.
    It returns:
    InvocationTargetException: Unable to connect to the URL specified
    I am thinking - okay, but the URL IS browseable (as I originally was able to browse to it, as noted above).
    I continue to test the service by creating a Flex application that accepts a username and password in a form. when the form is submitted, the call to the service is invoked and an event handler returns the result. The code is below (with some minor changes to mask the actual source).
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                                     xmlns:s="library://ns.adobe.com/flex/spark"
                                     xmlns:mx="library://ns.adobe.com/flex/mx"
                                     xmlns:SampleRestapi="services.SampleRestapi.*"
                                     minWidth="955" minHeight="600">
              <fx:Script>
                        <![CDATA[
                                  import mx.controls.Alert;
                                  import mx.rpc.events.ResultEvent;
                                  protected function button_clickHandler(event:MouseEvent):void
                                            isUserValidResult.token = SampleRestAPI.isUserValid(userNameTextInput.text,passwordTextInput.text);
                                  protected function SampleRestAPI_resultHandler(event:ResultEvent):void
                                            // TODO Auto-generated method stub
                                            // print out the results
                                            txtAreaResults.text = event.result.message as String;
                                            // txtAreaResults.appendText( "headers \n" + event.headers.toString() );
                        ]]>
              </fx:Script>
              <fx:Declarations>
                        <SampleRestapi:SampleRestAPI id="SampleRestAPI"
                                                                                                 fault="Alert.show(event.fault.faultString + '\n' + event.fault.faultDetail)"
                                                                                                 result="SampleRestAPI_resultHandler(event)"
                                                                                                 showBusyCursor="true"/>
                        <s:CallResponder id="isUserValidResult"/>
                        <!-- Place non-visual elements (e.g., services, value objects) here -->
              </fx:Declarations>
              <s:Form defaultButton="{button}">
                        <s:FormItem label="UserName">
                                  <s:TextInput id="userNameTextInput" text="q"/>
                        </s:FormItem>
                        <s:FormItem label="Password">
                                  <s:TextInput id="passwordTextInput" text="q"/>
                        </s:FormItem>
                        <s:Button id="button" label="IsUserValid" click="button_clickHandler(event)"/>
                        <s:FormItem  label="results:">
                                  <s:TextArea id="txtAreaResults"/>
                        </s:FormItem>
              </s:Form>
    </s:Application>
    It's a simple application to be sure. When I run it , I get the following returned in the text area field txtAreaResults:
    An Internal Error Occured.
    Which is equivalent to the following JSON string being returned:
    {"success":false,"value":"An Internal Error Occured"}
    It appears that the call is being made, and that a JSON object is being returned... however it does not return the expected results?
    Again the URL constructed is the same:
    https://www.somedomain.com:somePort/someKey/someUser/somePassword/someTask
    So I am wondering what the issue could be:
    1) is it the fact that I am browsing the test application from an insecure (http://) web page containing the Flex application and it is accessing a service through https:// ?
    2) is the JSON string structurally correct? (it appears so).
    3) There is a certificate enabled for HTTPs. it does not match the test site I am using ( the cert is for www.somedomain.com but I am using localhost for testing). Would that be an issue? Google Chrome and IE just asks me to proceed anyway, which I say "yes".
    Any help or assistance on this would be appreciated.
    thanks
    Edward

    Hello everyone -
    Since I last posted an interesting update happened. I tested my  Flex application again, it is calling a Jetty Server that returns a JSON object, in different BROWSERS.  I disabled HTTPS for now, and the crossdomain.xml policy file is wide open for testing (ie. allowing every request to return data). So the app accessing the data using HTTP only. Browsers  -  IE, Opera, Firefox and Chrome. Each browser contained the SAME application, revision of the Flash Player (10.3.183.10 debugger for firefox, chrome, opera, safari PC; 11.0.1.129 consumer version in IE9,) take a look at the screen shot (safari not shown although the result was the same as IE and chrome)
    Note that Opera and Firefox returned successful values (i.e. successful JSON objects) using the same code generated from the Data Services Wizard. Chrome, IE and, Safari failed with an Internal error. So I am left wondering - WHY? Is it something with the Flash Player? the Browsers?  the Flex SDK? Any thoughts are appreciated. Again, the code is found in the original thread above.

  • Flash Builder 4 and PHP

    Hi
    I was just wondering if you could help me with a problem i'm having. I'm using adobe flash builder 4 to create an application and i have it connected to a php database to populate the data grids. I have three data grids, which are drag enabled and they will be populated from the database. I then have a fourth data grid, which is used to store the data dragged from the other three.
    What i want to do is take the data that is dragged into the fourth grid and store it in an array in a php file. Is this possible?
    Shell

    I also have Flash Builder 4.5 for PHP and the ANT view does not show when going to Window -> Show View --> Other.  I could not find it in any of the folders.
    However, I was able to add it by hitting Command 3 (CTRL 3 on PC) and typing Ant.

  • Connecting Flash Builder with ColdFusion Server 9 Locally

    Man this is a real a hassel and should be easy as hell.
    I am trying to do a simple connection to the local coldfusion server with the beta 2 Flash Builder -- FlexBuilder 4.
    It sould be simple. I have the local webserver be IIS (INetpub>WWWRoot)
    The coldfusion server is (C:\ColdFusion9\wwwroot\WEB-INF\flex).
    The services-config.xml is in that directory. So I must admit I am lost......
    Any Ideas what I may have over looked?
    The Error That I get is: Invalid root. The WEB-INF/flex folder must contain either flex-config.xml or services-config.xml.
    Thanks,
    Gene

    I changed the path to the coldfusion server to (C:\ColdFusion9\).
    Now it works..........Go Figure!

  • Connect to remote PHP service with Data/Services panel

    Please add this functionality.

    Hi,
    I think the whole point is that you shouldn't need to have drive mapping to create your services, you should be able to connect to the db and get your vo's and services generated.
    I don't believe that development should be done on a remote server, but you should be able to at least do introspection and even setup the localhost database without work arounds like vpn.
    David.

  • Flash Builder 4 and Data service 2

    Hi,
    We will looking to upgrade to Flex 4 from 2 and wonder if Flex 4 will work with our code written for Data service 2? If not, what should be upgrade to? Life cycle?
    Thanks.

    Hi,
    It should work fine. Can you please share the exact version of the LCDS. Also please let us know the service types and channel types you are using in your application.

  • Tutorial: Flash Builder 4 beta 2 and PHP Data/Services for beginners

    Hi fellas,
    I've written this tutorial for total beginners to get quickly to FB4 and PHP. Comments welcome
    Flash Builder 4 and PHP Data/Services for beginners
    http://www.flashrealtime.com/flash-builder-4-and-php-data-services/

    Hi,
    The first issue will be the pathing differences between wamp/mamp/xampp, some use www as root others htdoc you need to setup the php services on your local machine rather than importing a project.
    The created services will have a connection array declared at the top of the code that points to the mysql server, in the project default debug folder you will have the config file that has the zend and webserver path
    top of service file
    ============
    var $username = "root";
    var $password = "";
    var $server = "localhost";
    var $port = "3306";
    var $databasename = "zend";
    var $tablename = "clients";
    var $connection;
    amfconfig.ini
    =========
    [zend]
    ;set the absolute location path of webroot directory, example:
    ;Windows: C:\apache\www
    ;MAC/UNIX: /user/apache/www
    webroot =C:/wamp/www
    ;set the absolute location path of zend installation directory, example:
    ;Windows: C:\apache\PHPFrameworks\ZendFramework\library
    ;MAC/UNIX: /user/apache/PHPFrameworks/ZendFramework/library
    ;zend_path =
    [zendamf]
    amf.production = false
    amf.directories[]=Zender-debug/services
    In your main project folder you have a .model folder the file there is an *.fml file that contains your channel endpoints etc.
    David.

  • Flash Builder 4 connect to Data/Service

    I am attempting to connect Flash Builder projects to a custom AMF server using the connect to Data/Service tool.
    I am able to successfully connect to the server and create a service connection. Flash Builder creates a service but
    does not recognize any operations. I believe this is because the server is not responding correctly to the Flex Introspect request.
    I am sending an AMF package back to Flash that looks like this:
                \c@\c@\c@\c@\c@\cA\c@\c@\c@\cB/0ÿÿÿÿ\cJ\c@\c@\c@\cA\cB\c@\cIgetPeople or
    in HEX 00 00 00 00 00 01 00 00 00 02 FF FF FF FF 0A 00 00 00 01 02 00 09 "getPeople"
    Can someone please provide any documentation on the format required for this response?
    Thanks in advance

    I am attempting to connect Flash Builder projects to a custom AMF server using the connect to Data/Service tool.
    I am able to successfully connect to the server and create a service connection. Flash Builder creates a service but
    does not recognize any operations. I believe this is because the server is not responding correctly to the Flex Introspect request.
    I am sending an AMF package back to Flash that looks like this:
                \c@\c@\c@\c@\c@\cA\c@\c@\c@\cB/0ÿÿÿÿ\cJ\c@\c@\c@\cA\cB\c@\cIgetPeople or
    in HEX 00 00 00 00 00 01 00 00 00 02 FF FF FF FF 0A 00 00 00 01 02 00 09 "getPeople"
    Can someone please provide any documentation on the format required for this response?
    Thanks in advance

  • Getting an error "Remote Access Service Error" while establishing the connection usng SonicWall Netextender.

    * Original Title: SonicWall Netextender issue with Windows 8.1
    I am able to install SonicWall Netextender version 6.0.181 without any issues in my Windows 8.1 machine. When i try to establish the connection getting this error "Remote Access Service Error - Rebooting might Solve the problem".
    Hope someone can help me in resolving this issue.

    Hi,
    Please go to Windows Service manager, run "services.msc", then Look for the Remote Access Auto Connection Manager and Remote Access Connection Manager to see if those two services have been started. If not, set them to automatic start, reboot the machine,
    and install\configure NetExtender again.
    Since this is a third party application, it's recommended to contact the application vender to check the compatibility with Windows 8.1\IE 11, because they're more familiar with the application.
    http://help.mysonicwall.com/sw/eng/2605/ui2/1000/Admin/SSL-VPN_2000_1.0_Admin-8-1.html
    NOTE
    This response contains a reference to a third party World Wide Web site. Microsoft
    is providing this information as a convenience to you. Microsoft does not control these sites and has not
    tested any software or information found on these sites.
    Yolanda Zhu
    TechNet Community Support

  • Flex and zend , php services - soooo slow. any ideas?

    Hey Folks,
    I have a flex application that uses PHP services with the Zend framework.
    When I run it locally, the speed is great. My largest query returns data to my datagrid in 2-3 seconds.
    When I do run it locally, it is pulling from the production database.
    When I move the project to my dedicated server, the same query takes a painful 30 seconds.
    When I run the SQL query directly in MYSQL, it is back to around 2 seconds.  So the problem is not the query itself.
    So, any ideas why the results would take so much longer in my production environment? I purposely purchased dedicated server hosting because I thought it might of been server load.  That didn't help.  The queries are not complex at all. The most they return is under 200 rows.
    In summary: Why would my results set populate so much quicker on my development computer than on the production server?
    Using:
    Flash builder 4
    mysql
    php
    zendframweork
    Thank you for any assitance.
    -greg

    Your question seems to be outside of the scope of this forum.  But as someone who uses Zend_AMF and PHP for a backend I'll take a whack.  Have you analyzed your query, you may discover some inefficiencies there ?  This could be a problem if you have many joins, not leading you "WHERE" statement off with the most selective property and so on and so on try basic db optimizations if you haven't already.  Are you using an ORM of any kind ?  These can add to the time it takes to get results back, especially if you have lazy loading enabled instead of bringing back associated objects with your query and not on the fly.  The next step I would check would be for any type of serialization issues that might arise if you are doing so.  Even though a database usually isn't considered "large" until it has 10's of millions of rows, joins as I have verified the hardway, when done incorrectly without any type of keys or indexing can be particularly painful.

  • Flash builder 4.7 debug via usb device iPhone 4s - device not found

    I cannot find my iphone 4s while trying to debug via usb =(
    i exported ipa and installed it via itunes - this works. but i would love to debug on device.
    im using actionscript mobile project air 3.4
    im using windows 7
    ==================offtopic====================
    also how do i add icons for iphone?
    Thank you for your time! Cheers!

    Hi ,
    Please provide more info on the above issue:
    1.What is the message shown when you try to debug the application via USB on iOS device ?
    2.Are you able to debug on other iOS devices ?
    Run this below command from commandline :
    "C:\Program Files\Adobe\Adobe Flash Builder 4.7 (64 Bit)\eclipse\plugins\com.adobe.flash.compiler_4.7.0.348139\AIRSDK\lib \aot\bin\iOSBin\idb.exe" -devices
    Note:Make sure your  device is connected to the machine.
    The above command should list all the iOS devices connected to the machine. If a single device is connected,Flash Builder installs application  on device and waits for debugger connection. If multiple devices are connected, choose device dialog will be shown.
    Thanks,
    Sanjay

Maybe you are looking for

  • Clear hard drive space on a terra bye hard drive iMac intel.

    i have a full hard drive. i have cleared a lot of video files but not making much head way. the bulk of my files are pictures and music, and videos. i have over 5000 files that  are associated with iphoto that have the "face" discription in them, can

  • Error in T.Code:MI10

    Hi We are getting the below mentioned error in T.Code:MI10. (Punching the data of Customer returnable packaging info.) Special stock at customer/vendor 30700033 does not exist Message no. M7185 Thanks in advance Ravi Kumar

  • N series phones that support FOTA

    Please someone should please list n series phones only that have NSU to updates its software.Thank you and have a nice day.

  • Query with different currency for different users

    Hi at all, just a crazy thing happened. I created a query. Every user gets the result with the currency EURO. Only one user here gets the country currency like US$, Francs etc. If he logs in on a different PC, he also gets EURO. So I think the proble

  • Preset title length

    Is there anyway to preset the title length in iMovie 08? Every time I add a title it is between 3 and 5 minutes long. Can't I set the length before I add it? Thanks