Listen to "ALL" HTTP Requests

Hello,
I have an application with many 3rd party components on it.
These components pull in a lot of external media (i.e images, data) but do not have a public Loader i can listen too.
Is there any way Flex can give me access to all HTTP request coming in so I can show a progress bar for each download?
Thoughts?
Drew

LinKe,
I do not believe this is possible. The port associated with the URL of the Web Service Reference is determined from WSDL at the time of definition. There is no facility to alter the Web Service Reference definition at runtime.
Joel

Similar Messages

  • Creating listener for incoming http requests

    Hi,
    I am trying to create a server for incoming http requests.
    I am using Connector.open("socket://:5555") call to bind to the server socket.
    I have give permission for Connector.socket, as well as Connector.http to this application.
    The server is able to accept connections when the client connects using socket://localhost:5555, but does not accept any incoming connection when the client connects using http://localhost:5555.
    How can I create a service on my mobile which will accept http requests.
    Thanks,
    Debashis

    Allistair,
    One thing that might help you is an understanding of the Oracle database JVM architecture. Here's a DOC which you might find interesting:
    http://otn.oracle.com/products/oracle8i/pdf/Oow_BestPractices.pdf
    Hope this helps,
    -Dan
    http://www.compuware.com/products/devpartner/db/oracle_debug.htm
    Debug PL/SQL and Java in the Oracle Database

  • How do I overcome the fact that not all HTTP requests require redirection

                       I have the following scenario, The Business require that the main login to JDE is just http://prod.apps, I use a redirect server to change it to
    http://prod.apps:12001/prod/Mainmanu.maf  so that all works well , but reports and approvals generate links with URIs so the redirect does not work. To overcome this problem I have generated another context with a different VIP without a redirect server and that seems to work ok. But the apllication programmers have to ensure that any reports etc point to this new VIP.
    Is there a better  way of doing this?

    Hi
    You may  use L7 http class map and add additional matching by GET field in url request (as one possibility). E.g.
    currently you have something like this :
    policy-map type load first NAME
    class class-default
    serverfarm
    you may add something like this :
    class type http load match-any
    match http url
    then your L7 map will look like :
    policy-map type load first NAME
    class
    serverfarm
    class class-default
    serverfarm
    More information you can find here :
    http://www.cisco.com/en/US/docs/app_ntwk_services/data_center_app_services/ace_appliances/vA4_2_0/configuration/slb/guide/classlb.html#wp1021430
    http://www.cisco.com/en/US/docs/app_ntwk_services/data_center_app_services/ace_appliances/vA4_2_0/configuration/slb/guide/classlb.html#wp1021388
    I think it should allow you to have only one VIP for this application. Please try - if you don't succeed, please post URL you use to access reports/approvals links.
    If this answer resolved your problem - please mark it as correct it will help to keep our forum more organized.
    Thank you.

  • ExecutorService creating tasks to send HTTP requests - time out

    In my java application, I have introduced ExecutorService to create tasks. The tasks consist of sending HTTP requests to an application server, to process transactions. The ExecutorService will process about 1000 requests.
    The executor process the transactions and terminates OK, but some of the transactions timed out (before introducing ExecutorService, I was just sending one transaction at time, all the transactions were processed OK; but, it was taking a long time to process).
    See the code below.
    private ExecutorService threadExecutor;
    threadExecutor = Executors.newFixedThreadPool(30);
    threadExecutor.execute(transaction);
    try
         //Shutting down the ThreadExecutor
    threadExecutor.shutdown();
    threadExecutor.awaitTermination(30, TimeUnit.SECONDS);
    threadExecutor.shutdownNow();
    catch (InterruptedException e)
         System.out.println("ERROR - cannot shutdown the ThreadExecutor - exception is: " + e);
    Is this the best way to implement this use case?
    Thank you.

    From the above code, it seems like you are starting only a single transaction in a thread pool. Or does the transaction object you pass to the threadExecutor spawn more tasks for the executor?
    If you are indeed still making all HTTP requests from the single transaction object, then yes, it will 'time-out' after 30 seconds, since the ExecutorService was instructed to stop its threads after that period of time.
    Your description of the use case is actually a good example of the usage of an ExecutorService, since it is faster to do 1000 HTTP requests in parallel than it is to do them sequentially.
    Consider this:
    ExecutorService threadExecutor = Executors.newFixedThreadPool(30);
    for (int i = 0; i < 1000; i++)
      threadExecutor.execute(new Transaction());
    try
      threadExecutor.shutdown();
      threadExecutor.awaitTermination(30, TimeUnit.SECONDS);
      threadExecutor.shutdownNow();
    catch (InterruptedException e)
      // Ignore
    }This will spawn 1000 transactions that will execute in parallel, with max. 30 running at any single point in time. Any transactions still not executed after 30 seconds will be terminated.
    Hope this helps.
    --JH
    Edited by: Kramor_dude on Nov 5, 2009 6:55 AM

  • Differentiating HTTP Request through a URL and a value change listener

    Version Details:
    Oracle JDeveloper 11g Release 1 11.1.1.4.0
    Studio Edition Version 11.1.1.4.0
    Build JDEVADF_11.1.1.4.0_GENERIC_101227.1736.5923
    IDE Version: 11.1.1.4.37.59.23
    Product ID: oracle.jdeveloper
    Product Version: 11.1.1.4.37.59.23
    ADF Business Components     11.1.1.59.23
    Java(TM) Platform     1.6.0_21
    Oracle IDE     11.1.1.4.37.59.23
    Versioning Support     11.1.1.4.37.59.23
    Base Details:
    The Product, that a different team is working on (<i><b>which I cannot access, code, touch,...</b></i>), creates reports and essentially generates a URL with a bunch of parameters:
    http://<host>:<port>/myApplication/main.jspx?parameter1=value1&parameter2=value2...When the user clicks on an "Edit" button, a modal popup window is displayed (using jQuery) with an embedded iFrame with its source pointing to the above URL.
    The "myApplication" is an ADF application which brings up an ADF form based on the parameters. Once the user enters the data, validations occur and the data is written into a total of 3 different Tables in the Database. Once the operation is finished, the user closes the popup by clicking on the "X" button of the popup window, which essentially does "popup.*hide()*".
    Limitations:
    <li>Since there are varied combination of parameter values and associated ADF forms, taskflows is not* an option.
    <li>Since the logic of generating the ADF form is not straightforward, ADF BC is not* an option.
    <li>Since validations are based on the value change listeners, the managed bean has to be a session scope_ bean.
    Problem:
    When, for the first time, the user clicks on the Edit button with a particular set of parameter values, the corresponding ADF form is displayed and things work normal. Since the managed bean is under session scope, the form generated for the first popup window stays the same for any subsequent popup windows, even when the URL and its parameters are completely different. As I can not listen to the popup close event, I cannot invalidate my session either.
    I tried using filters in the web.xml to grab the request and apply the business logic. Due to the presence of multiple value change listeners (too many <tt>autosubmit=true</tt>), every value change listener triggers a request and so the business logic gets applied with every value change.
    After some tests, I deduced that the difference between the call from iFrame and the call from value change is the HTTP Request Method - GET for iFrame and POST for value change listener. So in my filter I apply the business logic when there is a GET request and not apply when its a POST request.
    Turns out, that is not a valid enough differentiation between the two requests being made. Sometimes, even the value change listeners are issuing a GET request.
    Question:
    *<font color="red">1</font>*. Is there a way to force the value change listeners to always trigger a POST request?
    *<font color="red">2</font>*. Is there a way to differentiate the requests originating from the other team's Product and those generated by my own value change listeners?
    *<font color="red">3</font>*. Is there a different approach, incorporating the above-mentioned limitations, to clear out the session scope each time when a request is made through iFrame? That is, whenever a request is made through the other team's Product?
    Edited by: user737922 on Apr 13, 2011 10:58 AM

    _(Temporary) Solution_:
    Summary:
    I am using the request parameter <b><tt>_adf.ctrl-state</tt></b> to differentiate between the HTTP requests that my application receives.
    Details:
    When I receive the request from the other team's Product, I receive a <tt>GET</tt> and a <tt>adf.ctrl-state</tt> value which I store into a local variable in my session-scoped managed bean. The <tt>adf.ctrl-state</tt> value stays the same for all requests (<tt>GET</tt> or <tt>POST</tt>) made from within my own application. It changes only when there is a new request from the other team's Product.
    Also, as my application is accessed through an iFrame, there is no possibility of the generated URL being modified by the end-user.
    For now it seems that the solution is appropriate but I am not fully confident if relying on the <tt>_adf.ctrl-state</tt> value is the best approach.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Get Http Request in Session Listener?

    Is it possible get Http Request in Session Listener when session is created? I need to get cookies when session is created.
    anyone knows?

    No, it is not possible.

  • Listening to HTTP request events. Question related to enableEvents property.

              Hi,
              I am using weblog 5.1 service pack 6.
              I am interested in HTTP request events. So I did the following.
              I have registered interest in the topic WEBLOG.LOG.HTTPD. I have changed the weblogic.properties
              file to include the following line.
              weblogic.httpd.enableEvents=true.
              But when I bring up the server it says it "Found an undeclared property weblogic.httpd.enableEvents".
              And it is not publishing any events to the topic when I hit the server (probably
              because of the previous message). Can you help?
              Thanx
              Trisula P. Siripurapu
              

    regarding error:
    Caused by: org.omg.CORBA.OBJECT_NOT_EXIST: Unknown object in LOCATE_REQUEST vmcid: 0x0 minor code: 0 completed: No
    Make sure to place the wlfullclient.jar at the beginning of the classpath ...any other WLS specific Jars need not to be added additionally. For above error please refer to : Client SAF error
    Few Things:
    1). When I execute the ant build from a remote box , should I have a weblogic server running...the reason I ask is..does the wldeploy task work only if there is an active weblogic domain in the local machine. When I execute the same build from my windows machine where I have a local instance of weblogic , it works uccessfully .Whenever you try to deploy any application on WebLogic Domain then the Admin Server must be running. Because the deployment entries goes inside the "config.xml" and the original copy of this file is maintained by AdminServer only. So the Admin Server must be running for any kind of configuration changes or for Deployment.
    2). I am told that http protocol is not an option in my work place and I have to use t3 protocol only. In that case, based on the error below, is it possible that the connection between my local unix box and the remote weblogic box is stricted? How to I test the connectivity using t3? I pinged the server from the local unix server and it came back with reply, but could not telnet to that remote box nor ftp to that box does not work.You can check t3 protcol is working fine or not by using the following one line command:
    java weblogic.Admin -url t3://he3unxd189v01:9100 -username weblogic  -password weblogic    PING
    If above command fails to ping the server it means either you are using a wrong HostName & Port OR your N/W is doesnot allow t3 protocol connections OR there may be a N/W Issue.
    Thanks
    Jay SenSharma

  • Application Web Service Control Manager detected AWEBSVC is not responding to HTTP requests. The http status code and text is 400, Bad Request.

    Hi All,
    I am seeing the following error for SMS_AWEBSVC_CONTROL_MANAGER component with Message ID: 8100
    Application Web Service Control Manager detected AWEBSVC is not responding to HTTP requests.  The http status code and text is 400, Bad Request.
    awebsctl.log file has below errors:
    Call to HttpSendRequestSync failed for port 80 with status code 400, text: Bad Request
    SMS_AWEBSVC_CONTROL_MANAGER 12/22/2014 3:37:55 PM
    13920 (0x3660)
    AWEBSVCs http check returned hr=0, bFailed=1
    SMS_AWEBSVC_CONTROL_MANAGER 12/22/2014 3:37:55 PM
    13920 (0x3660)
    AWEBSVC's previous status was 1 (0 = Online, 1 = Failed, 4 = Undefined)
    SMS_AWEBSVC_CONTROL_MANAGER 12/22/2014 3:37:55 PM
    13920 (0x3660)
    Health check request failed, status code is 400, 'Bad Request'.
    SMS_AWEBSVC_CONTROL_MANAGER 12/22/2014 3:37:55 PM
    13920 (0x3660)
    Management point and Application Catalog Website Point are installed on the same Server where I am seeing the error for Application Catalog Web Service Point role. Management Point and Application Catalog Website Point are functioning properly. Application
    Catalog Website is working.
    Thanks & Regards, Kedar

    Hi Jason,
    Application Catalog Web Service Point and Application Catalog Website Point; both are installed as per below configuration on same Server:
    IIS Website: Default Web Site
    Port Number: 80
    with default value for Web Application Name configured.
    For SMS_AWEBSVC_CONTROL_MANAGER component, I am getting below error in Component Status:
    Application Web Service Control Manager detected AWEBSVC is not responding to HTTP requests.  The http status code and text is 400, Bad Request.
    Possible cause: Internet Information Services (IIS) isn't configured to listen on the ports over which AWEBSVC is configured to communicate. 
    Solution: Verify that the designated Web Site is configured to use the same ports which AWEBSVC is configured to use.
    Possible cause: The designated Web Site is disabled in IIS. 
    Solution: Verify that the designated Web Site is enabled, and functioning properly.
    For more information, refer to Microsoft Knowledge Base.
    And awebsctl.log has the below error lines:
    Call to HttpSendRequestSync failed for port 80 with status code 400, text: Bad Request
    SMS_AWEBSVC_CONTROL_MANAGER
    12/23/2014 11:04:36 AM 16388 (0x4004)
    AWEBSVCs http check returned hr=0, bFailed=1
    SMS_AWEBSVC_CONTROL_MANAGER
    12/23/2014 11:04:36 AM 16388 (0x4004)
    AWEBSVC's previous status was 1 (0 = Online, 1 = Failed, 4 = Undefined)
    SMS_AWEBSVC_CONTROL_MANAGER
    12/23/2014 11:04:36 AM 16388 (0x4004)
    Health check request failed, status code is 400, 'Bad Request'.
    SMS_AWEBSVC_CONTROL_MANAGER
    12/23/2014 11:04:36 AM 16388 (0x4004)
    STATMSG: ID=8100
    What should I check from IIS side?
    Application Catalog Website is functioning properly.
    Thanks & regards,
    Kedar
    Thanks & Regards, Kedar

  • How can I tell if my local webserver is configured to accept https requests?

    I have phpMyAdmin on my localhost server.
    How can I tell if the localhost server is configured to accept https requests? Or is that unnecessary on a localhost server?
    Below is the info from the phpMyAdmin home page:
    Server: 127.0.0.1 via TCP/IP
    Server version: 5.0.81
    Protocol version: 10
    Apache/2.2.20 (Unix) mod_ssl/2.2.20 OpenSSL/0.9.8r DAV/2 PHP/5.3.6
    MySQL client version: mysqlnd 5.0.8-dev - 20102224 - $Revision: 308673 $
    PHP extension: mysqli
    phpMyAdmin
    Version information: 3.3.1
    Many thanks for information and advice concerning this.
    Best,
    Sheley

    Well, for one, by definition, localhost can only ever be accessed from the machine itself. It doesn't get any more secure than that.
    However, just because you're hitting the site on localhost that doesn't mean that Apache isn't also listening for connections on other IP addresses. In fact, by default, Apache will listen on all IP addresses configured on the machine.
    Therefore you might want to look a little deeper.
    You can see from the phpMyAdmin output that Apache is configured to support HTTPS, but that only tells you whether apache knows how to speak HTTPS, not whether the current connection/request is using HTTPS.
    The shortest, simplest answer to your question is to try. If you can hit https://localhost/ then, yes, Apache is listening and responding to HTTPS requests. If it doesn't respond then it isn't.
    Or dig through the configuration files, but I'm guessing if you knew how to do that, you wouldn't be asking the question.

  • Error log on http request from business connector (BC)

    Hi all,
    We are sending http requests from our business connector to one client but the messages keep having log errors :
    server.log details :
    003C24  [B2BCORE.0064.0014] Opening Socket https://www.qab2b.xxx.com:443/invoke/wm.b2b.cxml:receiveCXML  proxy=10.28.38.27:80
    003C25  [B2BCORE.0038.0002] --> CONNECT www.qab2b.xxx.com:443 HTTP/1.0
    003C26  [B2BCORE.0038.0002] --> User-Agent: Mozilla/4.0 [en] (WinNT; I)
    003C27  [B2BCORE.0038.0002] --> Accept: image/gif, /
    003C28  [B2BCORE.0038.0002] --> Host: www.qab2b.xxx.com:443
    003C29  [B2BCORE.0038.0002] --> Proxy-Authorization: Basic YWJ1c2luZXNzY29ubmVjdG9yOmFidXNpbjA0
    003C2A  [B2BCORE.0038.0002] --> Authorization: Basic U0ZSQ2VnZXRlbDoyMDA3KkVBSV9TRlI=
    003C2B  [B2BCORE.0038.0002] > Content-type: multipart/mixed; boundary="--=_Part_0_1941981.1219399983635"
    003C2C  [B2BCORE.0038.0002] --> Message-ID: <7159395.1219399983666.JavaMail.SYSTEM@sw0030>
    003C2D  [B2BCORE.0038.0002] --> Mime-Version: 1.0
    003C2E  [B2BCORE.0040.0001] HTTP/1.1 200
    003C2F  [B2BCORE.0064.0017] Proxy Header <--Connection established
    003C30  [B2BCORE.0038.0002] --> POST /invoke/wm.b2b.cxml:receiveCXML HTTP/1.0
    003C31  [B2BCORE.0038.0002] --> User-Agent: Mozilla/4.0 [en] (WinNT; I)
    003C32  [B2BCORE.0038.0002] --> Accept: image/gif, /
    003C33  [B2BCORE.0038.0002] --> Host: www.qab2b.xxx.com:443
    003C34  [B2BCORE.0038.0002] --> Proxy-Authorization: Basic YWJ1c2luZXNzY29ubmVjdG9yOmFidXNpbjA0
    003C35  [B2BCORE.0038.0002] --> Authorization: Basic U0ZSQ2VnZXRlbDoyMDA3KkVBSV9TRlI=
    003C36  [B2BCORE.0038.0002] > Content-type: multipart/mixed; boundary="--=_Part_0_1941981.1219399983635"
    003C37  [B2BCORE.0038.0002] --> Message-ID: <7159395.1219399983666.JavaMail.SYSTEM@sw0030>
    003C38  [B2BCORE.0038.0002] --> Mime-Version: 1.0
    003C39  [B2BCORE.0038.0002] --> Content-Length: 188225
    003C3A  [B2BCORE.0040.0001] HTTP/1.0 200
    003C3B  [B2BCORE.0041.0001] ssnid=86087kPxFCsECcmXU5DHUAInKY9mEIIU-9355222; path=/;
    003C3C  [B2BCORE.0038.0002] <-- Set-Cookie: ssnid=86087kPxFCsECcmXU5DHUAInKY9mEIIU-9355222; path=/;
    003C3D  [B2BCORE.0038.0002] <-- Content-Type: multipart/mixed; boundary="----=_Part_0_1941981.1219399983635"
    003C3E  [B2BCORE.0038.0002] <-- Connection: Close
    003C3F  [B2BCORE.0038.0002] <-- Content-Length: 0
    003C40  [B2BCORE.0049.0008] Sequence : index=8 depth=3
    003C41  [B2BCORE.0049.0008] Sequence : index=6 depth=2
    003C42  [B2BCORE.0049.0008] Sequence : index=1 depth=3
    003C43  [B2BCORE.0049.0005] Invoke : index=1 depth=4
    003C44  [B2BCORE.0049.0008] Sequence : index=2 depth=3
    003C45  [B2BCORE.0049.0005] Invoke : index=1 depth=4
    003C46  [B2BCORE.0049.0008] Sequence : index=3 depth=3
    003C47  [B2BCORE.0049.0005] Invoke : index=1 depth=4
    003C48  [B2BSERV.0048.9999] Array index out of range: -1
    003C49  [B2BCORE.0049.0008] Sequence : index=4 depth=3
    003C4A  [B2BCORE.0050.0004] Copy failed: (Simple) No source data available: to=/returnedStatusCode(0), from=/returnHttp(0)/cXML(0)/Response(0)/Status(0)/@code(0)
    003C4B  [B2BCORE.0050.0004] Copy failed: (Simple) No source data available: to=/returnedMessage(0), from=/returnHttp(0)/cXML(0)/Response(0)/Status(0)/*body(0)
    003C4C  [B2BCORE.0050.0004] Copy failed: (Simple) No source data available: to=/returnedText(0), from=/returnHttp(0)/cXML(0)/Response(0)/Status(0)/@text(0)
    003C4D  [B2BCORE.0049.0008] Sequence : index=5 depth=3
    003C4E  [B2BCORE.0049.0008] Sequence : index=6 depth=3
    003C4F  [B2BCORE.0049.0008] Sequence : index=7 depth=2
    003C50  [B2BCORE.0049.0008] Sequence : index=2 depth=1
    003C51  [B2BSERV.0056.0003] Unable to send mail. Illegal address
    error java log on server>logs>error:
    2008-08-22 12:16:33 CEST java.lang.ArrayIndexOutOfBoundsException: Array index out of range: -1
         at com.wm.util.List.elementAt(List.java:101)
         at com.wm.lang.xml.token.BlockInputBuffer.getChar(BlockInputBuffer.java:59)
         at com.wm.lang.xml.TextNode.appendSqueezedText(TextNode.java:178)
         at com.wm.lang.xml.ElementNode.appendSqueezedText(ElementNode.java:333)
         at com.wm.lang.xml.ElementNode.getTextOfChildren(ElementNode.java:309)
         at com.wm.lang.xml.Document.getTextOfChildren(Document.java:542)
         at com.wm.app.b2b.services.DocumentToRecordService.recursiveCollect(DocumentToRecordService.java:661)
         at com.wm.app.b2b.services.DocumentToRecordService.bind(DocumentToRecordService.java:356)
         at pub.web.documentToRecord(web.java:667)
         at java.lang.reflect.Method.invoke(Native Method)
         at com.wm.app.b2b.server.JavaService.baseInvoke(JavaService.java:281)
         at com.wm.app.b2b.server.ServiceManager.invoke(ServiceManager.java:693)
         at com.wm.app.b2b.server.BaseService.invoke(BaseService.java:140)
         at com.wm.lang.flow.FlowInvoke.invoke(FlowInvoke.java:292)
         at com.wm.lang.flow.FlowState.invokeNode(FlowState.java:559)
         at com.wm.lang.flow.FlowState.step(FlowState.java:430)
         at com.wm.lang.flow.FlowState.invoke(FlowState.java:400)
         at com.wm.app.b2b.server.FlowSvcImpl.baseInvoke(FlowSvcImpl.java:1786)
         at com.wm.app.b2b.server.ServiceManager.invoke(ServiceManager.java:693)
         at com.wm.app.b2b.server.ServiceManager.invoke(ServiceManager.java:455)
         at com.wm.app.b2b.server.Service.doInvoke(Service.java:495)
         at com.wm.app.b2b.server.Service.doInvoke(Service.java:392)
         at wm.PartnerMgr.gateway.transport.B2B.OutboundProcess(B2B.java:157)
         at java.lang.reflect.Method.invoke(Native Method)
         at com.wm.app.b2b.server.JavaService.baseInvoke(JavaService.java:281)
         at com.wm.app.b2b.server.ServiceManager.invoke(ServiceManager.java:693)
         at com.wm.app.b2b.server.BaseService.invoke(BaseService.java:140)
         at com.wm.lang.flow.FlowInvoke.invoke(FlowInvoke.java:292)
         at com.wm.lang.flow.FlowState.invokeNode(FlowState.java:559)
         at com.wm.lang.flow.FlowState.step(FlowState.java:430)
         at com.wm.lang.flow.FlowState.invoke(FlowState.java:400)
         at com.wm.app.b2b.server.FlowSvcImpl.baseInvoke(FlowSvcImpl.java:1786)
         at com.wm.app.b2b.server.ServiceManager.invoke(ServiceManager.java:693)
         at com.wm.app.b2b.server.ServiceManager.invoke(ServiceManager.java:455)
         at com.wm.app.b2b.server.Service.doInvoke(Service.java:495)
         at com.wm.app.b2b.server.Service.doInvoke(Service.java:464)
         at wm.PartnerMgr.gateway.runtime.InboundProcess(runtime.java:423)
         at pub.sap.transport.RFC.InboundProcess(RFC.java:190)
         at java.lang.reflect.Method.invoke(Native Method)
         at com.wm.app.b2b.server.JavaService.baseInvoke(JavaService.java:281)
         at com.wm.app.b2b.server.ServiceManager.invoke(ServiceManager.java:693)
         at com.wm.app.b2b.server.ServiceManager.invoke(ServiceManager.java:455)
         at com.wm.app.b2b.server.Service.doInvoke(Service.java:495)
         at com.wm.app.b2b.server.Service.doInvoke(Service.java:464)
         at com.wm.pkg.sap.rfc.Listener.handleRequest(Listener.java:286)
         at com.sap.mw.jco.JCO$Server.dispatchRequest(JCO.java:6022)
         at com.sap.mw.idoc.jco.JCoIDoc$Server.dispatchRequest(JCoIDoc.java:10120)
         at com.wm.pkg.sap.rfc.Listener.dispatchRequest(Listener.java:186)
         at com.sap.mw.jco.rfc.MiddlewareRFC$Server.nativeListen(Native Method)
         at com.sap.mw.jco.rfc.MiddlewareRFC$Server.listen(MiddlewareRFC.java:1070)
         at com.sap.mw.jco.JCO$Server.listen(JCO.java:5797)
         at com.sap.mw.jco.JCO$Server.run(JCO.java:5731)
         at com.wm.pkg.sap.rfc.Listener.run(Listener.java:101)
         at java.lang.Thread.run(Thread.java:479)
    Thanks for your support on this eai.
    Regards,
    Laurent.

    ok, I think we do not need the save/loadPipeline things, because you can debug the flow without that. I first thought you act as HTTP server, but you issue the client call in the flow itself.
    Looking at the logs more carefully, it shows for example:
    Copy failed: (Simple) No source data available: to=/returnedStatusCode(0), from=/returnHttp(0)/cXML(0)/Response(0)/Status(0)/@code(0)
    But you say have that input:
    <?xml version="1.0"?>
    <!DOCTYPE cXML SYSTEM "http://xml.cXML.org/schemas/cXML/1.2.011/cXML.dtd">
    <cXML version="1.2.011" payloadID="20080825171850716.18637uTQ9ExzheaK+H6b7O9oCAQWPzHA-9355222.8b3632def70da7220004d0b6" timestamp="2008-08-25T17:18:50-CEST">
    <Response>
    <Status code="500">No cXML document received from sender.</Status>
    </Response>
    </cXML>
    So we see that your mappings assumptions do not match the result structure.
    The other problem is that you get a status 500 and do not receive a cXML document, but that might be ok, depending on what parameters you pass to the other HTTP server. At least, you get a meaningful error message back from the server, meaning communication is ok.
    I suggest you first correct those "copy failed" issues and then check by single-stepping where exactly the flow fails and check that input again.
    By the way, when I feed the above cXML into recordToDocument, it works fine. Did you specify other input parameters besides "node" (e.g. recordName) ? And again, are you on Core Fix 8 ?
    CSY

  • LVS Viewer: http request error

    Dear All,
    I installed SAP LVS (server) on DB server and then on terminal server (client and viewer)
    We have SAP8.8 PL08 and SQL2005.
    I got error message http request error when I click the button "query"
    I coped the baseaddress from the server correctly.
    Our IT person said firewall port 30005 has been opened.
    Is there any where I should check as well? Thanks.
    Regards,
    Yuka

    try to do a netstat in order to see if the  lvs is listening in that port,
    beside I want to ask if you started the LVS service, because when u just installed this service is not running until you do it manually ... let us know ...
    regards.

  • NAT type detection from a HTTP request

    Hello there
    I got two JAVA class : httpServer and httpClient. Running in two different machines. Server is listening to a HTTP port in one machine and on the other hand client is sending its machine IP from other PC to the server. But the client is behind a NAT. Now I can detect in my httpServer class that it is behind a NAT. I check the requesting IP and the IP send inside the packet payload. If they are different, I decide there is a NAT in between. But how can I know from such HTTP request-response what kind of NAT I am behind? This is important to know because with symmetric NAT
    (http://en.wikipedia.org/wiki/Network_address_translation) , where the NAT binding also include the outgoing address as well, my application is having problem.
    I have solution like STUN/TURN server implementation. But I would like to know the type of NAT my client is behind without any extra deployment such as STUN or TURN server.
    Any suggestion to detect type of NAT without any extra deployment and merely from HTTP request-response JAVA APIs?
    Mohammed Jubaer Arif.

    Thanks
    It seems you are asking me to configure the NAT, may be with some programming. Or may be I should run the server class on the NAT machine.
    But my client and server classes will be all over the world. Thus I think it is not a practical solution to ask the NATs to assist me. The intelligence should be in my client and server messaging.
    So I was wondering, is there any way out for me to get the NAT type with JAVA programming, in the server side once I get a request from the client side. But without any extra deployment.
    But as you said �There's not much of NAT types.� :(
    Mohammed Jubaer Arif

  • Reporting In Service Manager 2012 - How To Get A List Of All Service Requests Regardless of Status

    Within the Custom Reporting Options available to users of Ssystem Center Service Manager 2012, which would one use to create reports that do not contain any agregated data but are instead detail level info such as a list of all Service Requests reardless
    of status?  I want to include within the report the same data you see on the main page of a Service Request when you double-click a Service Request within Service Manager and it pops opne the details of the Service Request.
    I'm trying to get the following info for each Service Requests
    SR ID (i.e. SR1234)
    Affected User
    Title
    Description
    Priority
    Source
    Area
    Support Group
    Assigned To
    Created By and Created On
    I know the cubes w/Excel offer a great way to get data for a **piece meal report or for getting agregated data (I.E. counts, sums, avergares, Max's & Mins) but I need a report that has zero totals and no agregations. 
    Thanks
    ** A piece meal report is a report that has to be manually pieced together by combining data from others reports and other sources because no single report can be constructed to bring all the data togethere into a single report.  If you've ever
    worked with an accountant taht uses Excel for everything but who has no idea how SQL or databases in general are deisgned then chances are you've either been asked to create a piece meal report for them and or seen them do one them selves when they open a
    spreadshet and dump into it disperate data from a variety of sources and then ask you why you can't automate that same report for them.

    the following thread covers some good SQL queries to get details about the Incident Request, just amend them to cover the Service Request
    http://social.technet.microsoft.com/Forums/systemcenter/en-US/e703641d-3e05-4df4-be2b-bf9bd62534f8/how-to-generate-incident-report-with-incident-description-field-in-scsm-2012-sp1

  • Problem in sending HTTP request to the server.

    Hi,
    i dveloped an ant script for sar deployment.
    i deployed a sar to my local soa server with ant script. it got deployed succesfully..
    but when i try to deploy to a remote server, getting the below error..
    "Problem in sending HTTP request to the server. Please make sure the server is up and/or check standard HTTP response code for 404"
    but the server is up and runnig and i am able to ping it from my machine and also access the console...
    below is my script
    build.properties
    wn.bea.home=C:/Oracle/Middleware
    all.needed.jars.path=D:/SourceCode/neededJAR
    oracle.soa.home=C:/Oracle/Middleware/Oracle_SOA1
    java.passed.home=C:/Oracle/Middleware/jdk160_24
    #Deployment environment
    deployment.plan.environment=DEV
    #Deploy Action
    deployAction =redeploy
    #credentials
    user=weblogic
    password=welcome1
    #For Composite deployment
    serverURL=http://10.177.154.6:7001
    forceDefault=true
    server=10.177.154.6
    port=7001
    sarLocation=D:/SourceCode/JAR
    build.xml
    <?xml version="1.0" encoding="iso-8859-1"?>
    <project name="soaDeployAll" default="deployAll">
         <echo>basedir ${basedir}</echo>
         <property environment="env"/>
    <echo>current folder ${basedir}</echo>
         <property file="${basedir}/build.properties"/>
         <taskdef resource="net/sf/antcontrib/antlib.xml">
         <classpath>
              <pathelement location="${all.needed.jars.path}/ant-contrib.jar"/>           
         </classpath>
         </taskdef>
         <target name="init">
              <tstamp>
                   <format property="timestamp" pattern="yyyy-MM-dd_HH-mm-ss"/>
              </tstamp>
              <property name="build.log.dir" location="${basedir}/buildlogs"/>
              <mkdir dir="${build.log.dir}"/> <property name="build.log.filename" value="build_${timestamp}.log"/>
              <record name="${build.log.dir}/${build.log.filename}" loglevel="verbose" append="false"/>
              <echo message="Build logged to ${build.log.filename}"/>
         </target>
         <target name="deployAll" depends="init">
         <echo>Deploy for environment ${deployment.plan.environment}</echo>
         <antcall target="deployAllComposites"/>
    </target>
    <!-- Following Actions are performed for Composite files in Managed Server - Deploy,Redeploy -->
         <target name="deployAllComposites" depends="init">
         <foreach target="deployComposites" param="Files">
              <fileset dir="${sarLocation}" casesensitive="no" includes="*.jar"/>
         </foreach>
         </target>
         <target name="deployComposites" depends="init">
         <basename file="${Files}" property="basename"/>
    <echo>Deploy Project ${basename} for environment ${deployment.plan.environment}</echo>
              <if>
                   <equals arg1="${deployAction}" arg2="deploy" />
                   <then>
                        <echo message="Deploying composites in Managed server........." />
                        <ant antfile="${oracle.soa.home}/bin/ant-sca-deploy.xml" inheritAll="true" target="deploy">
                             <property name="serverURL" value="${serverURL}"/>
                             <property name="user" value="${user}"/>
                             <property name="password" value="${password}"/>
                             <property name="overwrite" value="false"/>
                             <property name="forceDefault" value="${forceDefault}"/>
                             <property name="sarLocation" value="${sarLocation}/${basename}"/>
                        </ant>
                   </then>
                   <else>
                        <echo message="ReDeploying composites in Managed server........." />
                        <ant antfile="${oracle.soa.home}/bin/ant-sca-deploy.xml" inheritAll="true" target="deploy">
                             <property name="serverURL" value="${serverURL}"/>
                             <property name="user" value="${user}"/>
                             <property name="password" value="${password}"/>
                             <property name="overwrite" value="true"/>
                             <property name="forceDefault" value="${forceDefault}"/>
                             <property name="sarLocation" value="${sarLocation}/${basename}"/>                         
                        </ant>
                   </else>
              </if>
    </target>
    </project>
    please help....

    Hi,
    Give the serverURL as http://<host>:<managed.server.port>/soa-infra/deployer and try.
    e.g . http://10.177.154.6:8001/soa-infra/deployer
    Regards,
    Neeraj Sehgal

  • Multiple HTTP Requests in for loop response handling

    i am working on stock market portfolio. a user saves his stock name , buy price ,etc .i've added this details in database.but while viewing his portfolio he should even get the current price of d stocks he has added. while retrieving i fetch all data from database set them in a bean and for each stock i make a HTTP Request. in result handler i event set the current price into the bean. Problem is my entire application is displayed with all the CurrentPrice fields with null.
    private function selectContacts():void
        trace("select before");
        stmt.sqlConnection = this.isDbConnected(conn);
        stmt.text = "SELECT * FROM stocks_t";
        stmt.addEventListener(SQLErrorEvent.ERROR, sqlError);
        stmt.addEventListener(SQLEvent.RESULT, sqlResult);
        stmt.execute();
        trace("select after");
    private function sqlResult(res:SQLEvent):void{
        httpServ = new HTTPService();
        data1 = stmt.getResult().data;
        stockList = new ArrayCollection();   
        for(var d:int=0;d<=data1.length-1;d++)
            myPortfolioBean = new MyProtfolioBean();
            httpServ.url = 'http://quote.yahoo.com/d/quotes.csv?s='+data1[d].stockName+'&f=snl1a';
            httpServ.method = 'GET';
            httpServ.addEventListener(ResultEvent.RESULT,yDataResult);
            httpServ.addEventListener(FaultEvent.FAULT,yDataFault);
            httpServ.showBusyCursor= true;
            httpServ.send();
            myPortfolioBean.stockNameB = data1[d].stockName;
            myPortfolioBean.buyB = data1[d].buy;
            myPortfolioBean.quantityB = data1[d].quantity;
            myPortfolioBean.totalQuantityAmountB = data1[d].totalQuantityAmount;
            myPortfolioBean.profitB = data1[d].profit;
            stockList.addItem(myPortfolioBean);
    public function yDataResult(evt:ResultEvent):void
        var s:String = evt.result as String;
        var a:Array = s.split(",");
        //To add to a form or individual fields
        lastTraded =  a[2].toString();
        lastTradedFloat = parseFloat(lastTraded);
        myPortfolioBean.currentB = lastTradedFloat;
        stockList.addItem(myPortfolioBean);
        //stockList.addItem({current:lastTradedFloat});
    the yDataResult() is called after the entire datagrid is displayed on screen as a result of which the CurrentPrice in datagrid column in null. Eg: user has added google ,yahoo,apple( CurrentPrice  is null for all three values) after some time three more rows (as a result of call to yDataResult) with CurrentPrice xx.xx displayed. I want merged results.

    hello ,
    "CurrentPrice" is "lastTradedFloat" sorry for the ambiguity.
    and u got my problem but there is an issue ..
    all the results are set using "sqlResult" except the "lastTradedFloat" which is set in "ydataResult".
    but i confused with HTTP ResultEvent Execution.
    first "sqlResult" method is called arrayCollection is populated. then result is displayed on screen.( lastTraded value is null then)
    then "ydataResult" executes again manipulating data in arraycollection.
    what i want is data in "sqlResult" and "ydataResult" to be set sequentially then callin my display page . such that display is correct.

Maybe you are looking for