Translate HTTPService request to the plain URI

I'm using following AS code in Flex to get a person's profile:
var httpService:HTTPService = new HTTPService();
httpService.url="http://xyz.com/php/profile.php";
httpService.useProxy=false;
httpService.method="POST";
httpService.resultFormat="e4x";
httpService.addEventListener("result", httpResult);
httpService.addEventListener("fault", httpFault);
var code:Object = new Object();
code.action="getProfile";              
code.first_name="John";
code.last_name="Smith";
var ret:AsyncToken = httpService.send(code);
How do I translate the above code into plain HTTP request as you type in a browser's address bar?
I tried the following:
http://xyz.com/php/profile.php?action=getProfile&first_name=John&last_name=Smith
get nothing back. I know I'm using "GET" method in the browser's address bar.

I'm using following AS code in Flex to get a person's profile:
var httpService:HTTPService = new HTTPService();
httpService.url="http://xyz.com/php/profile.php";
httpService.useProxy=false;
httpService.method="POST";
httpService.resultFormat="e4x";
httpService.addEventListener("result", httpResult);
httpService.addEventListener("fault", httpFault);
var code:Object = new Object();
code.action="getProfile";              
code.first_name="John";
code.last_name="Smith";
var ret:AsyncToken = httpService.send(code);
How do I translate the above code into plain HTTP request as you type in a browser's address bar?
I tried the following:
http://xyz.com/php/profile.php?action=getProfile&first_name=John&last_name=Smith
get nothing back. I know I'm using "GET" method in the browser's address bar.

Similar Messages

  • Status of the httpservice request?

    Im using httpservice to get XML from a live URL of a web service I run.... works great and Im just trying to make it a little more elegant and presentable... is there a way for me to have an animated busy indicator on the stage and have it sit on top (using depth control) of my list that populates with the XMl data... then based on the status of the httpservice request, toggle the depth so that when the xml has finished loading, the busy indicator drops beneath the list object (using a lower number for the depth).
    or maybe its better to have the list alpha change and just leave the busy indicator below the list -- either way -- Im trying to figure out how to use some type of listener routine (presuming thats how I'd do it) to get the status and check for some type of completion.
    heres the code Im using in FB 4.6 ...  if its a mess, please be kind... Im just beginning to dabble with FB (and having a real blast so far).
    <?xml version="1.0" encoding="utf-8"?>
    <s:View xmlns:fx="http://ns.adobe.com/mxml/2009"
                        xmlns:s="library://ns.adobe.com/flex/spark"
                        creationComplete="init(event)" splashScreenImage="@Embed('logo.png')"
                        title="Events Listing Demo">
    <fx:Script>
                        <![CDATA[
                                  import mx.events.FlexEvent;
                            import spark.events.IndexChangeEvent;
                                  protected function init(event:FlexEvent):void
                                            lfXML.send();
                                  protected function list1_changeHandler(event:IndexChangeEvent):void
                                            navigator.pushView(Detail, event.target.selectedItem);
                                  protected function btnreload_clickHandler(event:MouseEvent):void
                                            navigator.pushView(HomeView);
                        ]]>
    </fx:Script>
    <fx:Declarations>
      <s:HTTPService id="lfXML" url="URL TO MY XML SERVICE HERE"/>
    </fx:Declarations>
              <s:List id="list1" y="191" left="10" width="460" height="407" change="list1_changeHandler(event)"
                                  contentBackgroundAlpha="90"
                                  dataProvider="{lfXML.lastResult.Events.EventListing}" depth="6"
                                  labelField="EventTitle">
    </s:List>
              <s:BusyIndicator id="indicator1" y="280" width="180" height="165" depth="5" horizontalCenter="0" />
              <s:Button id="btnreload" x="109" label="Reload Events Data" click="btnreload_clickHandler(event)"
                                    verticalCenter="301"/>
    <s:Image x="10" y="2" width="460" height="173" source="@Embed('views/logo.jpg')"/>
    </s:View>

    After making a call, HTTPService fires a FaultEvent (if there was a failure) or ResultEvent (if there was a success).
    Therefore, all you need to do is to display the busy indicator after any .send() and hide it again in response to any FaultEvent or ResultEvent.
    EG: You could do this using states like this.
    [code]
    <fx:Script>
    <![CDATA[
    import mx.events.FlexEvent;
    import mx.rpc.events.FaultEvent;
    import mx.rpc.events.ResultEvent;
    protected function init(event:FlexEvent):void
    lfXML.send();
    currentState = "loading";
    protected function lfXML_faultHandler(event:FaultEvent):void
    // TODO Auto-generated method stub
    currentState = "ready";
    protected function lfXML_resultHandler(event:ResultEvent):void
    // TODO Auto-generated method stub
    currentState = "ready";
    ]]>
    </fx:Script>
    <s:states>
    <s:State name="ready" />
    <s:State name="loading" />
    </s:states>
    <fx:Declarations>
    <!-- Place non-visual elements (e.g., services, value objects) here -->
    <s:HTTPService id="lfXML"
    fault="lfXML_faultHandler(event)"
    result="lfXML_resultHandler(event)"
    />
    </fx:Declarations>
    <s:List id="list1" y="191" left="10" width="460" height="407" change="list1_changeHandler(event)"
    contentBackgroundAlpha="90"
    dataProvider="{lfXML.lastResult.Events.EventListing}" depth="6"
    labelField="EventTitle">
    </s:List>
    <s:BusyIndicator id="indicator1" y="280" width="180" height="165" depth="5" horizontalCenter="0"
    includeIn="loading"
    />
    <s:Button id="btnreload" x="109" label="Reload Events Data" click="btnreload_clickHandler(event)"
    verticalCenter="301"/>
    <s:Image x="10" y="2" width="460" height="173" source="@Embed('views/logo.jpg')"/>
    [/code]

  • Multipe Flex Apps Multiple HttpService request fails

    I have multiple flex apps on the same page.  Both make calls to different httpservices on creation complete.  90% of the time one will fails with the useless generic 2032 error.
    The one request that fails never makes it to the webserver accroding to the logs.  In firebug is says the connection was closed - maybe the browser is closing it?  I have verified that the service url is not cached.  Is this is a known limitation with how flex is making httpservice request behind the scenes that it cant handle multiple apps on the same page??
    Anybody have this issue and know of a workaround?

    I have multiple flex apps on the same page.  Both make calls to different httpservices on creation complete.  90% of the time one will fails with the useless generic 2032 error.
    The one request that fails never makes it to the webserver accroding to the logs.  In firebug is says the connection was closed - maybe the browser is closing it?  I have verified that the service url is not cached.  Is this is a known limitation with how flex is making httpservice request behind the scenes that it cant handle multiple apps on the same page??
    Anybody have this issue and know of a workaround?

  • [svn] 949: Bug: BLZ-96 - When sending a HttpService request from ActionScript with multiple headers with the same name , it causes a ClassCastException in the server

    Revision: 949
    Author: [email protected]
    Date: 2008-03-27 07:12:59 -0700 (Thu, 27 Mar 2008)
    Log Message:
    Bug: BLZ-96 - When sending a HttpService request from ActionScript with multiple headers with the same name, it causes a ClassCastException in the server
    QA: Yes - try again with legacy-collection true and false.
    Doc: No
    Checkintests: Pass
    Details: Another try in fixing this bug. When legacy-collection is false, Actionscript Array on the client becomes Java Array on the server and my fix yesterday assumed this case. However, when legacy-collection is true, Actionscript Array becomes Java ArrayList on the server. So added code to handle this case.
    Ticket Links:
    http://bugs.adobe.com/jira/browse/BLZ-96
    Modified Paths:
    blazeds/branches/3.0.x/modules/proxy/src/java/flex/messaging/services/http/proxy/RequestF ilter.java

    Hi all!
    Just to post the solution to this if anyone ever runs accross this thread...
    For some reason i had it bad the first time, don't have time right now to see why but here is what worked for me:
    HashMap primaryFile = new HashMap();
    primaryFile.put("fileContent", bFile);
    primaryFile.put("fileName", uploadedFile.getFilename());
    operationBinding.getParamsMap().put("primaryFile", primaryFile);
    HashMap customDocMetadata = new HashMap();
    HashMap [] properties = new HashMap[1];
    HashMap customMetadataPropertyRoom = new HashMap();
    customMetadataPropertyRoom.put("name", "xRoom");
    customMetadataPropertyRoom.put("value", "SOME ROOM");
    properties[0] = customMetadataPropertyRoom;
    customDocMetadata.put("property", properties);
    operationBinding.getParamsMap().put("CustomDocMetaData", customDocMetadata);
    Basically an unbounded wsdl type is an array of objects (HashMaps), makes sense, i thought i had it like this before, must have messed up somewhere...
    Good luck all!

  • [svn] 931: Bug: BLZ-96 - When sending a HttpService request from ActionScript with multiple headers with the same name , it causes a ClassCastException in the server

    Revision: 931
    Author: [email protected]
    Date: 2008-03-26 11:31:01 -0700 (Wed, 26 Mar 2008)
    Log Message:
    Bug: BLZ-96 - When sending a HttpService request from ActionScript with multiple headers with the same name, it causes a ClassCastException in the server
    QA: Yes - we need automated tests for this basic case.
    Doc: No
    Checkintests: Pass
    Details: RequestFilter was not handling multiple headers with the same name properly.
    Ticket Links:
    http://bugs.adobe.com/jira/browse/BLZ-96
    Modified Paths:
    blazeds/branches/3.0.x/modules/proxy/src/java/flex/messaging/services/http/proxy/RequestF ilter.java

    Hi all!
    Just to post the solution to this if anyone ever runs accross this thread...
    For some reason i had it bad the first time, don't have time right now to see why but here is what worked for me:
    HashMap primaryFile = new HashMap();
    primaryFile.put("fileContent", bFile);
    primaryFile.put("fileName", uploadedFile.getFilename());
    operationBinding.getParamsMap().put("primaryFile", primaryFile);
    HashMap customDocMetadata = new HashMap();
    HashMap [] properties = new HashMap[1];
    HashMap customMetadataPropertyRoom = new HashMap();
    customMetadataPropertyRoom.put("name", "xRoom");
    customMetadataPropertyRoom.put("value", "SOME ROOM");
    properties[0] = customMetadataPropertyRoom;
    customDocMetadata.put("property", properties);
    operationBinding.getParamsMap().put("CustomDocMetaData", customDocMetadata);
    Basically an unbounded wsdl type is an array of objects (HashMaps), makes sense, i thought i had it like this before, must have messed up somewhere...
    Good luck all!

  • TranslateApiException: Cannot find an active Azure Market Place Translator Subscription associated with the request credentials.

    Hi,
    I am developing .net application, I have found an issue : TranslateApiException: Cannot find an active Azure Market Place Translator Subscription associated with the request credentials. : ID=1250.V2_Soap.Translate.14B2EC51
    Recently signed up, sometimes it translated, most of the times i am having this exception
    And cannot able to translate the large amount of characters, exception raised as : 403 Entity is too large
    I set an maximum buffer length 2,147,483,647 too in web configuration
    Thanks in advance

    Hello Charulatha Suryakumar,
    You can verify that you are subscribed to the Translator API, by going to your
    My Data page on Windows Azure Marketplace.  It may be that you have reached the maximum monthly volume limit and need to upgrade your subscription level.
    Try shortening your requests.  Currently, you can translate a maximum of 10000 characters. We recommend keeping each request between 2000 and 5000 characters to optimize response times.  There is not a limit to the number of requests per minute.
    Hope this helps. Thank you.
    Microsoft Translator team - www.microsoft.com/Translator

  • Tree Doesnt populate the whole data with HTTPService request

    Hi,
    I am working with the tree control which populates the tree
    with the HTTPService request.
    Step1. Make a HTTPService Request and fetch the top level
    entries.
    Step2. When ever the user opens an treeItem by clicking on
    the Triangular icon besides the tree item
    Make a HTTPService, fetch the data, on the callback method
    append the Datasource with the new data for the item to open.
    problem is the tree branch gets populated with partial data
    instead of the full data where as the DataSource has the full data.
    Step3. when ever the user clicks on the item
    Make a HTTPService, fetch the data, on the callback method
    append the Datasource with the new data for the item to open.
    Now the tree item gets populated with the correct data.
    tried every thing to refresh the tree....

    private function refreshTree():void{
    tree.expandItem(rootNode, false);
    tree.expandItem(rootNode, true);
    this helped

  • JRE 1.7 / Java Plug-in - Long delay in retrieving the applet File(JAR) due to a request to the Domain Controller(on port 53)

    Description:
    A specific group of users/customers (using Windows7 OS with IE and FireFox web browsers) are facing problems with retrieving the applet File, after they upgraded the JRE on the system(PC) to JRE 1.7.0_25-b17 from JRE version 1.6.0_29-b11.
    With JRE 1.7.0_25-b17 it is noticed that when the Java plugin requests for the applet File; it sends a request to the Domain Controller of the user, which causes a delay of 2 to 5 minutes and sometimes hangs. The problem occurs consistently.
    The current temporary workaround for this group of users is to use JRE version 1.6.0_29-b11.
    Problem analysis:
    To investigate the problem the below steps were executed:
    1) Collected the Java console outputbelow details from the user's system. (The complete output is not posted due to lengthy content, though can be added further to this post if required.)
    (a) Works fine with JRE version 1.6.0_29-b11. Kindly refer to Java console output in the code ‘section A’ towards the end of this post.
    (b) The problem occurs with problem with JRE version 1.7.0_25-b17. Kindly refer to Java console output in the code ‘section B’ towards the end of this post. The step where the problem is observed, is indicated as(##<comment>##).
    2) The network settings in the user's browser was checked. Internet Options > Connections > LAN setting
    The configured option is 'Use automatic configuration script' and the value is http://www.userAppX.com/proxy.pac
    This configuration remains the same irrespective of the JRE version in use.
    3) The network settings in the Java Control Panel was checked.
    The used/selected option is "Use browser settings", although values for 'Use proxy server' and 'use automatic proxy configuration script' are filled-in as 'user-proxy.com' and 'http://www.userAppX.com/proxy.pac' respectively.
    This configuration remains the same irrespective of the JRE version in use.
    4) The proxy PAC file was checked and debugging was done for the request 'https://myAppletHost.com/download/...'. The FindProxyForUrl function (including the conditions defined in it, for the hostname and domain checks) returns PROXY user-proxy.com:80
    5) The user also tried the below
    a. Changed the option in the network settings in the browser to 'Proxy server' with Address 'user-proxy.com' and Port '80'
    b. Restarted the browser.
    c. Tried with Java Plug-in 1.6.0_29, JRE version 1.6.0_29-b11. There was no problem and no request to the Domain Controller of the user.
    d. Tried with Java Plug-in 10.40.2.43, JRE version 1.7.0_40-b43. The problem occurs with the delay and a request to the Domain Controller of the user is observed.
    Kindly refer to Java console output in the code ‘section C’ towards the end of this post.
    6) The user also tried setting the below property in the Java Control panel; restarted the browser, and try with JRE 1.7.0_40-b43. The problem stil persists.
    -Djava.net.preferIPv4Stack=true
    7) The Global Policy Management of the Domain Controller was verified by the user. It has GPO for proxy setting but nothing related to Java security.
    Questions:
    The problem seems be specific to a particular (user) environment setup, and the user faces the problem when using JRE 1.7.
    We would like to know if the issue is in the (user) environment setup or in JRE 1.7.
    Could you please help with information/ideas/suggestions to identify the root cause and solution for this problem?
    Section A:
    Java Plug-in 1.6.0_29
    Using JRE version 1.6.0_29-b11 Java HotSpot(TM) Client VM
    User home directory = C:\Users\userA
    basic: Plugin2ClassLoader.addURL parent called for https://myAppletHost.com/download/myApplet.jar
    network: Connecting https://myAppletHost.com/download/myApplet.jar with proxy=HTTP @ user-proxy.com/194.xxx.xx.xx:80
    network: Server https://myAppletHost.com/download/myApplet.jar requesting to set-cookie with "BCSI-CS-b1bb5056c5b0e83f=2; Path=/"
    network: Server https://myAppletHost.com/download/myApplet.jar requesting to set-cookie with "BCSI-CS-b1bb5056c5b0e83f=2; Path=/"
    security: Loading Root CA certificates from C:\Program Files (x86)\Java\jre6\lib\security\cacerts
    security: Loaded Root CA certificates from C:\Program Files (x86)\Java\jre6\lib\security\cacerts
    security: Loading SSL Root CA certificates from C:\Program Files (x86)\Java\jre6\lib\security\cacerts
    security: Loaded SSL Root CA certificates from C:\Program Files (x86)\Java\jre6\lib\security\cacerts
    security: Loading certificates from Deployment session certificate store
    security: Loaded certificates from Deployment session certificate store
    security: Loading certificates from Internet Explorer ROOT certificate store
    security: Loaded certificates from Internet Explorer ROOT certificate store
    security: Checking if certificate is in Deployment denied certificate store
    network: Connecting https://myAppletHost.com/download/myApplet.jar with cookie "JSESSIONID=0000IK4bEMoqXH10zsl88rwvoRI:175oe9tjd; BCSI-CS-b1bb5056c5b0e83f=2"
    network: Downloading resource: https://myAppletHost.com/download/myApplet.jar
                    Content-Length: 403.293
                    Content-Encoding: null
    Dump system properties ...
    https.protocols = TLSv1,SSLv3
    java.vm.info = mixed mode, sharing
    java.vm.name = Java HotSpot(TM) Client VM
    java.vm.specification.name = Java Virtual Machine Specification
    java.vm.specification.vendor = Sun Microsystems Inc.
    java.vm.specification.version = 1.0
    java.vm.vendor = Sun Microsystems Inc.
    java.vm.version = 20.4-b02
    javaplugin.nodotversion = 160_29
    javaplugin.version = 1.6.0_29
    javaplugin.vm.options =
    os.arch = x86
    os.name = Windows 7
    os.version = 6.1
    trustProxy = true
    deployment.proxy.auto.config.url = http://www.userAppX.com/proxy.pac
    deployment.proxy.bypass.local = false
    deployment.proxy.http.host = user-proxy.com
    deployment.proxy.http.port = 80
    deployment.proxy.override.hosts =
    deployment.proxy.same = false
    deployment.proxy.type = 3
    deployment.security.SSLv2Hello = false
    deployment.security.SSLv3 = true
    deployment.security.TLSv1 = true
    deployment.security.mixcode = ENABLE
    Section B:
    Java Plug-in 10.25.2.17
    Using JRE version 1.7.0_25-b17 Java HotSpot(TM) Client VM
    User home directory = C:\Users\userA
    basic: Added progress listener: sun.plugin.util.ProgressMonitorAdapter@12adac5
    basic: Plugin2ClassLoader.addURL parent called for https://myAppletHost.com/download/myApplet.jar
    network: Connecting https://myAppletHost.com/download/myApplet.jar with proxy=HTTP @ user-proxy.com/194.xxx.xx.xx:80
    network: Server https://myAppletHost.com/download/myApplet.jar requesting to set-cookie with "BCSI-CS-2d4ce94a2ae7b460=2; Path=/"
    network: Connecting http://10.x.x.xx:53/ with proxy=DIRECT
                    (##THE ABOVE REQUEST CAUSES THE DELAY OR HANGS##)
    network: Server https://myAppletHost.com/download/myApplet.jar requesting to set-cookie with "BCSI-CS-2d4ce94a2ae7b460=2; Path=/"
    security: Loading Root CA certificates from C:\Program Files (x86)\Java\jre7\lib\security\cacerts
    security: Loaded Root CA certificates from C:\Program Files (x86)\Java\jre7\lib\security\cacerts
    security: Loading SSL Root CA certificates from C:\Program Files (x86)\Java\jre7\lib\security\cacerts
    security: Loaded SSL Root CA certificates from C:\Program Files (x86)\Java\jre7\lib\security\cacerts
    security: Loading certificates from Deployment session certificate store
    security: Loaded certificates from Deployment session certificate store
    security: Loading certificates from Internet Explorer ROOT certificate store
    security: Loaded certificates from Internet Explorer ROOT certificate store
    network: Connecting https://myAppletHost.com/download/myApplet.jar with proxy=HTTP @ user-proxy.com/194.xxx.xx.xx:80
    network: Server https://myAppletHost.com/download/myApplet.jar requesting to set-cookie with "BCSI-CS-2d4ce94a2ae7b460=2; Path=/"
    network: Server https://myAppletHost.com/download/myApplet.jar requesting to set-cookie with "BCSI-CS-2d4ce94a2ae7b460=2; Path=/"
    network: Connecting https://myAppletHost.com/download/myApplet.jar with cookie "JSESSIONID=0000UQuXWY5tjxjpwcKHlfJKe_8:175oe9j45; BCSI-CS-2d4ce94a2ae7b460=2"
    network: ResponseCode for https://myAppletHost.com/download/myApplet.jar : 200
    network: Encoding for https://myAppletHost.com/download/myApplet.jar : null
    network: Server response: (length: -1, lastModified: Thu Feb xx yy:yy:yy CET 2013, downloadVersion: null, mimeType: text/plain)
    network: Downloading resource: https://myAppletHost.com/download/myApplet.jar
                    Content-Length: -1
                    Content-Encoding: null
    Section C:
    Java Plug-in 10.40.2.43
    Using JRE version 1.7.0_40-b43 Java HotSpot(TM) Client VM
    User home directory = C:\Users\userA
    basic: Plugin2ClassLoader.addURL parent called for https://myAppletHost.com/download/myApplet.jar
    network: Connecting https://myAppletHost.com/download/myApplet.jar with proxy=HTTP @ user-proxy.com/194.xxx.xx.xx:80
    network: Server https://myAppletHost.com/download/myApplet.jar requesting to set-cookie with "BCSI-CS-1d67c8b6508ca09c=2; Path=/"
    network: Connecting http://10.x.x.xx:53/ with proxy=DIRECT
                    (##THE ABOVE REQUEST CAUSES THE DELAY OR HANGS##)
    network: Checking for update at: https://javadl-esd-secure.oracle.com/update/blacklist
    network: Checking for update at: https://javadl-esd-secure.oracle.com/update/blacklisted.certs
    network: Checking for update at: https://javadl-esd-secure.oracle.com/update/baseline.version
    network: Connecting https://javadl-esd-secure.oracle.com/update/blacklist with proxy=HTTP @ user-proxy.com/194.xxx.xx.xx:80
    network: Connecting https://javadl-esd-secure.oracle.com/update/baseline.version with proxy=HTTP @ user-proxy.com/194.xxx.xx.xx:80
    network: Connecting https://javadl-esd-secure.oracle.com/update/blacklisted.certs with proxy=HTTP @ user-proxy.com/194.xxx.xx.xx:80
    security: Loading Root CA certificates from C:\Program Files (x86)\Java\jre7\lib\security\cacerts
    security: Loaded Root CA certificates from C:\Program Files (x86)\Java\jre7\lib\security\cacerts
    security: Loading SSL Root CA certificates from C:\Program Files (x86)\Java\jre7\lib\security\cacerts
    security: Loaded SSL Root CA certificates from C:\Program Files (x86)\Java\jre7\lib\security\cacerts
    Dump system properties ...
    https.protocols = TLSv1,SSLv3
    java.vm.info = mixed mode, sharing
    java.vm.name = Java HotSpot(TM) Client VM
    java.vm.specification.name = Java Virtual Machine Specification
    java.vm.specification.vendor = Oracle Corporation
    java.vm.specification.version = 1.7
    java.vm.vendor = Oracle Corporation
    java.vm.version = 24.0-b56
    javaplugin.nodotversion = 10402
    javaplugin.version = 10.40.2.43
    os.arch = x86
    os.name = Windows 7
    os.version = 6.1
    trustProxy = true
    active.deployment.proxy.auto.config.url = http://www.userAppX.com/proxy.pac
    active.deployment.proxy.bypass.local = false
    active.deployment.proxy.http.host = user-proxy.com
    active.deployment.proxy.http.port = 80
    active.deployment.proxy.same = false
    active.deployment.proxy.type = 3
    deployment.browser.path = C:\Program Files (x86)\Internet Explorer\iexplore.exe
    deployment.proxy.auto.config.url = http://www.userAppX.com/proxy.pac
    deployment.proxy.bypass.local = false
    deployment.proxy.http.host = user-proxy.com
    deployment.proxy.http.port = 80
    deployment.proxy.override.hosts =
    deployment.proxy.same = false
    deployment.proxy.type = 3                                                                                                                                                                                                                                                            
    deployment.security.SSLv2Hello = false
    deployment.security.SSLv3 = true
    deployment.security.TLSv1 = true
    deployment.security.TLSv1.1 = false
    deployment.security.TLSv1.2 = false
    deployment.security.authenticator = true
    deployment.security.disable = false
    deployment.security.level = HIGH
    deployment.security.mixcode = ENABLE
    PS:
    Since the JRE 1.7.0_25-b17 update, it is noticed that when the Java plugin requests for the applet File; it sends a request to the Domain Controller of the user, which causes a delay of 2 to 5 minutes and sometimes hangs.
    The problem occurs consistently, and also with JRE 1.7.0_45-b18.
    Java Plug-in 10.45.2.18
    Using JRE version 1.7.0_45-b18 Java HotSpot(TM) Client VM
    User home directory = C:\Users\userA
    c:   clear console window
    f:   finalize objects on finalization queue
    g:   garbage collect
    h:   display this help message
    l:   dump classloader list
    m:   print memory usage
    o:   trigger logging
    q:   hide console
    r:   reload policy configuration
    s:   dump system and deployment properties
    t:   dump thread list
    v:   dump thread stack
    x:   clear classloader cache
    0-5: set trace level to <n>
    cache: Initialize resource manager: com.sun.deploy.cache.ResourceProviderImpl@134a33d
    basic: Added progress listener: sun.plugin.util.ProgressMonitorAdapter@1971f66
    basic: Plugin2ClassLoader.addURL parent called for https://myAppletHost.com/download/myApplet.jar
    network: Connecting https://myAppletHost.com/download/myApplet.jar with proxy=HTTP @ user-proxy.com/194.xxx.xx.xx:80
    network: Server https://myAppletHost.com/download/myApplet.jar requesting to set-cookie with "BCSI-CS-f797d4d262467220=2; Path=/"
    network: Connecting http://10.x.x.xx:53/ with proxy=DIRECT
    network: Connecting http://10.x.x.xx:53/ with proxy=DIRECT
                    (##THE ABOVE REQUEST CAUSES THE DELAY AND SOMETIMES HANGS##)

    My organization is experiencing very similar problems.  We have resolved it through several steps.
    We upgraded the client to Java 8 and we saw in the console that the hanging connection with the Domain Controller no longer occurs.  This may be all that is necessary for your environment as well. 

  • Do the Plain J2SE adapters support acknowledgments?

    Hello All,
    I have a scenario as below,
    ... -> XI(BPM) -> (in BPM) async send data by the XI-type adapter to the J2SE File-adapter(or JDBC) -> (in BPM):next step .
    (Send step in BPM is request transport ack, "Transfer hop list" (in XI adapter)is checked).
      There are no acks (success or errors) receives
      (ack status is "Still waiting acknowledgments").
      My BPM is block
       Do the Plain J2SE adapters support acknowledgments? 
    Thanks
    Message was edited by: Michael Kakourov
    Message was edited by: Michael Kakourov

    > Do the Plain J2SE adapters support acknowledgments? 
    No. Use J2EE adapter engine instead.
    Regards
    Stefan

  • Timeout in resultHandler for HTTPService request

    Hello All,
    I have a flex application where I am calling to get data in XML format.  The data file most likely will contain 10's of thousands of records (in most cases).  What I am experiencing is a timeout in my rHandle function (see code snippets below):
    Error #1502 A Script has executed for longer than the default timeout period of 15 seconds
    My question/problem has 2 parts.
    1) how do you disable the timeout?
    2) the reading/parsing of the XML data seems to take waaaay too long.  Is there a better way?
    I put an Alert message at the top of the result handler function and it didnt trigger before the timeout message triggered.  I am reading what could be 10's of thousands of records.  Is there a better (and FASTER) way to do this than to read in XML format?  Currently, no matter what I set the httpservice requests 'timeout' value to doesnt seem to have any effect.  I get a timeout after 15 seconds every time.  I have tried setting the timeout value to -1 (as documentation suggested) and/or to some very large value (say, 1200...20 minutes).  Any and all help is appreciated.   Here is the code and an example of the XML file
    private var contactService:HTTPService = new HTTPService();
    private var xData:XML;
    private var T_Data:ArrayCollection = new ArrayCollection();
    private function get_data():void
       contactService.url="data/big_data.xml";
       contactService.format = "e4x";
       contactService.addEventListener(ResultEvent.RESULT, rHandle);
       contactService.requestTimeout = -1;
       contactService.send();
    private function rHandle(event:ResultEvent):void
       var i:int;
       xData = event.result as XML;
       for  (i=0; i < xData.el.length(); i++)
          var t:Object = new Object();
          t.cid = xData.el[i].cid; 
          t.date = xData.el[i].date; 
          t.y_axis = xData.el[i].y_axis;
          T_Data.addItem(t);
    <mx:PlotChart.....DataProvider="{T_Data}"
       <mx:horizontalAxis>
          <mx:DateTimeAxis />
       </mx:horizontalAxis>
       <mx:verticalAxis>
          <mx:LinearAxis />
       </mx:verticalAxis>
       <mx:series>
          <mx:PlotSeries id=... yField="y_axis" xField="date" />
       </mx:series>
    </mx:PlotChart.....
    contents of big_data.xml
    <xml.....>
    <data>
    <el><cid>1</cid><date>1243814400982</date><y_axis>10</y_axis></el>
    <el><cid>2</cid><date>1243814401982</date><y_axis>12</y_axis></el>
    <el><cid>3</cid><date>1243814451982</date><y_axis>44</y_axis></el>
    <el><cid>4</cid><date>1243815451730</date><y_axis>21</y_axis></el>
    .........(10s of thousands of records like this)....
    </data>

    Through trial and error, and some investigation, I found that the solution to my problem was to use remoteobject rather than httpservice.
    Flex doesnt seem to handle httpservice calls with XX meg feeds very well.

  • HTTPService request for each View inside a ViewStack

    Can someone point me in the right direction to have a
    httpservice request for each view inside my viewstack?
    <mx:ViewStack id="views">
    <mx:Canvas id="view0">
    </mx:Canvas>
    <mx:Canvas id="view1">
    </mx:Canvas>
    </mx:ViewStack>
    Can someone whip together a quick example or just point me in
    the right direction?
    Thanks

    Ahh, don't do that.
    Use a central HTTPService instance, and use AsyncToken to
    keep track of which result goes where. Some code snippets below.
    Tracy
    Sample code using HTTPService, e4x, handler function to
    populate a list item.
    Also shows usage of AsyncToken.
    The DataGrid tag:
    <mx:DataGrid id="dg" dataProvider="{_xlcMyListData}"
    .../>
    The HTTPService tag:
    <mx:HTTPService id="service" resultFormat="e4x"
    result="onResult(event)" fault="..../>
    Script block declaration:
    import mx.rpc.Events.ResultEvent;
    [Bindable]private var _xlcMyListData:XMLListCollection;
    Invoke send:
    var oRequest:Object = new Object();
    oRequest.Arg1 = "value1";
    var callToken:AsyncToken = service.send(oRequest);
    token.callId = "myQuery1";
    Result Handler function:
    private function onResult(oEvent:ResultEvent):void {
    var xmlResult:XML = XML(event.result); //converts result
    Object to XML. can also use "as" operator
    var xlMyListData:XMLList = xmlResult.myListData; //depends
    on xml format, is row data
    _xlcMyListData = new XMLListCollection(xlMyListData); //wrap
    the XMLList in a collection
    trace(_xlcMyListData.toXMLString()); //so you can see
    exactly how to specify dataField or build labelFunction
    var callToken:AsyncToken = oEvent.token;
    var sCallId = callToken.callId; //"myQuery1"
    switch(sCallId) {
    case "myQuery1":
    doQuery2();
    break;
    }//onResult

  • Multiple Httpservice requests

    Hi,
    I have a requirement where i have to load two components on
    one click.
    And each component has httpservice request.
    function onclick is the following
    public function onclick(event:MouseEvent):void{
    this.loadComponentOne();
    this.loadComponentTwo();
    when i get the response correctly , the invoke and result
    events from httpservice are in this order
    Httpservice from component one in invoked
    result from component one is [object Object]
    HttpService from component two is invoked
    result from component two is [object Object]
    but sometimes there is a conflict between the responses from
    the httpservices of these components
    in this case,Events from httpservice output the result in
    this order
    Httpservice from component one in invoked
    HttpService from component two is invoked
    result from component one is [object Object]
    result from component two is [] //empty for some reaon
    i get the result from my servlet correctly but
    ResultEvent.result is empty
    and the component two is not loaded because the result is
    empty..
    so how should the multiple httprequests be handled to get the
    responses correctly?
    Thanks
    chandana

    I am using a separate class to create a httpservice.
    following is the code where i send the Httpservice with all
    the event handlers.
    and from the component i call the methods from this class to
    get the response as follows
    public function selectedEntitiesList(id:String):void{
    backendRequest = new MittoBackendRequest(list_url);
    backendRequest.setRequest({action:action,id:id});
    backendRequest.addEventListener(ResultEvent.RESULT,getList);
    backendRequest.send();
    Thanks
    chandana

  • Dynamic HTTPService request AS3

    I'm doing a mashup in Flex right now using Yahoo Maps. One of
    the functions allows users to create their own routes.
    Here's the problem. I need a dynamic httpService request
    because I never know beforehand how many markers a route holds.
    Here's my code:
    [Bindable]
    private var rssFeed:String;
    private function opslaanRoute(event:Event):void
    if(this.tekstInputVenster.text!="")
    if(markerLijst.length>0)
    rssFeed = "<route>";
    rssFeed +=
    "<routebeschrijving>"+this.tekstInputVenster.text+"</routebeschrijving>";
    var lengte:Number = markerLijst.length;
    for(var d:Number=0;d<lengte;d++)
    rssFeed +="<marker>";
    rssFeed +=
    "<latlon"+d+">"+markerLijst[d][0]+"</latlon"+d+">";
    rssFeed +=
    "<indexMarker"+d+">"+markerLijst[d][1]+"</indexMarker"+d+">";
    rssFeed +=
    "<titel"+d+">"+markerLijst[d][2]+"</titel"+d+">";
    rssFeed +=
    "<beschrijving"+d+">"+markerLijst[d][3]+"</beschrijving"+d+">";
    rssFeed +="</marker>";
    rssFeed += "<aantal>"+indexMarkers+"</aantal>";
    rssFeed += "<userid>"+_loginid+"</userid>";
    rssFeed += "</route>";
    opslaanR.send();
    else
    Alert.show("U moet markers toevoegen om op te slaan!");
    else
    Alert.show("U moet een routebeschrijving toevoegen om op te
    slaan!");
    The httpservice looks like this:
    <mx:HTTPService
    id="opslaanR"
    url="url"
    useProxy="false"
    method="POST"
    resultFormat="e4x"
    result="opslaanSucces(event)"
    showBusyCursor="true"
    >
    <mx:request>
    {rssFeed}
    </mx:request>
    </mx:HTTPService>
    The "aantal" tag is the number of markers a route holds.
    Basically I want to loop the $_POST variables in php using "aantal"
    so I can add them to my database. The PHP works flawlessly but it
    never gets the httpservice values.
    Please help.

    well you understood me, I want an alternative to the script what I put in AS2,
    but I think. of the script as you sent me centenary assume that I have in the library button menu0 menu1 .....
    But I have only one menu button.
    because I tried it and it did not work.
    var ClassRef: Class = Class (getDefinitionByName ("menu" + i));
    I will be happy if later you look again

  • First HTTPService request takes forever

    Ok.  I have an interesting event taking place with my application.
    The first HTTPService request takes about 10-20 seconds and then, any additional requests are made between 1-5 seconds.
    A user types in a country code that and clicks a submit button.  The request is sent to a PHP page with the variable, the PHP creates an XML response.  Flex updates a datagrid accordingly which shows rates/minute for phone numbers with that country code.
    Any suggestions as to why this might be?
    Thanks in advance.
    Other Thoughts:
    First Request = 7 results (about 15 seconds)
    Second Request = 168 results (1 second)
    Third Request = 3028 results (5 seconds)
    Fourth Request = same request as First request (less than 1 second).

    im not sure about that one. i havent seen that issue before. as for the 'if i delete itunes, will it delete my music' question, the answer is no. if you uninstall itunes, it will just leave your music on your computer.

  • Machine Translation Service Applicatrion and the MicroSoft Translator Hub

    Hi
    So we are looking at setting up Machine Translation SA and the steps according to TechNet appear to be
    1 - Create the Service App
    2 - Configure it
    https://technet.microsoft.com/en-us/library/jj553772.aspx
    I can't see in the configuration any reference to where it goes to on the internet to do the translations. Does this have to be configured separately? Does it go somewhere by default unless otherwise configured?
    At the bottom of the article it states "You can configure the Machine Translation Service to use the custom translation system by passing the category ID in the
    MachineTranslationCategory parameter."
    What does the Machine Translation service use if you don't configure a custom translation system using the Translation hub?
    Thanks
    J

    Hi Jon,
    If you set the Machine Translation Service Application to use “Use default internet settings” in Online Translation Connection section, then the requests will be sent to the cloud-hosted machine translation service.
    http://blogs.technet.com/b/wbaer/archive/2012/11/12/introduction-to-machine-translation-services-in-sharepoint-2013.aspx
    https://msdn.microsoft.com/en-us/library/jj163145%28v=office.15%29.aspx?f=255&MSPPError=-2147217396
    When the Machine Translation Service application processes a translation request, it forwards the request to the
    Microsoft Translator cloud-hosted machine translation service, where the actual translation work is performed.
    And the Microsoft Translator service has its own translation systems to do the translation work.
    Thanks,
    Victoria Xia
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

Maybe you are looking for

  • Google voice and google latitude please.

    I use Google Voice regularly and it is pain to have to go thru the web interface on the iphone. I really like Google's iPhone apps, and so far all of them are first rate. I ask Apple to allow Google to publish Google Voice and Google Latitude native

  • Problem with JCA-DB in Business Service character

    Hi, I'm calling to database with JCA in Business Service, but when output contains the character "*&*" the business show "*&amp*"; Example OUTPUT FROM BD:_ AMERICA NT & SAN FRANCISCO OUTPUT FROM BS_ <Envelope xmlns="http://schemas.xmlsoap.org/soap/en

  • I cloned my HD & now I can't eject or unmount it

    My first post - though I read them often. OK, I am a newbie at cloning my PB hard drive - but I thought I was prepared w/ enough info to get me through it.. But.. This is what I did so far: I have a powerbook g4 1.25Ghz and wanted to clone my interna

  • How to create block by copying parent value to all of its children

    Hi All, I need to create blocks by copying the parent value into it's children, however, the following does not work: DATACOPY "Profit"->"Actuals"->"2012"->"Period Total"->@PARENT(@CURRMBR("Business")) TO "Profit_2"->"Budget"->"2013"->"Input Mth"->@C

  • Costing Issue

    I have Run Cost Estimate by Ck11n and Save than i run CK24 and makring than release than Execute and test run successful system given message 1 estimate for 1 material updated successful and i saved it than i check in material master costing view 2 h