How to setup Data services to use existing zend application

The application I'm working on is going to have views created both in Flex and in PHP. Thus, we want to setup the Zend framework so that it can be used for the PHP part of the application and to display views in the browser. We want to setup the AMF gateway so that it's a service provided through a controller in Zend and with the actual service classes hidden from public view in the application folder, and not like the default now seems to assume that you create a folder in your public webroot where the endpoint and all service classes live.
So the structure we are after is
Zend_AMF endpoint at http://example.com/services/amf
Zend folder structure:
application/controllers/ServiceController.php    // the controller that handles all incoming requests, so acts as the gateway.phpI assume
application/services/amf/    // contains the actual service classes, e.g. Users.php, Products.php
public/swf/    // will contain the actual .swf files for the Flex application
the /public/ folder is set to the webroot with /application/ outside the webroot as per the Zend framework recommendations.
I would like to use the Data service introspection to generate the Flex code for the services, however the introspection afaik requires the services to be in the /public/ folder or a subfolder there. So how can I make introspection work for a service that lives in /application/services/amf and is accessed through http://example.com/services/amf ?
Suggestions? links to tutorials?

Yes, well hopefully this will be supported in the future. In the mean  time, I've noticed that it's only actually when creating the service  and the API for it that you need to have the class inside the web root.  In order to configure the return types and input types you don't need to  go through the standard gateway.php anymore. So, although not ideal,  here's how I do it right now:
1. I have set up m zend  framework as described in my first post, with my AMF service gateway being a Zend controller and not the gateway.php
2. I create the service class with the API I need inside the application/services/amf folder. If the service needs to connect to the database then I create a Zend Db Model using the zf command line tool (as per Zend framework practices) and then hook my service class to use that. Which basically means that my service classes are very slim and simple.
3. When I created the Flex project I created a dummy service using the sample  php, which has set up Flash builder with the default gateway and so on
4. Once I've created my service class, I copy the file to the default location where Flash Builder wants to create my services. I then strip out any implementing code from the copied file, leaving only the public API and empty methods.
5. I then create a new service in Flash builder, point it to the stubb class in the default location and let the introspection discover the public api. This will of course mean that all input values and return values are generic objects.
6. After this is done I delete the stubb class. In the created AS service class I override the service endpoint so that it points to my real gateway controller within the zend framework.
7. After this is done I can configure the return types and input types using auto discovering. It will connect to the real gateway and ignore the default gateway and thus I can develop against the real endpoint and don't need to create my service classes within the public location of the Zend folder structure.
It's a bit of a workaround for sure, but since I don't create new services that often and I can have Flash builder update my return types etc. automatically this way, I figure it's worth the extra steps. Still, I would hope that in the future Flash builder will support having the introspection happen on a location outside the projects own web root.

Similar Messages

  • How to setup Data guard for SAP database?

    Can someone please tell me how to setup data guard for SAP databases?
    Thanks,
    Abhi

    Hi Abhi,
    have a look at OSS 105047 - Support for Oracle functions in the SAP environment you find this under
    14
    Oracle Data Guard
    You can use "Physical Standby".
    You cannot use "Logical Standby".
    You are allowed to use Fast Start Failover (FSFO) but SAP Support is not provided.
    You can use Data Guard Broker.
    You can use Maximum Performance Mode, Maximum Availability Mode and Maximum Protection Mode.
    In the case of Maximum Availability and Maximum Protection, you must pay particular attention to a fast network connection in order to avoid performance problems.
    Maximum Protection causes the primary database to terminate if problems occur in the standby database.
    And here you find on Oracle white paper from 2010 http://www.oracle.com/us/solutions/sap/wp-ora4sap-dataguard11g-303811.pdf
    Perhaps some SAP user have answers for you http://scn.sap.com/community/oracle/content?query=guard
    regards
    Kay

  • Setup was unable to use existing system partition because it does now contain the requiered free space.

    I try to install it, but i select my free (fresh formated) partition with 35GB free space and i see:
    Setup was unable to use existing system partition because it does now contain the required free space.
    if i select partition with partition that does not contain the required i see
    "Windows cannot be installed to Disk 0 Partition 1. (show details)"
    so what is it? what can i test?
    My Disk has 250GB, my partitions:
    C: 8MB - Boot (7MB Free) - FAT
    D: 37,5GB - WINXP (27,9GB Free space) - NTFS
    E: 35,3GB - New (35,2GB Free) - NTFS - i want to install on it
    F: 160GB - Data (6GB Free)  - ntfs

    kolorafa_ said:
    I try to install it, but i select my free (fresh formated) partition with 35GB free space and i see:
    Setup was unable to use existing system partition because it does now contain the required free space.
    if i select partition with partition that does not contain the required i see
    "Windows cannot be installed to Disk 0 Partition 1. (show details)"
    so what is it? what can i test?
    My Disk has 250GB, my partitions:
    C: 8MB - Boot (7MB Free) - FAT
    D: 37,5GB - WINXP (27,9GB Free space) - NTFS
    E: 35,3GB - New (35,2GB Free) - NTFS - i want to install on it
    F: 160GB - Data (6GB Free)  - ntfs
    Is this 8MB "Boot" partition (formatted as FAT???) something you created when you partitioned this disk for the Windows XP installation, or is this an 8MB OEM partition that you've somehow assigned drive letter C: to?
    I wouldn't be surprised at all that your error message is being generated because thsi "BOOT" partition, labelled as drive C:, is only 8MB in size, and you can be absolutely positive that an 8MB partition is going to generate this error: "Setup was unable to use existing system partition because it does not contain the required free space."
    The correct answer really depends on whether that drive C: is the boot (sic) (the proper terminology is to call it the system partition) partition for the Windows XP installation. If it is, then you're going to have some repair work to do on your Windows XP installation first, so that you can free up that 8MB partition.
    In any event, I'm fairly certain that the solution is going to require the removal of that 8MB partition, as you've suggested in your most recent post.
    Lawrence Garvin, M.S., MCITP(x2), MCTS(x5), MCP(x7), MCBMSP
    Principal/CTO, Onsite Technology Solutions, Houston, Texas
    Microsoft MVP - Software Distribution (2005-2009)

  • How to upload data into IT0000 using ABAP-HR program

    Hello,
    I'm required to upload data into multiple infotypes [IT000, 0001, 0002, etc] using single input text file. Can anyone able to guide me, how to upload data into IT0000 using ABAP program ?
    Thanks in advance.
    Regards
    Prabhakar.
    Message was edited by:
            Prabhakara Muthyal

    Example code for HR_MAINTAIN_MASTERDATA to COPY IT0002
    DATA: INT_0002_FINAL TYPE STANDARD TABLE OF PA0002 WITH HEADER LINE.
    DATA: VALUES        LIKE PPROP OCCURS 10 WITH HEADER LINE,
    RETURN        LIKE BAPIRETURN1,.
    LOOP AT INT_0002_FINAL.
          VALUES-INFTY = '0002'.
          VALUES-FNAME = 'P0002-PERNR'.
          VALUES-FVAL  = INT_0002_FINAL-PERNR.
          APPEND VALUES.
          VALUES-INFTY = '0002'.
          VALUES-FNAME = 'P0002-BEGDA'.
          VALUES-FVAL  = INT_0002_FINAL-BEGDA.
          APPEND VALUES.
          VALUES-INFTY = '0002'.
          VALUES-FNAME = 'P0002-ENDDA'.
          VALUES-FVAL  = INT_0002_FINAL-ENDDA.
          APPEND VALUES.
          VALUES-INFTY = '0002'.
          VALUES-FNAME = 'P0002-nachn'.
          VALUES-FVAL  = INT_0002_FINAL-NACHN.
          APPEND VALUES.
          VALUES-INFTY = '0002'.
          VALUES-FNAME = 'P0002-gblnd'.
          VALUES-FVAL  = INT_0002_FINAL-GBLND.
          APPEND VALUES.
          VALUES-INFTY = '0002'.
          VALUES-FNAME = 'P0002-vorna'.
          VALUES-FVAL  = INT_0002_FINAL-VORNA.
          APPEND VALUES.
          VALUES-INFTY = '0002'.
          VALUES-FNAME = 'P0002-rufnm'.
          VALUES-FVAL  = INT_0002_FINAL-RUFNM.
          APPEND VALUES.
          VALUES-INFTY = '0002'.
          VALUES-FNAME = 'P0002-name2'.
          VALUES-FVAL  = INT_0002_FINAL-NAME2.
          APPEND VALUES.
          VALUES-INFTY = '0002'.
          VALUES-FNAME = 'P0002-inits'.
          VALUES-FVAL  = INT_0002_FINAL-INITS.
          APPEND VALUES.
          VALUES-INFTY = '0002'.
          VALUES-FNAME = 'P0002-famst'.
          VALUES-FVAL  = INT_0002_FINAL-FAMST.
          APPEND VALUES.
          VALUES-INFTY = '0002'.
          VALUES-FNAME = 'P0002-gbdat'.
          VALUES-FVAL  = INT_0002_FINAL-GBDAT.
          APPEND VALUES.
          VALUES-INFTY = '0002'.
          VALUES-FNAME = 'P0002-sprsl'.
          VALUES-FVAL  = INT_0002_FINAL-SPRSL.
          APPEND VALUES.
          VALUES-INFTY = '0002'.
          VALUES-FNAME = 'P0002-anzkd'.
          VALUES-FVAL  = INT_0002_FINAL-ANZKD.
          APPEND VALUES.
          VALUES-INFTY = '0002'.
          VALUES-FNAME = 'P0002-natio'.
          VALUES-FVAL  = INT_0002_FINAL-NATIO.
          APPEND VALUES.
    * maintain master data
          CALL FUNCTION 'HR_MAINTAIN_MASTERDATA'
            EXPORTING
              PERNR           = INT_0002_FINAL-PERNR
              ACTIO           = 'COP'
              BEGDA           = INT_0002_FINAL-BEGDA
    *         ENDDA           = INT_0002_FINAL-ENDDA
              SUBTY           = SPACE
              NO_ENQUEUE      = SPACE
              DIALOG_MODE        = '0'
              TCLAS              = 'A'
            IMPORTING
              RETURN1         = RETURN
            TABLES
              PROPOSED_VALUES = VALUES
    *         MODIFIED_KEYS   =
            EXCEPTIONS
              OTHERS          = 1.
          IF RETURN IS INITIAL.
            WRITE:/' Done....'.
          ELSE.
            WRITE:/   RETURN-ID, RETURN-TYPE, RETURN-NUMBER, RETURN-MESSAGE_V1, RETURN-MESSAGE_V2, RETURN-MESSAGE_V3, RETURN-MESSAGE_V4.
          ENDIF.
          CLEAR VALUES.
          REFRESH VALUES.
        ENDLOOP.

  • How to create a Service request using Exchange connector in SCSM 2012

    HI ,
    I am able to create Incident request using exchange connector.Could you please let me know that how can i create Service request using Exchange connector 3.0.
    Thanks in advance. 

    Hi,
    Select a service request's template for new work items on the last wizard's page.
    Cheers,
    Marat
    Site: www.scutils.com  Twitter:
    LinkedIn:
    Graveyard:

  • How to retrieve data from MDM using java API

    hi experts
    Please explain me the step by step procedure
    how to retrieve data from MDM using java API
    and please tell me what are the
    important classes and packages in MDM Java API
    thanks
    ramu

    Hi Ramchandra,
    You can refer to following links
    MDM Java API-pdf
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/2d18d355-0601-0010-fdbb-d8b143420f49
    webinr of java API
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/89243c32-0601-0010-559d-80d5b0884d67
    Following Fourm Threads will also help.
    Java API
    Java API
    Re: usage of  java API ,
    Matching Record
    Need Java API for Matching Record
    Thanks and Regards,
    Shruti.
    Edited by: Shruti Shah on Jul 16, 2008 12:35 PM

  • How to avoid data repetation when using select statements with innerjoin

    how to avoid data repetation when using select statements with innerjoin.
    thanks in advance,
    satheesh

    you can use a query like this...
      SELECT DISTINCT
             frg~prc_group1                  "Product Group 1
             frg~prc_group2                  "Product Group 2
             frg~prc_group3                  "Product Group 3
             frg~prc_group4                  "Product Group 4
             frg~prc_group5                  "Product Group 5
             prc~product_id                  "Product ID
             txt~short_text                  "Product Description
    UP TO 10 ROWS
    INTO TABLE l_i_data
    FROM
    Joining CRMM_PR_SALESG and
    COMM_PR_FRG_ROD
    crmm_pr_salesg AS frg
    INNER JOIN comm_pr_frg_rod AS prd
    ON frgfrg_guid = prdfragment_guid
    Joining COMM_PRODUCT and
    COMM_PR_FRG_ROD
    INNER JOIN comm_product AS prc
    ON prdproduct_guid = prcproduct_guid
    Joining COMM_PRSHTEXT and
    COMM_PR_FRG_ROD
    INNER JOIN comm_prshtext AS txt
    ON prdproduct_guid = txtproduct_guid
    WHERE frg~prc_group1 IN r_zprc_group1
       AND frg~prc_group2 IN r_zprc_group2
       AND frg~prc_group3 IN r_zprc_group3
       AND frg~prc_group4 IN r_zprc_group4
       AND frg~prc_group5 IN r_zprc_group5.
    reward it it helps
    Edited by: Apan Kumar Motilal on Jun 24, 2008 1:57 PM

  • How to setup Adobe CC to use Firefox instead of Internet Explorer

    How to setup Adobe CC to use Firefox instead of Internet Explorer

    Hi mOmO,
    Please chage the default browser to Firefox: http://support.mozilla.org/en-US/kb/how-make-web-links-open-firefox-default.
    Regards,
    Romit Sinha

  • How to setup adobe to send emails from the application?

    How to setup adobe to send emails from the application?

    Click Edit>Preferences and select the Email Account Preferences
    Click Add Account and select “Add other…” or if you use Gmail or Yahoo mail, select the appropriate choice for it.
    Enter your Email Account info and then click “Advanced Settings” and configure your incoming and outgoing mail settings per your email account in Outlook, Thunderbird or mail service.
    Click OK, and click Add. The new Email Account will now appear in your listed accounts.
    Click the new account and click “Make Default”
    The checkmark will indicate the new account is set as the default Email Account for Reader.

  • Amateur question - how to setup iChat service?

    "Make sure the user is a user or member of a group that's defined in the Open Directory search path of the iChat server."
    How do I verify this?
    I have created a user and the user is a member of the "chat server group", but I still can't connect to to the service.
    Help please! =)

    Hello buckster,
    I'm also trying to turn on a iChat Server and use it. The iChat service is apparently "E-Z" to turn on in Server Admin tool but something about the wording of "search path" for Open Directory users is throwing me.
    I'm not new Mac OS Server ( 3+ years ) nor to using Open Directory or WGM or Server Admin but I'm being tripped up in the setup of users. I can't seem to figure out "search policy" and "search path". I get the basic idea but I apparently do not understand the sequence of creating a Search Path so that iChat Server can be accessed.
    Basic Setup-
    DNS on
    LAN using 192.168.0.x
    192.168.0.1 - server.LANlocal_domainname.net
    WAN using 10.0.1.x (Wireless thru AirPortBase Station as Gateway and Firewall internet with port routing to 10.0.1.2 as needed. APB is the DHCP manager for Wireless) server.WANdomainname.com
    alias to ichat > server on both interfaces.
    DHCP on - Managing 192.168.0.x
    iChat on with Host Domains=ichat.LANlocal_domainname.net & ichat.WANdomainname.com
    Open Directory on >>>>Open Directory Master with LDAP Settings pointing to search base of the WAN based user group
    dc=server,dc=WANdomainname,dc=com
    (CHECKED) Enable Secure Sockets Layer
    Certificate: Default
    Binding
    NO CHECKS
    Security
    NO CHECKS
    Workgroup Manager: server.WANdomainname.com
    Authenticated as DirectoryAdministrator to directory
    : /LDAPv3/127.0.0.1
    I've got 23 users and 6 Groups that I have used for different kinds of things.
    Web Mail Access
    Website Access
    FileMaker Server Access
    Application Server Access
    etc.
    and now I'd like get iChat working ....
    I'm on the inside of a router (though that shouldn't matter, right?), no software firewall (Firewall Service is not On). For a start, all I'm trying to do is get two machines inside the LAN to chat with a Jabber client (iChat or Atrium). I keep getting indications that the server is not found.
    Sorry if this seem lame but I would really appreciate a step by step of the set up of two users, one that is on another machine that is not directly controlled by the setup of Open Directory and WGM an another that is not the iChat Search as a client (as well as the server). I'd don't need lots of explaination but it would be really helpful to have a click by click for user, group, search path.
    Thank You for your help.
    Terry
    Dual 1.25GHz PowerPC G4 1MB L3 cache - 2 GB DDR SDRAM   Mac OS X (10.4.7)   Server and Clients
    Dual 1.25GHz PowerPC G4 1MB L3 cache - 1 GB DDR SDRAM   Mac OS X (10.4.2)  

  • How to integrate Data Services with Netweaver CE CAF

    Hi,
    I am trying to read and write data from Data Services into CAF. How can this be possible ? Is there any other way than using web services ?
    Thanks in advance for your help.
    Thibault Schalck

    Web service call supported in Data Services so that's fine.

  • How to upload data into CRM using batch job

    Hello,
    I got some problem and need some hints.
    I am uploading data from a flat text file (product data) into CRM using thefunction module GUI_UPLOAD. My program starts with a selection screen whereI enter the path and the filename of the program, then I click start, and
    the data is transferred in CRM. This works perfect, and I can automaticallycreate service products in CRM.
    Here comes the PROB:
    But now I want to automize this procedure using a batch job that automatically picks up the file from the server and processes it automatically without any user interaction. BUT I always get an error saying that my function module GUI_UPLOAD can't run in batch mode. So
    anyone has an idea how to do this? Any other function modules that can run in batch mode? Any other ideas?
    Thx very much for ur help on this.

    Hi Bill,
    GUI_UPLOAD, like the name says, uses the SAPGUI to upload the data to theserver.. and in a batch job, you don't have the connection to a SAPGUI.
    So you should use following kind of coding:
    DATA MSG(100).
    OPEN DATASET "FILENAM" FOR INPUT IN TEXT MODE ENCODING DEFAULT MESSAGE
    MSG.
    IF sy-subrc = 0.
    DO.
    READ DATASET "FILENAM" INTO [Your internal table].
    IF sy-subrc <> 0.
    EXIT.
    ENDIF.
    APPEND [Your internal table]P_DATA.
    ENDDO.
    ENDIF.
    The file should then be available on the server.
    Regards

  • How to connect Data Services with microsoft SQL/ Steps

    Dear All,
    i attend to connect the SAP BO Data Services to Microsoft SQL.
    1. Is there any document which explains the steps to follow?
    2. Is there any document how to build a prototyp
    Thank you.
    Pat.

    Hi Aditya,
    You can use a datastore of type ODBC using the IBM Client Access driver or the DataDirect driver that comes packaged with Data Services.  There is a sticky thread on downloading the DataDirect driver.  There is also another option to connect with the Attunity driver for the AS400.  You cannot use the DB2 UDB drivers to connect to the AS400 V6R1.
    Victor

  • How to setup Coda site to use my standalone coldfusion 9

    Hi I just downloaded the new coldfusion 9 statndalone and am using the default server setup. I downloaded all my files to a subfolder inside wwwroot. I found a tutorial on how to setup standalone with dreamweaver but no other text editors. I'm using coda which has a similar site setup panel but I cant get my files to display in my browser when I test them. Its give me an error :
    The following information is meant for the website developer for debugging purposes.
    Error Occurred While Processing Request
    File not found: /root/srv/htdocs/ovportal/index_home.cfm
    Resources:
    Enable Robust Exception Information to provide greater detail about the source of errors. In the Administrator, click Debugging & Logging > Debug Output Settings, and select the Robust Exception Information option.
    Check the ColdFusion documentation to verify that you are using the correct syntax.
    Search the Knowledge Base to find a solution to your problem.
    Browser      Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_7; en-us) AppleWebKit/533.20.25 (KHTML, like Gecko)
    Remote Address      0:0:0:0:0:0:0:1%0
    Referrer     
    Date/Time      15-Sep-11 03:23 PM
    Anyone can help me please get this running. I'm almost 5 hours into this setup now with no luck.
    Thanks

    Here is my Coda setup.
    I'm not sure if remote root should be set to this address.
    http://localhost:8500/sy-v2/sy (branch)/root/srv/htdocs/portal/
    This is where my index.cfm file would be.
    When I type in to a browser directly I am able to load the page but when I broswe it through coda I keep getting this url.
    I keep getting sent to a local machine path and not my http://localhost path. I know its something simple in my Coda settings.
    Also to note i'm testing from my local tab in Coda and not remote tab.

  • How to update Data Services (ALDSP 2.5) from WebLogic Server 9.2 correctly?

    Hi,
    I need to update some physical data service in ALDSP 2.5 on WLS 8.1 SP6 (8.1.6) via Static Mediator API from WebLogic Server 9.2 MP2 (9.2.2) application. I have reviewed the article about interoperability of ALDSP 2.5 and WLS 9 here:
    http://edocs.bea.com/aldsp/docs25/appdev/ejbclt.html#wp1090900
    Firstly, I had a problems with the interconnection between 9.2 client and ALDSP 2.5 due to some missed methods/classes. Finally, I've added the following libs to my WLS 9.2.2 pre-classpath in such an order:
    MyDSPProject-ld-client.jar (built with Ant script using XmlBeans 2.0)
    wlsdo.jar (from ALDSP 2.5)
    xbean.jar
    xqrl.jar
    wlxbean.jar
    ld-client.jar (from ALDSP 2.5)
    I do the update in the way shown in attached java file.
    After submit method call, I've got two copies of a new item added in the DB and also an exception that is shown in attached log-file.
    What is the possible cause of this issue?
    I use MySQL DBMS version 5.0.45.
    I've also tried MS SQL 2005 but it simply had the same results.
    DSP audit log is also attached.
    Thank you in advance!
    Best Regards,
    Vitalii Tiutiunnyk

    The problem is that your client is WLS server, and WLS server has network class loading disable (for security), and the result from the call requires a class that is not on the client. The call succeeds, but the the network class load for the result fails, and the WLS 9.2 framework (incorrectly) retries the call (and you get either a duplicate key exception or a second row inserted). Putting the server jar in the client classpath solves the problem.
    If you wanted more information or help, you can contact BEA Customer Support and tell them it is regarding the CR I mentioned.

Maybe you are looking for

  • Why is "Apply to enclosed items" grayed out?

    There is an archived thread on this issue but with no resolution. When I want to change permissions on the contents of a folder, very often the "Apply to enclosed items" button (in the Get Info Permissions panel) is grayed out. Why? What's the fix? I

  • Purchase Could Not Be Completed (in-aPP)

    Purchase Could Not Be Completed (in-aPP) Help me plz.

  • Sending Emails in OIM

    In OIM 11.1.1.3.0 I have a resource which I am provisioning to, and workflow in place which sends an approval task to the user's manager, and a user within a certain group. How can I send emails to these individuals when a user makes a request to be

  • Forcing a RichEditableText focus glow

    I am creating some accessibility navigation shortcuts for an application and notice that the RichEditableText component (editable=false) has a glow when tabbing to it but doesn't have a glow when using AS to set the focus to it. focusManager.setFocus

  • Why can't I find my ipod touch in icloud when i saw it there a minute ago?

    Did someone wipe my ipod clean, because now i can't find it under devices?