Completely different AMF request packets for same remote service call from Flex to PHP using ZendAMF

I was trying to debug why one of the remote-services in our Flex application was failing randomly. What I found was interesting. Completely different AMF request packets were sent for same remote service call from Flex to PHP.
When the service call succeeds the AMF request packet looks like the following:
POST /video/flex/bin-debug/gateway.php HTTP/1.1
Host: localhost
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.15) Gecko/20110303 Firefox/3.6.15
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Cookie: PHPSESSID=j6u30i8uu6c3cvp8f4kipcpf05
Referer: http://localhost/video/flex/bin-debug/main.swf/[[DYNAMIC]]/5
Content-type: application/x-amf
C    ontent-length: 305
Flex Message (flex.messaging.messages.RemotingMessage)     operation = getMemberFromEvent    clientId = 2F997CD0-7D08-8D09-1A9B-0000422676C8    destination = MembereventService    messageId = B46AB58D-2241-83F0-41E4-9FE745565492    timestamp = 0    timeToLive = 0    body =     [      280    ]    hdr(DSId) = nil
And when the service fails the AMF request packet looks like this:
ServiceRequest: getMemberFromEvent; RemoteService; getMemberFromEvent
(mx.messaging.messages::RemotingMessage)#0
  body = (Array)#1
    [0] 250
  clientId = "1AA4FAAB-AEA5-8109-4B0D-000002B3A9A1"
  destination = "MembereventService"
  headers = (Object)#2
    DSEndpoint = (null)
    DSId = "nil"
  messageId = "2F92E6C0-FE92-A09B-B150-9FE2F28D9738"
  operation = "getMemberFromEvent"
  source = "MembereventService"
  timestamp = 0
  timeToLive = 0
Also, following is the error message on Flex when the service fails:
{Fault code=Channel.Call.Failed, Fault string=error, Fault detail=NetConnection.Call.Failed: HTTP: Failed, Destination=MembereventService}
We are using Swiz as the micro-architecture for Flex development and Zend AMF for remoting between Flex and PHP.
Any ideas what is wrong here, what is causing Flex to send different request packets for the same service & what I can do to fix it?

Hi, I know that your post is almost 5 years ago, but have you found the solution to this issue?
Thanks.

Similar Messages

  • Solution Manager prepared for the Remote Service Delivery?

    In preparation of GoingLive Session, we received a mail with some questions. Among them the following:
    Is your Solution Manager prepared for the Remote Service Delivery? Yes/No  
    Is the solution transferred to SAP?: Yes/No  
    What does the first question mean? what should be done to prepare the Solman for session delivery?
    How do I check if the solution is transferred to SAP?
    Thanks a lot,
        Dino

    Hello Dino,
    The SAP Solution Manager is a platform for the delivery of services for the following areas:
    ●     Risk minimization
    ●     Optimization of SAP solutions
    ●     Knowledge transfer
    Services in the SAP Solution Manager are services which help you to monitor and optimize the performance and availibility of your system landscapes and minimize your system operation risks.
    You can have the support services performed by SAP or perform them yourself:
    ●     Remote Services
    SAP experts deliver this service type via a remote connection (SAP Safeguarding Services, e.g. SAP GoingLive Check).
    For checking whether solution manager is prepared for remote service delivery u need to check the following.
    Prerequisites
    You have:
    ●     created a solution.
    ●     set-up a connection to the SAP Service Marketplace (Explorer).
    Procedure
           1.      Choose the transaction SOLUTION_MANAGER.
           2.      Choose Delivery of SAP Services ® Service Plan, in Operations.
           3.      Choose Order Service from SAP.
    You go to the Service Catalog.
           4.      Choose the link to the service.
    The system goes to the catalog entry of the service, in the SAP Service Marketplace.
           5.      Follow the procedure described in the SAP Service Marketplace.
    =============================================
    Solution transfered to SAP means that the u have done the configuration, testing and validation of the SAP system components and then transfered this to the satellite systems connected to Solman. Please note that solman is the central point of access for supporting implementation activities and the satellite systems are SAP systems comnected to solman in the landscape.
    Hope this helps. Please assign points and let me know if u need anything specific.
    Rgds
    Manish

  • I need to do sap sd certification ,training for same is very costly from authorised center and i canot afford ,the other way is i do training from unauthorised center and take certification exam in any country where prerequisite is not doing training

    i need to do sap sd certification ,training for same is very costly from authorised center and i canot afford ,the other way is i do training from unauthorised center and take certification exam in any country where prerequisite is not doing training from authorised center.how good it it to do prepare from unauthorised center and take exam in any country like australia ,US ?please help understand .

    Hi Preeti,
    please first understand the difference between a subject (your header) and its body line, please never write so long subject matter.
    Now coming to your queries , what you thinks being at Australia or US is free of Cost. The first thing is that i don't understand your mission for taking Certifications, Are you a working proffesional because for more than 2 yrs. of working experience, you don't need any training , you can take direct examinations.
    And if you are not a working professional, i don't thing taking any certification will serve any purpose in your job hunt, although it will enrich your Resume only, you will nothing get out of this from just taking a vertification
    So, please tell us that you are a fresher or having real time working exposure in SAP SD module, then any one will guide you well.

  • How to display success message after Remote service call

    Hi ,
    I am currently using Flex form for adding/updating user
    personal details.On submit button click ,i am submitting details to
    server by calling RPC remote service.For calling remote service i
    am using penneframework. On penneframework, Remote service call
    result are populated in RemoteResult object. It dont have any other
    event method for handling result event.For errror handling, i have
    defaultHandler for displaying error message.
    Here i am having two requirements
    1. I should be able to track RPC response, so that i can
    display success message to user along with DB generated ID.
    2. I need to reset all form field after receiving RPC
    response.
    Here my question is
    1.How i can track server response, so that i can display
    success or error message.
    2. Is their any event or coding technique which i can use for
    solving this issue.
    Thanks
    Kumar

    you can do following way :
    quote:
    var token:AsyncToken =
    YourRemoteClass.remoteMethod(param1,param2);
    token.addResponder(new AsyncResponder(
    function(data:Object, token:Object):void {
    // tadaaa response
    function(info:Object, token:Object):void {
    //ooooo , noo, failure
    token

  • PO for item of service Level short and long text using sap script

    Please let me know how to do the PO for item of service Level short and long text using sap script.
    <MOVED BY MODERATOR TO THE CORRECT FORUM>
    Edited by: Alvaro Tejada Galindo on May 5, 2009 10:25 AM

    Hi ,
          In the transaction related to PO select the path goto->header texts and then details of the texts like ID,objectname,language,name.Pass all theses details to 'READ_TEXT '   FM. Then you will get text lines described for a perticular Po ,similarly for item also.
    Thanks,
    Suma.

  • Had my Nikon D600 recently in for the updated service call. Camera works fine but Photoshop says it cannot open my RAW (NEF) files now? It worked fine before and I have done all my updates.

    Had my Nikon D600 recently in for the updated service call. Camera works fine but Photoshop says it cannot open my RAW (NEF) files now? It worked fine before and I have done all my updates.

    The only thing I can think of is if you got a replacement D610 as rumored here:
    http://nikonrumors.com/2014/01/27/nikon-is-replacing-some-d600-cameras-with-new-d610-model s.aspx/
    In that case, you would need the new version of Camera RAW or DNG converter as per Camera Raw plug-in | Supported cameras .
    The other thing to check is if the files open in the Nikon native ViewNX software. If they don't it's time to call the service center.

  • Architecture/design for high volume web service calls from on Demand

    Hi,
    We have hundreds of end users (less than 600 users) that will be initiating web service calls from On Demand that will deal with both querying (stateful transaction) and inserting/updating data (stateless). Currently, we see a limitation on the number of stateless sessions (33) that can initiate web service calls. We are afraid this will lead to poor performance with the number of sessions that are allocated for stateless sessions.
    Can someone provide any design or framework information that can be implemented for high volume web service calls from On Demand? We anticipate 35K+ web service calls that will be initiated from On Demand per hour.
    Thanks.

    Hi,
    We have hundreds of end users (less than 600 users) that will be initiating web service calls from On Demand that will deal with both querying (stateful transaction) and inserting/updating data (stateless). Currently, we see a limitation on the number of stateless sessions (33) that can initiate web service calls. We are afraid this will lead to poor performance with the number of sessions that are allocated for stateless sessions.
    Can someone provide any design or framework information that can be implemented for high volume web service calls from On Demand? We anticipate 35K+ web service calls that will be initiated from On Demand per hour.
    Thanks.

  • Utilizing different exchange rate type for same currency combination

    Hello Gurus,
    I wanted to get your opinion/experience in handling the following scenario.
    We have company codes in different countries operating using different local currencies. There is alternate exchange rate type  EURX defined for Exchange rate type M for many currency combinations due to business requirements. One country with local currency EUR is utilizing EURX SEK - EUR exchange rate combination.
    Other country with local currency HUF is making use of exchange rate type MNB as an alternate exchange rate. In one of its transaction, where VAT is being calculated on its foreign transaction, HUF company is trying to seek rate of MNB SEK- EUR where country currency is SEK and document currency is EUR.
    But since on the 'translation ratios for currency translation' table EURX being the alternate currency for that particular combination, even when we set MNB SEK EUR exchange rate, the system is obviously picks up EURX rate.
    Has anyone come across similar scenario where different countries trying to get different exchange rate types for the same combination of currency? and If so, how would that be possibly handled through config or using something custom?
    Thanks all for your replies in advance.
    Regards,
    Sagar K.

    Hi Sagar,
    In tcode OBBS, if Alt.exchange rate is used for any currency pair, then that rate is used ( EURX in this case).
    All countries in EMU region uses EURX ( which is mostly fixed after introduction of EUR).
    If the company is in different countries in Europe, then mostly EUR is used as Alt. exchange rate. which uses EUR as reference currency.
    Ther is no country specific settings in std. sap for a currency pair.
    Cheers,

  • Output showing up in 2 different rows in Infocube for same Billing Number

    Hi,
    I have a Billing Infocube which gets data from 2 DSO's Billing header DSO & Billing Item DSO seperately.  In Billing header, i have Billing Doc. Number & Shipping condition.  In Billing item, i have Billing Doc. Number & Billing Quantity.  In the report that i created on this Infocube, i have a column, where i restrict the Billing quantity based on Shipping condition.  When i execute the report, this particular column is coming up totally blank.  To verify at the backend, I checked the 2 DSO's seperately taking one common Billing document number, i get data in both DSO's.
    When i check the Infocube for this 3 Infoobjects, I see the output in 2 seperate rows, one row with Billing document number & shipping condition values and another row with the same Billing document number & Billing quantity.  I think because of this only, in report also, the column is coming blank.  Why is the output not getting displayed in one single row in Infocube?  How do i make this to work?
    Regards,
    Murali

    Hi Murali,
    That will not cause the issue the reason being, in your FACT table for document number now SID values will be populated (due to line item dimension) and it will be unique for each document.
    But if you look at the cube design then for each of your other dimension a unique DIMID will be created in DIM table for unique combination of all the underlying attribute values.
    for e.g. say you have following cube design,
    Document number,     attr1,   attr2, attr3, attr4    Key1.
    Now your attr1 and 2 are getting loaded from one flow and they belong to same dimension, and your attr3 and attr4 are getting loaded from another flow and they belong to another dimension. The data will be created in the cube as follows,
    Document number    DIM1   DIM2   key1
       100                          10       0        100
        100                          0        10      may be 0 to avoide data duplication.
    If you see the DIMID values in fact table they are different due to different data load from two separate data flow. And that is the reason you might have multiple rows in cube for same document number.
    Regards,
    Durgesh.

  • Ink usage for same colors but sent from different workspaces

    Let's say I print green (0,255,0) from Adobe RGB with a printer profile. Then I convert it to ProPhoto RGB (same green is now 76,230,60 in ProPhoto) and print it with the same printer profile. Do inkjet printers use the same ink combination for printing same green but sent from different workspaces?

    Ok, it's obvious, forget about it.
    Another question: Can we know that RGB printer profiles use which RGB color space for converting from the workspace?

  • Different Payment advice config for same company code but diff Payment metd

    Hi Guys,
    Payment advice form is configured in FBZP in the PAYING COMPANY CODES and it is company code level, But I need to use different forms for different payment methods in the same company code, Whether is this possible in the config level or whether  any BTE or BADI or User-exit exisist??
    regards,
    Prabhu

    Hi Radhika,
    We have to config a payment methd for a Check and in the path u mentioned we have Check form already,
    And we need to config the Payment advice for this check.
    So in FBZP - "Paying Company codes"  we have configured the Payment advice form which works fine.
    Requirement is we need a different Payment advices for this payment methd and this company code has several other Payment methd.
    I hope this can be done by modifying the Payment medium program.
    regards,
    Prabhu

  • EventListeners for multiple remote object calls

    Hi all,
    I have a Flex component that is displaying content from multiple (specifically two) remote object calls. I can call both remote methods, get the results back, pass them off to their respective ItemRenderers, etc. with no trouble. What I need, though, is a way to determine if I get no results back from either function call, to dispatch an event to trigger the next view state, and I don't know how to do that. Something like:
    protected function ticketConfigurationStateChangeHandler(event:Event):void
                   if(getPackagePromptsResult.lastResult.length == 0 && getTicketPromptsResult.lastResult.length == 0)
                         this.dispatchEvent(new Event("ticketConfigurationStateChange"));
                protected function ticketPrompts_creationCompleteHandler(event:FlexEvent):void
                    getTicketPromptsResult.token = registrationAPI.getTicketPrompts();
                    getTicketPromptsResult.addEventListener(ResultEvent.RESULT, showTicketConfiguration);
                protected function packagePrompts_creationCompleteHandler(event:FlexEvent):void
                    getPackagePromptsResult.token = registrationAPI.getPackageCPrompts();
                    getPackagePromptsResult.addEventListener(ResultEvent.RESULT, showPackageConfiguration);
    Any suggestions would be greatly appreciated...I know I need the event listeners to be able to get lastResult.length (and have it not be null) but I don't know how to set them up so I can automatically pass the user through the component and onto the next one if there are no results returned without having the user click a button or something similar on an otherwise blank component.
    Thanks in advance!
    ~ Amanda

    Hi all,
    I have a Flex component that is displaying content from multiple (specifically two) remote object calls. I can call both remote methods, get the results back, pass them off to their respective ItemRenderers, etc. with no trouble. What I need, though, is a way to determine if I get no results back from either function call, to dispatch an event to trigger the next view state, and I don't know how to do that. Something like:
    protected function ticketConfigurationStateChangeHandler(event:Event):void
                   if(getPackagePromptsResult.lastResult.length == 0 && getTicketPromptsResult.lastResult.length == 0)
                         this.dispatchEvent(new Event("ticketConfigurationStateChange"));
                protected function ticketPrompts_creationCompleteHandler(event:FlexEvent):void
                    getTicketPromptsResult.token = registrationAPI.getTicketPrompts();
                    getTicketPromptsResult.addEventListener(ResultEvent.RESULT, showTicketConfiguration);
                protected function packagePrompts_creationCompleteHandler(event:FlexEvent):void
                    getPackagePromptsResult.token = registrationAPI.getPackageCPrompts();
                    getPackagePromptsResult.addEventListener(ResultEvent.RESULT, showPackageConfiguration);
    Any suggestions would be greatly appreciated...I know I need the event listeners to be able to get lastResult.length (and have it not be null) but I don't know how to set them up so I can automatically pass the user through the component and onto the next one if there are no results returned without having the user click a button or something similar on an otherwise blank component.
    Thanks in advance!
    ~ Amanda

  • Using Web Dynpro authentication for a Web Service call

    Hi all,
    I want to develop a Web Dynpro that calls a Web Service running on the same Web AS (7.0). The Web Dynpro will be integrated in a Portal. The web service that has to be called is automatically generated when we create a guided procedure :
    http://help.sap.com/saphelp_nw2004s/helpdata/en/44/44c59fd7c72e84e10000000a155369/frameset.htm
    In my Web Dynpro, I imported the WSDL of this WS and created a model.
    The first time I tried to call the WS in my Web Dynpro I got an authentication error :
    Service call exception; nested exception is: com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (401) Unauthorized. The requested URL was:"http://<myHostName>:50100/GPRuntimeFacadeWS/GPProcessExposing?style=document&pid=CA544E9B629A11DB91480017A48D672A&pver=0.5"
    So I hard-coded an HTTP authentication :
         model._setUser("myWASuser");
         model._setPassword("myPassword");
    And the Web Service call now works.
    Now the next step is that the WS call is made by the user that runs the Web Dynpro. So I found this documentation :
    http://help.sap.com/saphelp_nw04/helpdata/en/59/e8e95d1eba48dfa86ae91ad8816f5d/frameset.htm
    It would resolve my authentication problem, AND the transport issue : at the moment the Web Service URL is stored in the Logical Port of the WD model, and at transport time, a rebuild of the WD project will be needed.
    So I applied what is said in the doc : from the point of view of the Web Service consumer, I just had to add :
        model._setHTTPDestinationName("STARTGP");
    (where STARTGP is the name of the destination I created in the Visual Administrator with a "Logon Ticket" authentication.)
    before the execute(), and I removed my hardcoded authentication.
    Unfortunately, nothing changes... I still get a 401 authentication error.
    Does anyone have an idea about this ? Or maybe a workaround ?
    Thanks in advance for any suggestion.
    Regards,
    Julien

    Hello Julien,
    I have a scenario similar to yours. A client webdynpro application accessing a EJB methods exposed as web service. Those EJB's methods calls R3 RFC's. The client requirements' was to allow SSO through all the layers (Webdynpro -> EJB WS -> RFC). The Webdynpro and EJB's are deployed on the same WAS.
    Solution:
    1 - Create a RFC Destination on Visual Administration provide the R3 connection parameters and set the Authentication for "Current User (Logon Ticket)". Save your Destination;
    2 - In your EJB Project open your Web Service Configuration, on the Security page, set:
        Authentication Mechanism: HTTP Authentication
        Basic (username/password)
        Use SAP Logon Ticket
    3 - In your EJB, implement the following code to create JCO Client for the RFC invocations:
    Object obj = ctx.lookup(DestinationService.JNDI_KEY);
        DestinationService dstService = (DestinationService) obj;
        RFCDestination dst = (RFCDestination) dstService.getDestination("RFC", "<YOUR_RFC_DESTINATION_NAME>");
        Properties jcoProperties = dst.getJCoProperties();
        JCO.Client jcoClient = JCO.createClient(jcoProperties);
    4 - In your EAR Project, open your "application-j2ee-engine.xml" and add the References:
         "tc/sec/destinations/service" as Service
         "tc/sec/destinations/interface" as Interface.
    5 - Create your EAR File and Deploy;
    6 - Check if the web service now requires Authentication: go to http://<host>:<port>/index.html and click on Web Services Navigator. Test your Web Service. Your Web Service should requiere you to log in before execute the test;
    7 - Go back to your Visual Administrator and create a HTTP Destination. Provide your WS URL (should be something like "http://<host>:<port>/<WS_NAME>/Config1?style=document"). Choose Authentication: Logon Ticket. Save your Destination;
    8 - Go to your webdynpro project, import your WS Model. (If you have already created it, you have to delete it and import it again, refer to this blog on how to reimport WS Models: /people/bertram.ganz/blog/2005/10/10/how-to-reimport-web-service-models-in-web-dynpro-for-java  How To Reimport Web Service Models in Web Dynpro for Java );
    9 - Open your model's Logical Ports node, go to the Security tab, and choose "Use SAP Logon Ticket";
    10 - In your webdynpro code, before you call the ws invocation (should be something like that: <YOUR_NODE_DEFINITION>.modelObject().execute();), include the following line:
    <YOUR_NODE_DEFINITION>.modelObject()._setHTTPDestinationName("<YOUR_HTTP_DESTINATION_NAME>");
    11 - Save All Metadata and deploy your Webdynpro App. Test your results.
    I hope it helps you, as the documentation on how to implement this scenario is scattered through the SDN and all the SAP help portal.
    Best regards,
    Paulo.

  • Adobe AIR 2.6 - memory leak when waiting on remote service call!

    Our AIR app has a function to export data from a DataGrid to Excel, which calls out to our J2EE server to build the excel file, and is then returned to the client as a byteArray which can then be saved on the client machine. We have noticed that for large data sets over a few thousand rows, while the client is waiting for the server to return from the remote object service call, memory utilisation steadily increases and can reach 1GB. The bizarre thing is that this increase is noticed for the adl.exe memory utilisation as reported in Windows Task Manager, whereas when we use the Flashbuilder memory profiler to monitor the same process we see no increase in memory utilisation. Given that while the client is waiting on the server to return from this call the client isn't doing anything else, we are baffled as to why memory should be eaten up by the AIR runtime.  Can anyone explain what is going on, and what steps we can take to stop this from occurring?
    Many thanks,
    Murray

    Any chance you can check that out with the latest AIR?
    Either way, it sounds like a bug, please report it at http://bugbase.adobe.com/ and then report the bug number here. 
    If you're able to provide a reproducable case that would really increase the chance that we can do something about it.
    Thanks,
    roymeo

  • Is it possible to do Continuous deployment for azure cloud services(website,web and worker roles) using VSO Release management?

    Hi,
    I am trying to do continuous deployment using visual studio online and release management for Azure cloud services. But not able to find the way to do it(with the help of different blogs, those are describing using VM only).
    I tried using Release management visual studio extension also. But no Luck.
    Please help me if it is possible to do continuous deployment using release management.
    Thanks,
    Phani

    Hi,
     Please refer to the following Forum Thread with similar question which has been answered. Let us know if this helps.
     https://social.msdn.microsoft.com/Forums/en-US/9d8322f6-36e5-4cca-a982-d420d34d2072/realease-management-deployment-to-azure-websites-webworker-roles?forum=tfsbuild
    Regards,
    Nithin Rathnakar

Maybe you are looking for

  • This feature is disabled because it is not compatible with RTF???????

    Anybody, have this error. I don't why this is occurring. Everytime I try to paste a table inside another one (nesting) I get this error saying I can't. The two fixes: 1. was to save the file as WORD 97-2002 RTF (*.doc) paste the nested table, save it

  • TM 8.0

    dear all, i need to know  how to install TM 8.0  and is it web based or not and how it works?

  • Update Error on Illustrator

    For a long time after an adobe update, when I opened Illustrator again, I recieved two error messges, one when the Illustrator title screen is shown while the other is when my file opens up. Here are the two: After checking the update status, I reali

  • Download/Upload and Properties not working with Netstorage

    I had applied some authorized updates to a SLES 11, SP2, (OES 11.1, PATCHLEVEL=1) running eDirectory 8.8 SP7, server and rebooted a week ago. I didn't notice anything wrong initially and thus was living in stupid comfort! :O I was able to get to the

  • MSS - TMW viewing employees

    Hi, We have the following issue: We have 2 org units A and B, reporting to 2 chief positions: Org unit A reports to chief position X and Y (corresponding priority on IT 1001) org Unit B reports to chief postion Y and X  (corresponding priority on IT