Welcome, Guest
  • Author Topic: remoting works fine on local machine not from remote server!!  (Read 5080 times)

    saumya

    • Senior Programmer
    • ****
    • Posts: 496
      • View Profile
      • currently active
      • Email
    hi,
    I was doing a remoting project, which is doing good on local machine, but when put it online(http://cetarchies94.ismyse.com/OpenManage-debug/OpenManage.html), It does not work.I mean it shows the busy cursor, I think it calls the script and does not get any data back. If I try the console(http://cetarchies94.ismyse.com/weborbphp/), everything works fine, online too!!
    I thought a lot of time whehter to put it on here or not, for I am working on webORBPHP. If you can help me out, it would be a really great help.

    Ronald Wernecke

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 6203
      • View Profile
      • Professional Support
      • Email
    did you try checking the traffic with CHARLES ?
    happy flashing
    8)
    Ronald

    saumya

    • Senior Programmer
    • ****
    • Posts: 496
      • View Profile
      • currently active
      • Email
    hi Ronald,
    I checked it with Charles, that shows me proper data returned.
    thanks for the help

    Ronald Wernecke

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 6203
      • View Profile
      • Professional Support
      • Email
    so the data returned, but the client does not display it.
    Then something must be different.

    Check Charles, if the data has the same structure. Maybe you did something with hostname, or with capitalized filenames etc.

    Be aware: WINDOWS shows capital letters, but does not recognize the difference while LINUX does.
    happy flashing
    8)
    Ronald

    saumya

    • Senior Programmer
    • ****
    • Posts: 496
      • View Profile
      • currently active
      • Email
    Hi Ronald,
    I am sorry but I got confused last time.
    Actually Data returns on the webORB Console. But while calling from my application, no data is returned from the server !! the same service call, thanks to CHARLES, it amazing.It even shows AMF data on the console side invocation but no response from application side service call.
    Can you help me with this issue please.
    thanks

    Jorge Solis

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 14616
      • View Profile
    Usually when no data returns, an error appears. If you don't receive data at all, probably you're using different domains (or subdomain trough the same domain) and the sandbox blocks the call, check if they're not a call to some crossdomain (trough Charles)

    Jorge

    saumya

    • Senior Programmer
    • ****
    • Posts: 496
      • View Profile
      • currently active
      • Email
    hi Jorge,
    I am hosting it in a shared server mode (http://cetarchies94.ismyse.com/we/OpenManage.html)
    I have already put a crossdomain on the root of server. Is it necessary to put a cross-domain in the main server root ?
    Can you please let me know how to see in charles, whether it is calling cross-domain or not?

    Further digging into the bug let me know that if I pass strings as arguments to server side, it works perfect (I am getting results back on frontend)but if I am sending some VOs or other objects, the call fails :(
    Is there any guide line or best practices for how to send VOs ?
    « Last Edit: 09/15/08, 02:23 by saumya »

    Jorge Solis

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 14616
      • View Profile
    Just use the explicit type  to map classes as stated in http://www.flash-db.com/Tutorials/helloAS3/

    Jorge

    saumya

    • Senior Programmer
    • ****
    • Posts: 496
      • View Profile
      • currently active
      • Email
    hi jorge,
    thanks for the reply.
    I am feeling that something terribly wrong in myside or something simple is missing. For I have declared the
    var $_explicitType = "com.saumya.openmanage.model.vo.CompanyVO";

    in my PHP classes. I was actually following the topic you just pointed out.I got the whole idea from that topic too and get going.
    Help is appreciated

    Actually i am getting everything correct even the VOs on my local server!! once I port it in remote server, suddenly there is no response!!
    « Last Edit: 09/15/08, 10:42 by saumya »

    saumya

    • Senior Programmer
    • ****
    • Posts: 496
      • View Profile
      • currently active
      • Email
    finally got it working on AMFPHP rather than webORBPHP.
    But the real problem was some where else.

    Its the 'services-config.xml' file which was doing all the mess. Please compile your application with the correct 'services-config.xml' before deploying it to the server. I was deploying the same swf to the server which was compiled with the 'services-config.xml' for local development environment.

    Anyways, thanks guys for your support.