Problem in mapping remoteobject on server side

Hello all
I am trying to use remoteobjects in Flex and PHP via Zend_AMF.  I am having problem in mapping the data object in flex with the one in PHP.
Here's my code....
private function getAuthors(event:Event):void
     serviceRO = new RemoteObject();
     serviceRO.endpoint = "http://localhost/sampleproj/public/";
     serviceRO.destination = "zend";
     serviceRO.source = "MyService";
     serviceRO.addEventListener(FaultEvent.FAULT, faultListener);
     serviceRO.getData.addEventListener(ResultEvent.RESULT, resultListener);
Now, here's the server side directory structure that works for me....
webroot
+ sampleproj
++ public
+++ index.php (index file for the webapp)
+++ MyService.php (this is the service class)
+++ VOAuthor.php (this is the Value Object class)
Since the index file, and the service file and value object are all in same directory, it works.
This is what DOESN'T work....
webroot
+ sampleproj
++ services
+++ MyService.php (this is the service class)
++ vos
+++ VOAuthor.php (this is the Value Object class)
++ public
+++ index.php (index file for the webapp)
The error that I get is:
Channel.Connect.Failed error
Here's little of something that's going on in index.php
<?php
require_once ('C:/webtools/zendframework/zf/library/Zend/Amf/Server.php');
require_once ( realpath(dirname(__FILE__) . '/../services/MyService.php') );
$server = new Zend_Amf_Server();
$server->setClass("MyService"); // adding the class to AMF server
$server->setClassMap("VOAuthor", "VOAuthor"); // mapping the ActionScript VO to PHP VO
echo($server->handle());
?>
My guess is that in ActionScript code I have to do something with RemoteObject's endpoint.
Can anybody please help me out with this?
Thanks and Regards
ShiVik

The problem turned out to be in the php code.
Here's how I changed it
<?php
require_once ('C:/webtools/zendframework/zf/library/Zend/Amf/Server.php');
$server = new Zend_Amf_Server();
// the following methods provide the lazy loading of services and value objects
$server->addDirectory( realpath(dirname(__FILE__) . "/../services/") );
$server->addDirectory( realpath(dirname(__FILE__) . "/../vos/") );
echo($server->handle());
?>
Earlier I wasn't taking into account the change of directories for service and value object files.
Thanks and Regards
ShiVik

Similar Messages

  • Problem decrypting the encryptedKey at server side

    Hi,
    Just a bit of background about my environment and problem: I am using JBoss 4.2.3 and JBoss metro for my web services. I am trying to test my web service with security using SOAtest6.2. I also have a servlet based client for my web service. I have enfored WS-Security policy using WSIT. Now when i use servlet based client everything works perfectly ok, however when i use SOAtest6.2 using the same keystore and truststore (which i have used for servlet based client) it doesn't seem to be working. I am getting the following error at server side:
    ERROR [com.sun.xml.wss.logging.impl.opt.crypto] WSS1913: Key used to decrypt EncryptedKey cannot be null
    ERROR [com.sun.xml.wss.logging.impl.opt.crypto] WSS1927: Error occured while decrypting EncryptedKey
    I don't know where things are going wrong here.
    Not sure what other information i should provide at the moment, however i will provide any information as and when required.
    Thanks

    Are there any exceptions thrown??
    And where are you trying to run your application?

  • Problem in mapping sap bw server with Visual composer

    I tried to create a module.. but the sap bw server is not mapping with visual composer. is any need to have special authorization for that.. if any please mention the authorization and role to be given to get mapping of bw server with visual composer.
    please look into this issue..
    Regards,
    Mohankumar.G

    Hi,
    Have u done user mapping?
    Refer the following  link
    <a href="http://help.sap.com/saphelp_nw04s/helpdata/en/43/cec42a45cb0a85e10000000a1553f6/content.htm">http://help.sap.com/saphelp_nw04s/helpdata/en/43/cec42a45cb0a85e10000000a1553f6/content.htm</a>
    <a href="/people/marcel.salein/blog/2007/03/14/how-to-create-a-portal-system-for-using-it-in-visual-composer">/people/marcel.salein/blog/2007/03/14/how-to-create-a-portal-system-for-using-it-in-visual-composer</a>
    Regards,
    Hemalatha

  • Problem in connection making at server side

    I wrote the following piece of code while working with bluetooth jsr-82 and j2me.
    statusform.append("before Connector.open...");
    lserver =  (L2CAPConnectionNotifier) Connector.open( url );
    statusform.append("Before acceptAndOpen");
    request = lserver.acceptAndOpen();where statusform is a form on which im displaying these texts.
    url is: String url = "btl2cap://localhost:" + uuid.toString() +";name="+appName+";ReceiveMTU=1024;TransmitMTU=1024";
    where uuid is "102030405060708090A0B0C0D0E0F011" .
    Problem is that "before Connector .open" is shown on the form but "Before acceptAndOpen" is not. Can anyone plz tell me what could possibly the reason behind it?
    Thanks
    Message was edited by:
    AqueelAhmad

    Are there any exceptions thrown??
    And where are you trying to run your application?

  • Problem with skin for server side buttons.

    Hi,
    I have a problem with the skin for server side renderd buttons.
    In my CSS file I have :
    .AFButtonStartIcon:alias
    content:url(/skins/images/btns.JPG);
    .AFButtonEndIcon:alias
    content:url(/skins/images/btne.JPG);
    .AFButtonTopBackgroundIcon:alias
    content:url(/skins/images/btntb.JPG);
    .AFButtonBottomBackgroundIcon:alias
    content:url(/skins/images/btnbb.JPG);
    JPG files in project are in dir "public_html/skins/images".
    In WAR file,the JPG files are in "/skins/images" directory.
    Skin configuration is correct because other settings from CSS
    file are functioning fine after deploying.
    But buttons are standard browser buttons and are not taking the images i have used.
    In document provided by Oracle it says:
    (Note: These icons must be specified using either context-image or
    resource-image icons. Text-based icons are not allowed.)
    I am nt able to understand what this means?

    Perhaps this thread will help.
    JSF Skining Button Images
    The doc should say whether or not the width/height is a requirement. But since it doesn't mention it, try adding a width and height.
    - Jeanne

  • SharePoint Designer 2013: Server-side activities have been updated

    When developing custom activities for SharePoint 2013 Workflows, I ran into the problem that SharePoint Designer prompts “Server-side activities have been updated. Please restart SharePoint designer” every time when you try to create a new workflow.

    Hi,
    I recommend to clear/delete the cached files and folders under the following directories from your server installed SharePoint Designer, then check results again.
    <user profile>\appdata\roaming\microsoft\SharePoint Designer\ProxyAssemblyCache
    < user profile>\appdata\local\microsoft\websitecache\<sitename>
    http://social.technet.microsoft.com/Forums/en-US/5796972e-3a92-4306-8cf1-e1e7b9ab9635/error-while-saving-a-workflow-via-sharepoint-designer-serverside-activities-have-been-updated-you?forum=sharepointcustomization
    If the issue still occurs, please re-install SharePoint Designer.
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • Tabbed panels, Collapsible Panel, and Server Side Include

    Hi,
    I'm having a problem with the way a Server Side Include inside a Collapsible Panel displays.
    Here is how this particular page is set up.
    The page has spry tabbed panels.
    >>A panel has one overall Collapsible panel (the main product tab)
    >>>>Nested in that Collapsible panel are four other collapsible panels (Overview, Features, Screenshots, What's New).
    >>>>>>In each of these four collapsible panels is a server side Include that features that category's content
    E verything works fine as far as opening and closing is concerned. However, the problem is with the display. The content panel doesn't resize with the Include content, and therefore, the Include content extends outside the border of the content panel.
    I'm thinking this is because it is Include content rather than normal content. Is that right?
    Do I fix this by changing the overflow value of one the Tabbed Panel CSS styles? If so, which one should I change, and to what value?
    Or if that's not how to fix it, can anyone tell me how?
    Thanks a lot,
    Mike

    Hi, I'm using the latest version of Spry. I modified some CSS rules of the tabbed panels, but not the javascript file. I didn't do anything to the Collapsible Panel rules.
    Since first posting this thread, I changed the overflow of the Tabbed Panels Content Group CSS rule to "scroll". That did produce a scroll, but I'd much rather have the panel expand. So, I changed it back the way it was.
    Here's the page I'm working on. Click the Court Solutions tab to get to the problem panel.
    http://www.ptssolutions.com/Test/public_safety_products_3.shtml
    It has different results in IE and FireFox, but doesn't work correctly in either.
    Thanks a lot for all your help,
    Mike

  • Problem with server side state saving ,JSF 1.1.1

    Hello,
    In my web.xml  the.STATE_SAVING_METHOD setting is s server
    <context-param>
            <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
            <param-value>server</param-value>
        </context-param>
    for measurement of application security isn't not allow to change this parameter to client , so the problem  when i access for application and i open a new page via linker for print for example and i would access for my initial page to make change or modify my initial page it s no possible to make any modification because i have a empty bean , but if the state saving is a client i haven't a problem because a tree map is stored in client browser, so my version of JSF is 1.1.1 ,
    So can you explain the cause for his problem
    and what's the solution for my problem ?
    NB:i can't change the parameter for STATE_SAVING_METHOD for a client
    Thank you

    did you search this form, there were lot of discussions in the past about server side cookies, you may find an answer to your problem.
    alternate approache for sending a value from parent page to the pop up window.
    1. when opening the pop up pass the values along with the url (if the size of variable is small)
    alternatively you can store the value in a hidden form field in parent window and access the same from poup window using
    you can simple access the page one form field value in page 2 (pop up) by using the following code.
    window.opener.document.getElementById('hiddenformfieldid').value

  • Server-Side Wins with Shared Maps

    We are using shared maps/publication items in our solution. Using this approach, the MGP process composes the set of publications items once for each group of users instead of once for each user. This helps a great deal in reducing MGP-compose times.
    What we are looking to implement however is server-side conflict resolution with shared maps. Oracle does not support this by deafult, so we were told write custom conflict resolution for this to work.
    As it stands now, we have written custom DML for the conflict resolution. However, in the apply-phase we are only given the group-id for the current sync user. What we need, however, is the client-id of the current sync user.
    Using the client-id, we can check to see if the client (and not the entire group) has any dirty records in the out-queue. If there are dirty records, then the server wins and the conflict-records are not applied.

    shared items have the same selection criteria for all users (ie: no data subsetting). Therefore the same data is composed and placed in the out queue for each user that is part of the group.
    I assume you are trying to check if there is a copy of the incoming record waiting to go to the the user, so you can compare the data on update. The problems you may have with this are
    1) data being present in the out queue (or not) depends as much on when the last compose ran, as the fact that the data has changed (can you hand on heart guarantee that the compose will have run if the user sends an update within a half an hour of the server being changed.
    2) the same record (because it is shared) may have been downloaded to a number of different clients. What will you do if they all send back updates?
    normally shared items are used for reference data (ie: static), but if you want to use them in this way it may be better to do your conflict tests against the actual underlying data, rather than what is stored in the MGP temporary tables. This will provide more consistent results as it does not rely on the timing of the compose process, and will be consistent for each user transaction
    You know which publication item is being processed. From mobileadmin.C$all_publications you can pick up the schema name, object name and template query. You can then use this to compare the current server data against the incoming data

  • Problem in Server side includes using Tomcat

    Problem in Server side includes using Tomcat:
    I am trying out small programs in servlet.
    I get one example program for server side includes from net.
    The code is:
    <HTML>
    <HEAD><TITLE>Times!</TITLE></HEAD>
    <BODY>
    <P>
    The current time in London is!!! :
    <SERVLET CODE="CurrentTime" codebase="../servlet">
    <PARAM NAME="zone" VALUE="GMT">
    </SERVLET>
    </P>
    </BODY>
    </HTML>
    I placed this test.shtml file in tomcat-home/webapps/ROOT folder and i kept the servlet in WEB-INF/classes folder.
    I renamed the servlets-ssi.jar and i removed the comments for SSI in web.xml file.
    When i run the servlet separately, i am getting the correct result. But if i run shtml file with the URL : http://localhost:8080/Test.shtml,
    i am getting the result as:
    The current time in London is!!! :
    It is not invoking servlet program.
    CAN ANYONE HELP ON THIS!
    Thanks.

    Thanks...as u said I tried putting dir & found that
    my file was saved as Ch1Servlet.java.txt instead for
    Ch1Servlet.java......So that was a problem.Now I'm
    able to compile.Oh, yeah. Notepad will do that to you. I think when you save in Notepad if you put quotes around the name "Whatever.java" then it won't add the .txt.
    But on compiling I'm getting the following error
    package java.servlet.* does not exist
    package java.servlet.http.* does not exist
    package java.io.* does not exist
    Do u the reason for this??? The servlet stuff is java[b]x.servlet. For the io stuff, I don't know, I'd have to see your code. Either you have a typo or a corrupt installation.

  • Server side include problem in DW design mode

    I am having issues with one computer out of three...Using DW
    8 on Mac OS 10.4 Intel....
    I have a server-side include set up to contain my navigation
    (nav.shtml) inside of a DW template, and normally, the editable
    regions can be worked in and the SSI area comes up blank until the
    file is uploaded to the server (which is OK...).
    On the third computer, however, the SSI area is actually
    visible in DW, but the Editable Region containing the main content
    area doesn't even show up, therefore we cannot work on web pages on
    that computer. I know this must be a setting having to do with
    using DW and a Mac as a web server, but I cannot find it! Anyone
    have any clues?
    Thanks so much!

    Can you describe teh details of the problem, please?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "Phil Cornish" <[email protected]> wrote in
    message
    news:g8eosb$ijq$[email protected]..
    >I have this same problem on a Win XP
    machine...HELP!!!!!!!!!!

  • Problem inserting records after execution of server side code

    Hello,
    I've created a server-side function for duplicating a master record and it's details. This function has two input parameters that define the new unique key of the master record. Because the user has to supply the new unique key, there is a possibility that the unique key already exists.
    The server-side function is being called from a form module. This form module contains all the code needed for opening / closing and aborting the HSD transaction. The form also enables users to add new master records manually.
    If the server-side function is called from within the module there are two possible outcomes:
    1, the unique key already exists and the HSD error message window is displayed.
    2, the unique key does not exist and the records get duplicated.
    If I try to add a new master record in the form after a failed duplication process, I get a form message informing me that NULL cannot be inserted into the ID column. (The primary key.) BTW updates work just fine. However, if I call the server-side function again and the duplication process is succesfull, I can again insert a new master record in the form succesfully.
    I'm assuming that this problem has something to do with the TAPI package because I use TAPI insert calls to insert the master / detail records when duplicating. A workaround for this problem is (obviously) to check if the supplied unique key already exists in the database before calling the server-side function.
    I however am concerned a bit because a lot of program functionality has been implemented in server-side functions and procedures. So I would like to know if anyone has had the same problems and possibly knows if there is a generic solution to this problem.
    Greetings,
    Marco.

    Marco,
    Can you make a test case for me and send it to me? It looks like we might have a bug and I would like to investigate.
    Regards,
    Lauri
    [email protected]

  • Problem to update Swing components from RMI object at server side

    Greetings, I have a RMI client/server application, both client and server have a Swing GUI. But at the server side, it appears to me that I can't pass object or make function call to my server GUI class. Because I can't have GUI instance or reference in my Remote object. (java.rmi.MarshalExceptio, java.io.NotSerializableException, blar blar ...)
    My problem is, if a client does something, I want to reflect the changes on the server side GUI. How can I do this except using a spin query?
    Any help would be greatly appreciated.
    Thanks.
    John
    Edited by: zgliang on Sep 13, 2007 3:30 AM

    I'd like to suggest you read the topic "Questions RMI & Swing & SwingWorker", which is similar to yours.

  • Problem with server side cookie

    Hi, I have a problem with a server side cookie. I'm trying to store a cookie trough the  cl_bsp_server_side_cookie=>set_server_cookie method in the OnInitialitation event handler of a bsp (my bsp application is non mvc) and then to retrieve this cookie trough the  cl_bsp_server_side_cookie=>get_server_cookie method in the OnInputProcessing event handler of the same bsp. In this cookie i'm storing a internal table but i'm not getting it when i invoke the get_server_cookie method.
    This is the source code that i'm implementing:
    OnInitialitation:
    wa_comunnication_data-mobile = wa-mobile.
              wa_comunnication_data-telefono = wa-tel_number.
              wa_comunnication_data-email = wa-email.
              APPEND wa_comunnication_data to comunnication_data.
               cl_bsp_server_side_cookie=>set_server_cookie(
                  EXPORTING
                   name = 'cook_comunnication_data'
                   application_namespace = 'NONE'
                   application_name = 'NONE'
                   username = 'NONE'
                   session_id = runtime->session_id
                   data_value = comunnication_data
                   data_name = 'comunnication_data'
                   expiry_time_rel = 720 ).
    OnInputProcessing:
    cl_bsp_server_side_cookie=>get_server_cookie(
          EXPORTING
           name = 'cook_comunnication_data'
           application_namespace = 'NONE'
           application_name = 'NONE'
           username = 'NONE'
           session_id = runtime->session_id
           data_name = 'comunnication_data'
          CHANGING
           data_value = comunnication_data ).
         READ TABLE comunnication_data INDEX 1 INTO wa_comunnication_data.
    regards, marcel.

    Why do you need to use cookies in the same BSP Application?
    Try to use below:
        username              = sy-uname
        application_name      = runtime->application_name
        application_namespace = runtime->application_namespace
    <i>*reward each useful answer</i>
    Raja T
    Message was edited by:
            Raja Thangamani

  • Server-Side stream play problem

    Hello,
    I have a problem, which I am trying to solve for many nights already without any success.
    Everytime I try to switch or change a server-side stream, it starts lagging after 2 seconds of playing and sound disappears.
    Here are scenarios that result in that terrible lag:
    1. I create server-side playlist with stream.play() with reset=false; when it is time to play the next movie in the playlist, it starts lagging after 2 seconds.
    2. The same problems appears when I just switch streams. I installed FMF Feature Explorer and tried to launch SwitchStreams sample application: the same problem - server stream starts lagging after I switch streams with stream.play().
    I tried on different servers (local and remote), with different players (debug player of FMS Admin Console, Standard Flash videoplayer component, OSMF player, Flex video player). I also tried all possible flv, f4v and mp4 file compression options for video files - still the same problem.
    I have also tried literally thousands of Application.xml settings: changing buffer, buffer ration etc.
    Is there any tip where I should search for a solution?
    Thank you in advance

    JayCharles,
    Thank you for your reply.
    But in my case the client is subscribed to a stream on the FMS. And that stream is switching video files and handling the playlist. So, I don't see any possibility to listen to onPlayStatus on a client-side, as my client is only playing live stream and has no clue what is happening on the server side.
    Or I am wrong?

Maybe you are looking for

  • How can I restore contacts from a previous back up?

    I accidentally erased my contacts from my iPhone. I can see previous backups on my iTunes preferences. But the only option is to delete them. Does anyone know how to restore one of those backups?

  • Using "Services for Object" to attach local files to SAP objects (POs)

    As I understand creating an Attachment to a PO for example from local drive - is a standard SAP functionality that does not require configuration, but ... in our Development, Quality and Production systems any document type can be attached, but not i

  • Error in mail proxy on OSB Server

    Hi, I am facing following issue in my production, but no idea. please help me to resolve. ####<Apr 8, 2013 11:26:19 AM SGT> <Error> <WliSbTransports> <PRODSVR> <OSBMGNDSVR1> <pool-16-thread-1> <<anonymous>> <> <0000Jq0Z35q5qY15zvw0yW1HHx7h000001> <13

  • Path for Directory in Selection Screen

    I have one field in selection screen Error log. I have to pick path for dirctory in that parameter, so that I can save my error log there on that path. how i can do it ? F4 for the path is needed. how i will define that parameter in selection screen?

  • Preformance problem - Oracle does not choose the Materialized view

    Hi, Version 10204 I have the following Materialized view : CREATE MATERIALIZED VIEW CRM.MV2_TUDWH_CRM_1201 TABLESPACE DW_LARGE NOCACHE NOLOGGING COMPRESS PARALLEL ( DEGREE DEFAULT INSTANCES DEFAULT ) BUILD IMMEDIATE REFRESH COMPLETE ON DEMAND WITH PR