You can get the requested operation of SOAP ResultEvent?

First of all, sorry if this is posted in the wrong place, I was not sure where can I ask for really.

Basically I have a WebService object that I call many different operations, but each one is managed by the same function, onResult(event:ResultEvent)

Is there a nice/recommended way to get the operation that have been requested in this event? So, for example, I could make switch (event.operation)

Currently, I do this by e.token.message.getSOAPAction () and he works on operations there, but this seems quite a hacky solution, that's why I was wondering if there was a way recommended to do?

Thank you
Jason

You can move the result handler of the web service to each operation and
Create different managers:





Or, you can make use of the completed asynchronous Token (ACT) model and
Decorate the AsyncToken that is returned when you call the operation:

Import mx.rpc.AsyncToken;

...

var token: AsyncToken = ws.getSomething ();
token.myOperation = "getSomething";

...

private void getSomethingResult(event:ResultEvent):void
{
If (event.token.myOperation is "getSomething")
{

}
on the other
...
}

Or, if you need speakers level invocation, even for the same operation,
You can add a responder to the token itself...

Import mx.rpc.AsyncToken;
Import mx.rpc.IResponder;
Import mx.rpc.Responder;
...

var token: AsyncToken = ws.getSomething ();
var responder: IResponder = new responder (handleSpecialResult, handleSpecialFault);
token.addResponder ();

private void handleSpecialFault(event:FaultEvent):void
{
...
}

private void handleSpecialResult(event:ResultEvent):void
{
You can also prevent the default operating at the level or level of service
managers receive this event
Event.preventDefault ();
...
}

Hello lagunajc,

> First of all, sorry if this is posted in the wrong place, I was not
> quite sure where can I ask for really.
>
> Basically I have an object, WebService, I called several different
> operations on, but each one is managed by the same function.
> onResult(event:ResultEvent)
>
> Is it possible to get the operation that was nice/recommended
> asked this event? So, for example, I could do
> switch (event.operation)
>
> Currently, I do this by e.token.message.getSOAPAction () and
> He works out of exploitation here, but this seems quite a hacky
> solution, that's why I was wondering if there was a recommended way
> to do?
>
> Thank you
> Jason

Tags: Flex

Similar Questions

  • During the installation of software, get "the requested operation requires a rise."

    In preparing for the installation of new software CD, I clicked on 'Install now' and received the following error message: "the elevation of requies requested operation.  I never saw it before and have no idea what it means.  Everyone?

    Right-click on the setup.exe > run as admin.

    http://www.mydigitallife.info/2007/02/17/how-to-open-elevated-command-prompt-with-administrator-privileges-in-Windows-Vista/

    And read the information above about this.

    See you soon.

    Mick Murphy - Microsoft partner

  • You can get the roles, but you can get the user's role

    You can display or hide items dependant on the roles of the logged in user is affected too.

    I know you can do this for the menu using menu.json

    'visible': true,

    'applyIf': {}

    'userHasRoles': ['administrators']

    But what about other elements inside the app. Is there a way to get the roles for the logged-on user.

    Is this lack as a feature or am I missing some pieces.

    Hey,.

    Not at the moment.

    Talked to the BC guys on this subject with some stuff from varius, they understand the need. Don't know when things will be implemented for us, they're looking to Admin tags or API options etc. for this and a few other bits.

  • What happened to make a zoom in and zoom out selection, so you can get the screen to zoom in and out?

    I added zoom and zoom to my toolbar yahoo and one of the sites that allow you to choose buttons to add to your toolbar, and now he's disappeared. And I can't find zoom anywhere. Have you heard of this happening before? If so do you have a resolution for this? Thanks in advance. Dan

    Note that there are keyboard shortcuts for this, which is faster than the GUI of the keys.

    • To make things bigger, press Ctrl and + at the same time.
    • To make things smaller, press Ctrl and - at the same time.
    • Pour reinitialiser to reset the size of return to normal, press Ctrl and 0 at the same time.
  • You can get the microphone to play through the speakers in vista ultimate x 64

    can I get an external microphone to play through the speakers with vista ultimate X 64

    Try the steps in the article below

    http://www.ehow.com/how_7286168_play-microphone-through-PC-speakers.html

  • You can get the older application versions if you buy on the monthly plan?

    Looks like it was possible in 2014, is this always the case on 2015?

    Short answer: Yes.

  • How to get the requested catalog of the same element status request workflow vRO 7 periodically?

    Hi all

    I design a WF in vRO7.

    I asked for a catalog item in the WF (to perform a pre-defined a BP published) in vRA 7.0.

    Here is the sample code snippet. Here the element is of type VCACCAFE:Catalogitem

    //********************************************

    var form = vCACCAFERequestsHelper.getRequestFormForCatalogItem (item);

    var request = vCACCAFERequestsHelper.requestCatalogItem (item, form);

    //******************************************

    I am able to process this request successfully. But now, I would like to check the status of this application periodically depending on the State of the application, I want to update a field in VRO and same WF.

    Now my question is, how can I recover the status of the catalog item query after periodically (say 5 minutes interval)?

    Can I use the method below, but thing is that how can I get the same request after 5 minutes?

    request.getExecutionStatus () .value ();

    Can you please help me out is it possible to get the details of the application even with the id of the request after 5 / x minutes?

    Thank you

    Miloud

    Hello

    You can do the following

    Mark your vRO like this query objects after the presentation

    Server.setCustomProperty(request, "CHECK_LATER", "1");
    

    Then place this code in a separate workflow on a calendar for every 5 minutes

    var watchedRequests = Server.getObjectsWithCustomPropertyKey("CHECK_LATER");
    
    for each(var request in watchedRequests)
    {
         // you can access the request submission content here
         var lMap = request.getRequestData();
         // the map is a vCACCAFELiteralMap but it has all VM property and CustomProperty values in it
         //e.g.
         var hostname = lMap.get("provider-Hostname").value;
    
         // assess request state and take appropriate actions here
    
         // remove the tag to avoid duplicate notifications
         // ONLY do for requests in a terminal state though!
         if(!inProgress)
         {
              Server.removeCustomProperty(request, "CHECK_LATER");
         }
    }
    

    Hope this helps

  • You can change the background color vi with a property node?

    I was wondering if it was possible in Labview to use a property node to change the background color of façade for an iteration, then back to an original color later. I don't think it's possible, but I would like to know for sure.

    Thank you

    Jody

    You can get the property pane directly node by right-clicking the scroll bar on the front panel and create-> property Node-> color pane.  Useful with multiple panes.  You can also click the property pane node in example of (imstuck) and choose link and then select the pane.

  • You can remove the audio of a FLV video output?

    If you can, how would we go to this topic? I want a button to press, leading to a different scene that begins with a clip, but I can't have audio cutting in the sense too quickly. Is it possible to use the code to fade audio FLV / output?

    addEventListener (type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void

    the 3rd param is the parameter uscapture.  events (during the capture phase) travel from the top of the screen (the scene) down to the interactive objects in the foreground and continue down to their descendants. then they start to "bubbles" upward.

    default event listeners capture events during the phase of propagation so a descendant object will have its listener triggered before a parent.  But if you activate the capture parameter, you can get the parent to listener to trigger in front of a child.

    the 4th parameter is the priority setting and it allows you to control the order that listeners are trigger for the same interactive object with the same type of earphone.

    and the 5th parameter determines whether the listener is low (i.e., the object can be gc would be while the listener is still active).  This param is buggy is my experience and ensure an object is finally going to get gc would you need to use weak references and explicitly remove the listener.  but the behavior depends on the version of flash player and I have not tested in several versions, so maybe that it works correctly now.

    (p.s when you use the adobe forums, check useful/correct, if there is.)

  • You can test the volume who is currnetly selected?

    I want to know if the file I selected in bridge can be identified as the selected folder?

    As if(00318-000.selected==true) {(//then do something) something of this nature.} I can test if a volume

    var myMacHotFolder=(Folder(["/Volumes/Hotfolders/OdystarHotfolder/eDesign"]).exists);
    

    What I want to know is can be identified as being retained in the bridge? Then, I want to get the name of it.

    You can get the current folder with: -.

    alert(app.document.presentationPath);
    
  • How the proxy service can get the client certificate in Oracle Service Bus

    Hello everyone, now I'm confused in how can get service proxy client certificate in Oracle Service Bus. I have configured bidirectional SSL in Weblogic, the client sends its cerficate to Weblogic and Weblogic checks this cerficate if have access permissions Weblogic, but my proxy service cannot obtain this certificate to do more work, who can help me?
    And my proxy service service type is the messaging service.

    Thank you!!!
    Sea

    Hi, if you have configured for client certificate authentication, weblogic maps an attribute in the DN of the client certificate to a user of weblogic security realm. The attribute is controlled by the default configuration to map the user in the default identity asserter in the WLS Console--> security--> kingdoms--> suppliers--> default identity Asserter. Generally, the CN attribute is selected for this purpose. You must also create a user in the security field, with the value of this attribute in the client certificate for authentication to succeed. Once the authentication is successful, the user is used as the authenticated user. So if you want to set permissions for authorization on the proxy, you can do it based on this user. For this you need not the certificate of the client. In the pipeline of message, I guess you can get the authenticated user of $inbound, which in turn corresponds to an attribute in the DN of the client certificate.

  • When you try to add a network route with the "route add" command in the command line, I get the message "the requested operation requires a rise."

    Elevation required to route add command

    When you try to add a network route with the "route add" command in the command line, I get the message "the requested operation requires a rise."  What is the correct syntax to use?

    You can watch using the PowerShell...

    http://TechNet.Microsoft.com/en-us/library/bb978526.aspx

    http://TechNet.Microsoft.com/en-us/scriptcenter/dd742419.aspx

    .. .and post questions about Windows PowerShell forum...

    http://social.technet.Microsoft.com/forums/en/winserverpowershell/threads

  • SFC/scannow stuck at 70 percent and I get the message "Windows Resource Protection could not perform the requested operation".

    Original title: whenever I run SFC/scannow I get to 70 percent and I get the message "Windows Resource Protection could not perform the requested operation". How can I fix this problem and complete the scan?

    Please answer with repair options and details on where to go to get there.

    If safe mode can't complete, it can be continuous malware (run malwarebytes) so clean, you will probably have to run a repair installation.

    Please download the free version of Malwarebytes.
    Update immediately.
    Do a full scan of the system
    Let us know the results at the end.

    http://www.Malwarebytes.org/products

  • "The requested operation requires a rise." How do I get there?

    I am connected to a Vaio under Vista Business SP2; I have administrator privileges.  The Vaio has wireless to work for my Internet gateway, but he is unable to make a reference to primary DNS my ISP.

    All the things that I tried to fix this have doomed to failure, because "the requested operation requires a rise."  As I'm already logged as an administrator (using the user account only on the machine), what can I do?

    To run high, you right click on the program, you are from (for example, the line command) and click on "run as Administrator".

  • Try to download Office 2003 on the new laptop running Windows 7. Get this, "the requested operation requires elevattion."

    I just new laptop to replace the old office.  It works with Windows 7 Premiure.  I am trying to download Office 2003 Pro but get this after I put in the code p/n.

    Line 12

    Code 800702E4

    The requested operation requires a rise.

    Thank you for your help.

    Did you first uninstalled any Office pre-installed trial version?

    You are installing from a cd or the installation of Office 2003 file? (A commercial version?)

    You are connected to the user win std account or did you create a guest account?

    If you are connected to the account admin win, rt click on the installation file and run it as admin

Maybe you are looking for