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

Similar Messages

  • How to create a USB recovery flash drive using recovery ISO image?

    This “HowTo” provides information and instruction how to create a USB recovery media flash drive using the Toshiba recovery ISO image files or Toshiba Recovery discs (DVDs)
    To create a USB recovery media flash drive, a USB flash drive with at least 16GB disk space is suggested (depends on the size of the ISO images or recovery discs).
    Note: Since 2015 the ISO layout has changed and a different procedure must be processed to create the USB media. The new recovery media type can be identified by the names of the ISO files.
    More info: http://aps2.toshiba-tro.de/kb0/HTD4103KB0000R01.htm

    Yes, that article should apply to tablets.
    But if your USB recovery drive does not get recognized then it must be corrupted - you should be able to format your disk and perhaps try to see if creating a Recovery device on other devices will make it recognizable on your tablet 2.

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

  • How to create content based portlet in 10g using JCR Data Control.

    I have created a webecenter Application (portlet,content repository,jsf ) in jdeveloper 10.1.3.4.
    and created a DatacontrolRepository connection for conent server , so inside the data control pallette I get all the methods such as search, AdvancedSearch,getItems.
    Now I am trying to drop the getItems() method return value from JCR data control as a Table inside my JSR 168 standard portlet which i created.
    But I am not able to see any of the content in my portlet.
    If I drag the same method getItems() on to my jspx page ( inside my ViewController) its working as expected.
    Please guide me how can get the content on portlet.

    Hi,
    Thanks for your reply..but i already have this demo and it doesn't contain an example for a pie graph..if u know where i can find any example for a pie graph and how to pass data to it i would be so thankful
    Thanks again.
    Eyad Basheer

  • How to create reports online on the fly using meta-data.

    We have dataset and blank report. How can I create report design on the fly ? so that it will able to display report dataset.
    Can someone tell me it is possible or not ? or some reference links....

    Hello,
    This can be certainly done by executing a script written using Report Application Server (RAS) SDK.
    Please refer the link : [http://devlibrary.businessobjects.com|http://devlibrary.businessobjects.com] for detailed documentation on the usage of RAS SDK.
    Regards,
    Chinmay Athavale
    Edited by: Chinmay1009 on Jul 27, 2010 3:46 PM

  • HOW TO: Create a JSP Edit Record Form Using BC4J Data Tags

    This is a JDeveloper Tech Note found on the OTN Documentation page. This note describes the use of the BC4J data tags to create row edit/submit JSP pages. Here is the link:
    http://technet.oracle.com/docs/products/jdev/technotes/datatag_input/Edit_Form.html

    Are you using Java 1.4.* ?
    Use JFormattedTextField.
    import javax.swing.*;
    import java.text.*;
    import java.awt.*;
    import java.util.*;
    public class DateExample
        public static void main( String [] args )
          // Here's what you're interested in...
          DateFormat dateFormat = new SimpleDateFormat( "MM/dd/yyyy" );
          JFormattedTextField field = new JFormattedTextField( dateFormat );
          field.setColumns( 11 );
          field.setText( dateFormat.format(new Date()) );
          JPanel panel = new JPanel();
          panel.add( field );
          panel.add( new JButton( "Hey" ) );
          JFrame f = new JFrame();
          f.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
          f.getContentPane().add( panel );
          f.pack();
          f.setVisible( true );
    }It also works with other types of Format objects (ex. Currency, Decimal, etc.)

  • HOW TO: Create a JSP Insert Record Form Using BC4J Data Tags

    This is a JDeveloper Tech Note found on the OTN Documentation page. This note describes the use of the BC4J data tags to create insert/submit JSP pages. Here is a link:
    http://technet.oracle.com/docs/products/jdev/technotes/datatag_input/Insert_Form.html

    You can loop throgh query records whit an implicit cursor (which automatically manages the open cursor, fetch and next record):
      for rec in (select intime,outtime,barcode,attend_date from dail_att; )
      loop
           t_in :=rec.intime;
           t_out :=rec.outtime;
           t_code :=rec.barcode;
           t_date := attend_date;
             PUT YOUR CODE HERE ... (if ..then... elsif... logic)
             you can avoid setting variables 'cause you can directly use the implicit cursor variables: rec.intime etc.
      end loop;
    END;Anyway, I suggest you to check the where condition of your block ... because if not all data are retrieved there should be a problem in your query ... so even the cursor (if based on very same query) will return less data than expected.
    Luca

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

  • How to create a login to users in PHP

    How to create a login for users to access their data,
    currently I can only see the first user everytime I login even with
    a different username. I know I need session stuff but don't know
    how to use, add or where to put them in.
    Thanks in advanced.

    I also am wrestling with the same problem. Session variables
    have not worked. I have determined that if the GET method is used,
    then the recordset of the users records are there. If the POST
    method is used, the recordset is blank. It appears to be something
    inherent in the Log In User behavior.
    I am trying to have a customer log in and then only see their
    particular inventory records. I do not want them be directed to a
    page with a listing of all the various customers and then select
    from that. Not suitable at all.
    If I find an answer, will let you know.
    Thanks and good luck,
    Dale :-)

  • How can I use flash builder for php?

    Hello! I saw a flash banner maker website http://ideal-banners.com/. My question that how can I use a flash builder for php?

    Hi Michael,
    Thanks for your two helpful replies.  The article by V. Brossier looks very useful, and I managed to use SDK 3.3 with FB.  But I had misdiagnosed my problem.  The problem was that the compiler was targetting Flash Player 9 instead of 10.  I've managed to fix that.
    Thanks again,
    Francisco

  • Need to learn how to create a slideshow in Flash

    Hello All,
    I'm new to Flash and I need to learn how to do a slideshow with exactly the same features as can be found in this link:
    http://www.esppromo.com/index.asp
    Just like at the link above, it needs to play through the slides automatically once the page is loaded, each slide needs to link to a specific URL, and I need controls similar to the boxes at the bottom so the viewer can click on any specific slide they wish to view (I'd like to have numbers in the boxes though). The transitions don't have to slide across like this. If a fade is easier, that would be fine.
    Since I've looked online, but can't find any tutorials for doing this in Flash Professional, I think I'll pick up a book on Flash. There are some online tutorials that are close but nothing that is exactly what I'm looking for.
    I'm just wondering if anyone can recommend a particular book that covers creating this type of slide show with the links and controls exactly as I need it to be. I see these types of slide shows on a lot of sites now, so I'm hoping that maybe someone else on this forum has had to learn how to do this and can recommend a book they used?
    I was looking at Adobe Flash Professional CS5 Classroom in a Book and it looked like it may be what I'm after, but I am rather cautious, as I don't want to end up with instructions that are close to what I am looking for, but not quite right.
    Actually, I thought I'd be able to do this fairly easily with Flash Catalyst, so I updated to Adobe CS5 Design Premium. I found that Flash Catalyst can be used to create a slide show like this, but unfortunately it won't play automatically when the page loads and the viewer has to manually click through the slides, which is not what I need. I could be wrong, but from what I've read, I need Flash Builder to add code so the slide show will play automatically if I create it in Flash Catalyst. Since it's not an option for me to buy more software at this time, I've decided to learn how to do this in Flash Professional.
    I really want to learn how to do this. I expect to go on and create more using Flash, but for now I just REALLY need to figure this slide show out.
    If anyone can help out, I'd really appreciate it!
    Thanks,
    William

    Edit:
    i'm sorry. it is a huge work to type this and will be confusing as hell. i'm already up to 1 full word page of explanation. Though i am able to do it, explaning it in full lengh is ... well.. very hard. Way harder than it is to make your flash itself.
    I can however point you to some element you should read about how to make them:
    - How to use timeline in flash cs4
    - how to create a button in flash cs4
    - How to make "CLASSIC TWEEN" in flash cs4
    - How to use ActionScript 2 ( AS2) basic command like : GetUrl, Gotoandplay, Stop and how to put those script in the right location. ( AS2 allow you to put script directly on the button itself. however it is best to put it in the Action Layer that you will have to build in the timeline.
    - How to import thing in library.
    keep in mind that what you want to make is mostly a Logic probleme...
    - Image 1 click = GetURL X,
    - After Y time, Switch image 1 to image 2 with animation. Do the same for the button.
    - If you click on button 1 while being on image 3, you have to set all the reverse animation in the timeline, and use a lot of Gotoandplay.
    Hope this help you a little.
    I'm sorry. i really wanted to help you do it, but it is just a monstruous job to write all this.

  • Flash Builder resets php include_path?

    Hi,
    using the data services of flash builder 4, I run into the following problem:
    we gathered all our include directories in one php file, that sets the include_path (ini_set('include_path')). The service classes include that file as a very first statement so the include_path points to several directories spread over the project, that contain further code.
    the benefit of this is that we do not need to bother about any directory trees when putting together our project. Due to the complexity of the project this still seems to be a good idea...but nevertheless...
    Now when I call a service via the Fb context menu in order to configure the returned data types I always get error messages saying some files could not be found. The error message dumps the include_path var as well and for some reasons all it contains at that point are the pathes to MAMP/php and the ZendFramework/library path.
    I dumped the include_path at several locations to check. Looks fine in the services when I dump right behind the include statement for the paths. But in any other class/function it seems to be reset.
    Calling the services over amfphp browser seems to work fine.
    I might be just pretty blind, so please make me see
    THX!

    Not sure what could be the cause of this failure, we will need you complete setup to reproduce, if it is Ok with you.
    If you would like do debug what could be the cause, let me explain how the amf calls are made from Flash Builder.
    You pointed out that Flash Builder is changing the include_path, but that cannot be done by Flash Builder directly.
    The way it works is that whenever you try using PHP Service from the Data Service view, Flash Builder first installs Zend Framework on your server if it is not present already. Then it puts gateway.php and amf_config.ini files in the output folder of the flex project on your server.
    Now this gateway.php actually becomes the endpoint to make amf requests, and can be used by Flash Builder or any other client like a Flex application running on Flash player.
    The gateway.php file does contain a modification of include_path, where it adds the Zend library in the path, but it does not remove anything.
    You make try to dump the path in gateway.php file to debug the cause of this issue.
    Thanks,
    - Gaurav

  • Flash Builder for PHP 4.5.1

    So I own Flash Builder 4.5 and upgraded to Flash Builder for PHP 4.5. Yesterday Adobe released an update for Flash Builder 4.5.1 which includes support for delpying for iOS devices.
    So my question is how soon is Zend going to provide and update to Flash Builder for PHP? Past experience tells me it is going to take a while. Can any Adobe/Zend engineers confirm a time line when the upgrade will happen?
    Also if upgrade is not a possibility, is there a Zend PDT Plugin for Adobe Flash Builder 4.5?

    Hello there,
    Flash Builder for PHP is expected to be released very soon, I can confirm it's a matter of week or two. I suggest to wait until the official release is out. 
    Best regards,
    Roy

  • How to create a LOGIN Form & LOGIN ID & PASSWORD for END USERS

    hi,
    i have just created a Database and Forms & Reports using developer 6i.
    now i want to deleiver that Database to end users, but i dont know that how to create a LOGIN Form for the end users and also i want to assign each user a Login ID & Password.
    Plz help me to solve out this problem.

    1. Create the user accounts on the database CREATE USER ... IDENTIFIED BY...
    2. Grant CONNECT Role to the Users
    3. in the main form (the one which is being called initially at runtime) in the ON-LOGON-Trigger create a CALL_FORM() to the Login Form
    4. The Login Form will be called; build a Block with username, password and a Button
    5. In the Button call the LOGON Built-In
    6. Control will be passed to the initially called form again
    I also noticed a thread in here explaining this in more detail...
    Message was edited by:
    user434854

  • Dreamweaver and Flash Builder for PHP

    I have created a php database in Dreamweaver, can this database be imported or converted to Flash Builder for PHP?

    MySQL has nothing to do with Dreamweaver or any other development software. It's a DBMS (which stands for DataBase Management System). More simply, it's a way to store data. Other DBMS are PostgreSQL, Oracle, and so on..., as mentionned above.
    To use your existing MySQL database with FlashBuilder for PHP, simply specify where you store your PHP services on your computer when you create your project. Then FB will attempt to connect to MySQL with the help of your PHP code.
    And you'll be able to retrieve your data in the brand new Spark Datagrids !
    Hope it'll help.
    Julien.

Maybe you are looking for

  • How do I backup the data on my 6700 slide?

    I have a 6700 slide, and I have problems with the memory. The phone says the memory is full, even though I removed all the files I can, and cleared the cache in the internet browser. When i remove things the amount of memory doesn't change at all. No

  • What happened to my apple tv - audio no video.

    Ipad has video.  TV has internet radio icon and audio.  This is a recent annoying problem.  Sometimes turning router on/off fixes it but not for long.  Have tried Hulu and Acornonline same issue.

  • App Store quit unexpectedly

    Hi Guys, my iMac 2011 having an issue on app store application anybody had the same problem? using Lion 10.7.4. TIA! Process:         App Store [376] Path:            /Applications/App Store.app/Contents/MacOS/App Store Identifier:      com.apple.app

  • Document Repository

    Hi I am constructing a web-enabled document repository for storing office documents, pro-formas etc. and I am exploring various avenues for design... and I have a couple of questions that I hope people in here would be best qualified to give feedback

  • P1102w Not Reconnecting After Restart

    Hi,  I have a Laserjet P1102w and I am having problems. After installing the printer driver, everything went fine. Then, when I shut off the printer for the night and attempted to print the next day with the printer on, it appreaed offline. I am usin