Handling HttpService and Remoting Service simultaneously

          I have a RemoteObject(service) to communicate to the back end and retrieve the data. I used HttpService to create a form dynamically and I have datagrid on the form. Once, I clicked the get button in the form, the data should be retrieved from the database and shown in the datagrid.
As expected, I clicked the get button, it will dispatch the CairngormEvent(which will internally call the remoteObject and get the data) and which will get populated into the datagrid, but these both operations are happenning simulatneously.So, that I could not get the values in datagrid. If I click again, it is populating the values. I would like to prevent running simulatneous operation of these two, Only after the remoteObject is done with get all the values from backend, it should continue further.
Could you please help me to resolve this issue?

The key in this case is to change things to the remote service gets called in the HTTPService result handler after that result handler is done with whatever it needs to do, or perhaps a method is called inside the HTTPService result handler calling the remote service.
Another option, and perhaps the more logical one, is to call the remote service in the form creationComplete event handler, if the problem is that the form is not being created by the HTTPService yet.
Events like this in Flex are asynchronous, so it is necessary to structure things this way.
If this post answers your question or helps, please mark it as such.

Similar Messages

  • CS3: Viewing local and remote files simultaneously

    A friend recently purchased a new computer. On her previous PC, she could expand the Files view in Dreamweaver (v9) CS3 and see a split screen -- local files on one side, remote files on the other.
    She removed CS3 from her old machine and installed (from the same disks) on her new machine. Now, she cannot see the local/remote split screen.
    She can expand the Files tab (F8) to fill the screen - but that doesn't help. She checked, and her FTP settings are correct and connect properly.
    I know it's possible to do this is CS3 - I've seen her do it and I always worked in this view going back to Dreamweaver 4 - but the option to see local/remote seems to be gone!
    Any suggestions on how to fix this would be appreciated.

    Assuming you have properly defined both local and remote site settings -- Sites > Manage Sites....
    Your files panel  may be too narrow to see it.  Open it up wide, notice the icon at far right for "Expand / Collapse?" 
    See screenshot:
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • Using AIA for Error Handling. Logging and Notification Services

    hi,
    In our project we usie OSB and BPEL for integrating different applications.
    There is a suggestion that we should use AIA to just use the Error Handling, Logging and Notification services from AIA. I am not sure about this use case, as most of these services mentioned can be replicated in BPEL. Except for the AIAAsyncExceptionHandling BPEL process, i guess all other functionalties provided by AIA can be easily developed in BPEL or OSB alone.
    However, would like to hear from you guys about this particular use case. Is it advisable?

    Hi,
    It's an issue with 10.1.3.4 OBIEE. (whem using IBM LDAP)
    References
    BUG:7363517 - INTERNAL BI FAILURE ON STARTUP
    They issue can be resolved by setting LD_PRELOAD=/path/libibmldap.so
    Here are the steps:
    . sa-init.sh
    export LD_PRELOAD=/path/libibmldap.so

  • HT204053 Can I use the same Apple ID for iMessage and FaceTime services from two different devices - iPhone and iPad?

    Can I use the same Apple ID for iMessage and FaceTime services simultaneously on two different devices - iPhone and iPad? It seems those are competing to each other, and the services work on one of them only (iPhone).

    Many thanks, Sir! Both are mine and it's good to know that imessage can work on both with the same Apple ID. Will now have to find out why imessage stopped working on iPad when it started on iPhone (new). After exploring the forum I understand  that there may be plenty of reasons why imessage does not work, even though it worked previously on the same device with the same ID.

  • How to handle Remote Service retries?

    Hi,
    I'd like to retry failed remote service calls a few times before alerting the user that there really is a problem.
    Are there any conventions for doing this?
    I'm thinking of adding a retry counter somewhere - maybe the Model or ServiceLocator? - and then dispatching a new Event in the Command fault handler.
    public function fault(event:Object):void {
         if(retryCount < retryMax) {
              new MyServiceEvent...
         }else{
              Alert.show...
    cheers

    What you are attempting to do is tricky with standard Cairngorm.  You will need to extend the architecture a bit to accomplish this.
    What my team has done is create a callback feature on the Event, so after the Command is executed, the View knows if it succeeded or failed.  The View can then be responsible (and it is the View's responsiblity, not the Command's) to attempting the Event again n number of times before failing to the user.
    To get a high level concept of what this means, you can read some of my articles about using Abstract Classes in Cairngorm.
    Abstract Events
    Abstract Commands
    Hope that helps
    - Steve

  • How to use the same services-config for the local and remote servers.

    My flex project works fine using the below but when I upload my flash file to the server I doesn't work, all the relative paths and files are the same execpt the remote one is a linux server.
    <?xml version="1.0" encoding="UTF-8"?>
    <services-config>
        <services>
            <service id="amfphp-flashremoting-service"
                class="flex.messaging.services.RemotingService"
                messageTypes="flex.messaging.messages.RemotingMessage">
                <destination id="amfphp">
                    <channels>
                        <channel ref="my-amfphp"/>
                    </channels>
                    <properties>
                        <source>*</source>
                    </properties>
                </destination>
            </service>
        </services>
        <channels>
        <channel-definition id="my-amfphp" class="mx.messaging.channels.AMFChannel">
            <endpoint uri="http://localhost/domainn.org/amfphp/gateway.php" class="flex.messaging.endpoints.AMFEndpoint"/>
        </channel-definition>
        </channels>
    </services-config>
    I think the problem  is the line
            <endpoint uri="http://localhost/domainn.org/amfphp/gateway.php" class="flex.messaging.endpoints.AMFEndpoint"/>
    but I'm not sure how to use the same services-config for the local and remote servers.

    paul.williams wrote:
    You are confusing "served from a web-server" with "compiled on a web-server". Served from a web-server means you are downloading a file from the web-server, it does not necessarily mean that the files has been generated / compiled on the server.
    The server.name and server.port tokens are replaced at runtime (ie. on the client when the swf has been downloaded and is running) not compile time (ie. while mxmlc / ant / wet-tier compiler is running). You do not need to compile on the server to take advantage of this.
    Hi Paul,
    In Flex, there is feature that lets developer to put all service-config.xml file configuration information into swf file. with
    -services=path/to/services-config.xml
    IF
    services-config.xml
    have tokens in it and user have not specified additional
    -context-root
    and this swf file is not served from web-app-server (like tomcat for example) than it will not work,
    Flash player have no possible way to replace token values of service-config.xml file durring runtime if that service-config.xml file have been baked into swf file during compilation,
    for example during development you can launch your swf file from your browser with file// protocol and still be able to access blazeDS services if
    -services=path/to/services-config.xml
    have been specified durring compilation.
    I dont know any better way to exmplain this, but in summary there is two places that you can tell swf  about service confogiration,
    1) pass -services=path/to/services-config.xml  parameter to compiler this way you tell swf file up front about all that good stuff,
    or 2) you put that file on the webserver( in this case, yes you should have replacement tokens in that file) and they will be repaced at runtime .

  • Active directory domain services stopped after removing routing and remote access role

    Hello everyone;;
    I am in deep trouble.. I did install routing and remote access and then  lost connection to the server remotely. Then I connected a monitor to the server and removed the role... then it asked me to restart the server . After logging back in I found
    all my active directory service has gone... I can see red cross on active directory domain services.. Also I am able to ping other pcs but other pcs cannot ping my server..
    However when I go into the active directory services, it shows all services are running except file replication service. I have tried to start that service but it give error 1053 error..
    My server in  between loses LAN connection... I dont know what is going on.. Please help!!!
    My  server is win 2008 R2 ser pack 1
    Only one DC....
    Has fixed ip, 
    no DNS server running..

    Hi,
    The File Replication Service Start Error 1053 error can be caused by damaged Windows system files. Corrupted system files entries can threaten the well-being of your computer. Many events can result in creating system file errors.
    Please refer to the articles below to troubleshoot the issue:
    File Replication Service Start Error 1053
    http://repairerrors.net/file-replication-service-start-error-1053.html
    Please Note: Since the website is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
    Regards,
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Error 1053 when starting the Routing And Remote Access service

    Hi all,
    When I tried to start the "Routing And Remote Access" service on Windows 8.1 I got an error message as follow.
    Could some one help me please.
    Than's.

    Hi MRAB,
    Please check if all dependences are enabled first.
    Then set the start type to Automatic.
    Does this issue still occur after a restart?
    Alex Zhao
    TechNet Community Support

  • (com.apple.collabd[15483]): Service setup event to handle failure and will not launch until it fires.

    Hello,
    I am fairly new at Xserve administration, but I got thrown in the fire and i need your help.
    My system.log is being hammered with this error:
    (com.apple.collabd[15483]): Service setup event to handle failure and will not launch until it fires.
    I did my research and it seems to be related to Wiki, but I disabled wiki and restarted and it is still coming up. Any advice would really help
    System Version: OS X 10.10.1 (build 14B25)
    Server Version: Server 4.0.3 (Build 14S350)

    Try deleting the preferences file

  • Routing And Remote Access Service: Error 1068: The dependency service or group failed to start

    Hi,
    I tried to establish a PPP connection between my windows 8.1 PC and another kind of machine using an USB cable. So, as usual on Windows XP and Windows 7,
    I configured the COM in the modem list and I tried to start the
    "Routing And Remote Access" service and then
    I got this message.
    So any idea why is failing?
    Please help!
    Thanks thaks thanks

    Hi,
    Was your issue resolved?
    If no, please reply and tell us the current situation in order to provide further help.
    Karen Hu
    TechNet Community Support

  • How to handle exeptions and authorization management in WEB SERVICES

    Hi all,
    Please send some documents or links on handling exceptions in web services and Authorization management also.
    Useful will be rewarded.
    Regards
    Neslin.

    i suggest to consult the documentation at help.sap.com, use the search function to the left or make your question more specific.
    regards, anton

  • I found a remote service running after the 10.10.3 update. ps -A|grep remote.  And I had remote management turned off in prefs.

    I found a remote service running after the 10.10.3 update.
    ps -A|grep remote. 
    And I had remote management turned off in prefs.
    I force quit the process with activity monitor.
    This looks as if it could be a problem.

    Well the term "hotlined" I have never heard before. In any case many states (like NY) just passed regulatory powers to the State Public Service Commission of which it may be called something different in your state. You could file a complaint with them. Or file a complaint with your state attorney generals office, they also take on wireless providers.
    The problem here is the staff you speak to are poorly trained, in days gone by it took one call to them and they pulled up your account and see the error and had the authority to remove any errors. They did not remove legitimate account actions, but used their heads instead of putting a customer off or worse lying to the customer.
    Its a shame you have to go through what you going through.
    Good Luck

  • Windows 2012 routing and remote access service with same subnet

    I have internal server IP range -192.168.1.0/24
    Windows routing and remote access service  with vpn client IP -192.168.11../22
    client side IP subnet is -192.168.1.0/24
    So we wan routing \ NATING between  192.168.1.0/24 to 192.168.11.0/22 so if vpn user try to ping 192.168.11.5 it should internally forward all request to 192.168.1.5 
    <p>Don't forget to mark helpful or answer</p> <p>connect me :-</p> <p>http://in.linkedin.com/in/satya11</p> <p>http://facebook.com/satya.1000</p>

    Hi,
    According to your description, my understanding is that VPN client and internal network has the same IP range -192.168.1.0/24. And you want to transfer internal network from IP address 192.168.1.0/24 to 192.168.11.0/22.
    Agree with Charles David’s point of view. The easiest way to fix routing confusion would be to either change the VPN subnet or the VPN client subnet.
    Or, if you configure Windows Server(RRAS) as VPN server, you may enable NAT to transfer internal IP address:
    1. Open RRAS, add NAT.
    2. New interface to NAT and configure it as public interface.
    3. Open Address Pool tab, add IP address range 192.168.11.0/22.
    4. Click Reservations, add reserved IP(192.168.11.0/22) and corresponding internal IP(192.168.1.0/24) one by one.
    This would be a lot of workload. Besides, you may use 3rd party devices to transfer subnet IP addresses.
    Best Regards,
    Eve Wang 
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • SharePoint Apps and custom web services as remote services

    Hello,
    After reading documentation about Apps for SharePoint compared with SharePoint solutions I did not find any information about "You
    can develop your custom web services as remote services.".
    Could you please give me links or advise, where I can get information - "How to develop custom web services as remote services" using SharePoint 2013 Apps?

    Hi,
    I would suggest you to use WCF service instead of Web Service,
    also, SharePoint 2013 introduces a Representational State Transfer (REST) service that is comparable to the existing SharePoint client object models.
    Get started with the SharePoint 2013 REST service
    About develop custom web services as remote services,see Demo here:
    SharePoint 2013: Custom REST service provides data to an app for SharePoint
    Best Regards
    Guangchao chen
    TechNet Community Support

  • When invoking service 'remoting-service': flex.messaging.MessageException: Argument is not an array

    I'm getting a strange serialization issue with flex blazeds Spring.
    I can search, add and alter entities but when trying to delete i'm getting this error:
    flex.messaging.MessageException: Argument is not an array
    However when i try the debug mode on server everything is OK.
    here the stack trace for BlazeDs:
    [BlazeDS]Exception when invoking service 'remoting-service': flex.messaging.MessageException: Argument is not an array
      incomingMessage: Flex Message (flex.messaging.messages.RemotingMessage)
        operation = supprimer
        clientId = EA1F8D9C-BD0C-941A-F168-02A08E454F43
        destination = ClientService
        messageId = F8D2B72B-C1D3-E4C5-CB06-11AA332A95B8
        timestamp = 1301671457890
        timeToLive = 0
        body = null
        hdr(DSId) = EA1E7EDA-C60E-F245-CF47-35D38F0ED6FB
        hdr(DSEndpoint) = my-amf
      Exception: flex.messaging.MessageException: Argument is not an array
    at flex.messaging.services.RemotingService.serviceMessage(RemotingService.java:225)
    at flex.messaging.MessageBroker.routeMessageToService(MessageBroker.java:1503)
    at flex.messaging.endpoints.AbstractEndpoint.serviceMessage(AbstractEndpoint.java:884)
    at flex.messaging.endpoints.amf.MessageBrokerFilter.invoke(MessageBrokerFilter.java:121)
    at flex.messaging.endpoints.amf.LegacyFilter.invoke(LegacyFilter.java:158)
    at flex.messaging.endpoints.amf.SessionFilter.invoke(SessionFilter.java:44)
    at flex.messaging.endpoints.amf.BatchProcessFilter.invoke(BatchProcessFilter.java:67)
    at flex.messaging.endpoints.amf.SerializationFilter.invoke(SerializationFilter.java:146)
    at flex.messaging.endpoints.BaseHTTPEndpoint.service(BaseHTTPEndpoint.java:278)
    at org.springframework.flex.messaging.servlet.MessageBrokerHandlerAdapter.handle(MessageBrok erHandlerAdapter.java:79)
    at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:771)
    at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:716)
    at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:647 )
    at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:563)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
    at java.lang.Thread.run(Unknown Source)
    Caused by: java.lang.IllegalArgumentException: Argument is not an array
    at java.lang.reflect.Array.getLength(Native Method)
    at flex.messaging.io.amf.translator.decoder.CollectionDecoder.decodeCollection(CollectionDec oder.java:155)
    at flex.messaging.io.amf.translator.decoder.CollectionDecoder.decodeObject(CollectionDecoder .java:139)
    at flex.messaging.io.amf.translator.decoder.ActionScriptDecoder.decodeObject(ActionScriptDec oder.java:70)
    at flex.messaging.io.amf.translator.ASTranslator.convert(ASTranslator.java:77)
    at flex.messaging.io.Java15TypeMarshaller.convert(Java15TypeMarshaller.java:71)
    at flex.messaging.util.MethodMatcher.convertParams(MethodMatcher.java:211)
    at flex.messaging.util.MethodMatcher.getMethod(MethodMatcher.java:132)
    at flex.messaging.services.remoting.adapters.JavaAdapter.invoke(JavaAdapter.java:420)
    at flex.messaging.services.RemotingService.serviceMessage(RemotingService.java:183)
    ... 27 more
    Thanks.

    Found the issue. There was a difference between the target service and the web service object that I was invoking. Even though I have changed the method signature and changed it back, the web service object that I was invoking needed to be recreated. This fixed the issue.

Maybe you are looking for

  • Protecting files/documents

    is there a way to password protect files/documents?

  • 11/14/2012 Flash Player 11.5 Beta Update

    November 14th, 2012 Flash Player Beta Channel Update Note: We need Mac Plug-in users on the Beta channel.  Mac plug-in usage has not reached the critical mass necessary to detect significant issues in aggregate crash-reporting data.  Please help us o

  • Looking for "Project Management" addon for SAP B1

    I am looking for an addon that will take care of companies who are into Project Execution. Kindly suggest some such addon & partner(preferably from India but not necessary) from where I can get this. Kush

  • Exporting to mpeg2 using Quicktime compression - render problems

    Using FCP Studio 5.1 to export to DVD, FCP keeps asking for file to be rendered even after we have rendered complete movie. There are no green or red bars, so why does FCP not accept this as a full render? We are exporting using mpeg2 Quicktime compr

  • Running alt+f2 always crashes, terminal won't open

    After installing a custom cursor,I've been having problems running programs by alt+f2, it doesn't let me write anything and crashes. I also cannot run terminal emulators except xterm by right clicking. Currently using lxde If you need more info Ill b