Sending URL requests

I keep seeing large spikes in my swf trying to send a url request. But these only appear in Firefox in OSX. I haven't tested in windows. Chrome (pepper and regular) and safari both work fine.  Also see large spikes when using extrnal interface. Any ideas on how to work with these and perhaps some best practices?
Function
Total Time (ms)
Sending URL requests
84
95%
    URL request timestamp
    URL request: <some_url>
    URL request ID: 25
Function
Self Time (ms)
Total Time (ms)
                ExternalInterface.call <static> (flash.external)
0
0%
97
100%
                    ExternalInterface._evalJS <static> (flash.external)
97
100%
97
100%
-nate

Michael, thank you for your detailed answer. I accept your suggestion about the issue related to sandbox api in IE9. Reducing concurent requests helped and was necessary for smooth flow of my app. However I believe this is an issue that should be targeted on flash player level not app code... I will consider filing a bug
I strongly disagree with your conclusion:
At the end of the day, if you can only make 6 or so concurrent requests at the same time, it's pointless to try and send more - either reduce the number of requests (preferably), or wait for the first batch to finish before sending some more.
http://forums.adobe.com/message/5714849#5714849 ... 92 requests
http://www.adobe.com/cz/ 117 requests
http://facebook.com 200 requests
http://maps.bing.com 100 requests in fullscreen mode when zooming, all of them concurrent ... this is basicaly what my app does

Similar Messages

  • Sends URL to my jsp or servlet then it redirects to an ext. site http post

    Hi,
    A user sends URL request to my jsp or servlet and then it redirects to an external site with a http or https post (not get). The post has a number of name/value parameters that are sent with it.
    How can I accomplish this?
    Thanks,
    John

    http://java.sun.com/products/jsp/tags/11/syntaxref11.fm9.html

  • Can we send a request without knowing the actual url..

    Tomcat is running at the back.
    I know the port no on which the server is running now.
    Can we send a request to the server even if we dont know the exact url
    for example I developed a form which authenticates the user, after authenticating the url will be some thing like this
    http://localhost:8090/temp/AdminRegister?uname=user?pass=user123now can the user login even without knowing the exact username and password by manipulating the url..

    it is your own risk to your applets to communicate with DBs because nobody suggests that. I agree with the Javascript story and the frames. It can be done but i thought he wanted to do that in one single page. And finally, i dont trust frames that much. I have seen many times the 404 error found on pages and because i use dynamic pages i have to make connection for each frame. and with throusands users being online it is bad for my server (traffic).

  • Error: 'Unable to send the request.  Verify the URL ... is valid and the...

    Hello,
    I'm attempting to connect to Essbase from Visual Studio 2005 with the use of the DataServer component.
    I'm using a URL;
    http://<myserver>:13080/aps/APS
    This URL seems to be valid if I plug it into a browser in that it returns a page listing the following information;
    Hyperion Provider Services
    Hyperion Provider Services - Release 9.3.1.0.0 Build 168
    ESS_ES_HOME: C:\Hyperion\AnalyticProviderServices
    domain file: C:\Hyperion\AnalyticProviderServices/data/domain.db
    essbase.properties: C:\Hyperion\AnalyticProviderServices/bin/essbase.properties
    log console enabled: false
    log file enabled: true
    log level: WARN
    log file name: C:/Hyperion/AnalyticProviderServices/bin/apsserver.log
    is trace enabled: false
    However, if I try and use this same URL in the DataServer component (using the 'Sign On' task) I'm shown the following error;
    'Unable to send the request. Verify the URL "http://<myserver>:13080/aps/APS" is valid and the servlet is running'
    So, any suggestions are much appreciated!
    Many thanks.

    Hi John,
    Yes, you're right. I've now installed the habnet server on the machine hosting Essbase and can access it via browser using;
    http://<myserver>::22080/EssbaseObjects/Servlet
    and this seems to be showing signs of life as it returns the following to the browser;
    =============================================================================
    Hyperion Habnet Servlet, Release 9.2.0
    Copyright 1997-1998, 2001-2006 Hyperion Solutions Corporation. All rights reserved.
    Hyperion Essbase Java API version 9.0.2
    Configuration:
    printXML=false
    printRequests=false
    connectionTimeout=300000
    checkInterval=60000
    forceMetadataCaching=false
    cacheTimeout=300000
    cacheInterval=60000
    EDSUrl=http://localhost:11080/eds/EssbaseEnterprise (optional)
    defaultEDSServer=localhost
    defaultDomain=Essbase
    defaultORBType=URL
    defaultPort=8080
    defaultUseConnectionPool=false
    defaultConnectionPerOperation=false
    defaultUseCluster=false
    defaultConnectionReadOnly=false
    netRetryCount=20
    netRetryInterval=1000
    testing configuration of required Java libraries:
    Essbase Java API (ess_japi.jar) *** OLDER VERSION ***
    Essbase Java API version detected - 9.0.0
    Java memory configuration:
    Maximum: 63 (Mb)
    Allocated: 31 (Mb)
    Free: 28 (Mb)
    XML (xerces.jar) is subject to:
    Apache Software License, Version 1.1
    Copyright (c) 1999-2001.
    The Apache Software Foundation.
    All rights reserved.
    SOAP (soap.jar) is subject to:
    Apache Software License, Version 2.0
    Copyright (c) 1999-2004.
    The Apache Software Foundation.
    All rights reserved.
    =============================================================================
    However.... when I try to connect using the DataServer I'm shown the same error message as beofre except for the change of URL. Can you remember if there were any other settings that needed to be made?
    I've also noticed the line above ' EDSUrl=http://localhost:11080/eds/EssbaseEnterprise (optional) ', this says 'the page cannot be displayed' if i try to access it from the habnet machine but I'm really not sure if this is relevant or not.
    Many thanks again for your time.
    Steve

  • Send a request to a conversation that has already been finished

    This error continually occurs. Any idea why?
              An attempt was made to send a request to conversation id []:169.254.17.244-b61346.100533c48f4.-7fea-gend.
              This is not a valid conversation id. The most common cause of this exception is an attempt to send a request to a conversation that has already been finished.
              Work around is to restart WLS and maybe this time it will not happen. WLS 8.1SP3.
              From: [email protected] ([email protected])
              Subject: Weblogic Tutorial Question - Need help
              This is the only article in this thread
              View: Original Format
              Newsgroups: weblogic.developer.interest.jms
              Date: 2004-09-17 09:12:33 PST
              Hi guys,
              I'm a Weblogic newbie. I have started working with Weblogic Workshop's
              Tutorial. I find them interesting and easy to follow. All was going
              well until I reached the Step 4 (Add a JMS Control). The url to this
              page is:
              http://edocs.bea.com/workshop/docs81/doc/en/workshop/reference/navResources.html
              After completing this tutorial to the end I get all the results
              mentioned, but I get additional error messages like these in my
              InvestigateTest.jws Web Service client:
              1095373714829
              investigate:creditScoreJMS:listener.onMessage
              External Service Callback investigate:creditScoreJMS:listener.onMessage
              Submitted at Friday, September 17, 2004 10:25:52 AM EDT
              Executable Request:Callback.onMessage
              ConversationNotFound Exception
              Submitted at Friday, September 17, 2004 10:25:52 AM EDT
              An attempt was made to send a request to conversation id 1095373714829.
              This is not a valid conversation id. The most common cause of this
              exception is an attempt to send a request to a conversation that has
              already been finished.
              Request Cancelled
              Submitted at Friday, September 17, 2004 10:25:52 AM EDT
              Processing Request
              Submitted at Friday, September 17, 2004 10:25:53 AM EDT
              Request Complete
              Submitted at Friday, September 17, 2004 10:25:53 AM EDT
              I cannot figure out why I'm getting these. I'm doing everything as
              described in the Tutorial. Can somebody tell me what I'm doing wrong.
              I would greatly appreciate.
              Thanks.
              Adnan

    hi
              We just encountered this problem while load testing using JMeter. While it may not be the same scenario, we have found that we can consistently trigger this error if:
              a) multiple threads from the same client are invoking the service (i.e. a JMeter using JavaSamplerClient can do this)
              b) the web service is conversational according to the polling design pattern recommended in the WLW doco: i.e.
              startQuery()(one-way) conversation phase = start
              checkQueryStatus() conversation phase = continue
              fetchQueryResponse()conversation phase = finish
              c) buffering is enabled for the startQuery() operation.
              d) the number of threads > 3 (might occur very infrequently <= 3 - cant remember)
              This is reproducable in our WLS/WLW 8.1 SP2/SP3 environment.
              With buffering enabled - errors occur
              With buffering not enabled - no errors
              On reflection, buffering isn't really needed for our usage so we removed it, however the errors might indicate a bug or unsupported use case
              Regards
              Jim Nicolson

  • How to send two request in the same connection with HttpURLConnection?

    As the title, I want to send two or more requests in the same connection with HttpsURLConnection..I wish all requests are in the same session.
    My code is as following:
    package test1;
    //import javax.net.ssl.*;
    import java.net.*;
    import java.io.*;
    public class httptest {
    public httptest() {
    public void test() {
    HttpURLConnection uc = null;
    String urlStr="";
    urlStr="http://172.16.245.151/test/page1.jsp";
    try {
    URL u = new URL(urlStr);
    uc = (HttpURLConnection) u.openConnection();
    uc.setRequestMethod("GET");
    uc.setDoOutput(true);
    // uc.connect();
    OutputStream out = uc.getOutputStream();
    out.flush();
    out.close();
    catch (Exception ex) {
    System.out.println(ex.getMessage());
    public static void main(String[] args) {
    httptest tt = new httptest();
    tt.test();
    The sample class just can send a request..Now we think of the sentence :uc = (HttpURLConnection) u.openConnection();
    Obviousely, a HttpURLConnection can just have a Object of the Class URL, and the Class URL have no setURL mothed. So I can't use a HttpURLConnection to send two request.
    I just want the HttpURLConnect is the same to IE...Do you understand what I mean?
    Any helps will be appreciated...

    As the title, I want to send two or more requests in the same connection with HttpsURLConnection..I wish all requests are in the same session.
    My code is as following:
    package test1;
    //import javax.net.ssl.*;
    import java.net.*;
    import java.io.*;
    public class httptest {
    public httptest() {
    public void test() {
    HttpURLConnection uc = null;
    String urlStr="";
    urlStr="http://172.16.245.151/test/page1.jsp";
    try {
    URL u = new URL(urlStr);
    uc = (HttpURLConnection) u.openConnection();
    uc.setRequestMethod("GET");
    uc.setDoOutput(true);
    // uc.connect();
    OutputStream out = uc.getOutputStream();
    out.flush();
    out.close();
    catch (Exception ex) {
    System.out.println(ex.getMessage());
    public static void main(String[] args) {
    httptest tt = new httptest();
    tt.test();
    The sample class just can send a request..Now we think of the sentence :uc = (HttpURLConnection) u.openConnection();
    Obviousely, a HttpURLConnection can just have a Object of the Class URL, and the Class URL have no setURL mothed. So I can't use a HttpURLConnection to send two request.
    I just want the HttpURLConnect is the same to IE...Do you understand what I mean?
    Any helps will be appreciated...

  • HealthCheck operation fails on mcsmgr.log and Error sending DAV request. HTTP code 600, status on Data transferservice.log

    Hi,
    I have a CAS, primary site and a DP.  On Site properties I have set client communication : HTTP or HTTPS  and PKI. on management point properties as well I have set Client communication as HTTPS PKI.
    1. On primary site Multicast_servicepoint status is "error": I checked the mcsmgr.log and found below details:
    Failed to send http request /SMS_MCS/.sms_mcs?op=healthcheck. Error 12030
    Call to HttpSendRequestSync failed for port 443 with 12030 error code.
    Health check operation failed, error code is 12030
    Health check operation failed, error code is 12030
    2. When I deploy any package to client it stuck in software center as "Downloading the information". no content has been getting copied.  I checked the log 'datatransferservice.log'  and found below error :
    "Successfully sent location services HTTPS failure message.
    Error sending DAV request. HTTP code 600, status ''
    GetDirectoryList_HTTP mapping original error 0x80072efe to 0x800704cf.
    GetDirectoryList_HTTP('https://myDPaddress.com:443/NOCERT_SMS_DP_SMSPKG$/CAS00028') failed with code 0x800704cf.
    Job {CFD64352-918B-4C1D-A9C4-9C52ABAC6524} reverted impersonation.
    Error retrieving manifest (0x800704cf).  Will attempt retry 1 in 30 seconds.
    Failed to send request to /NOCERT_SMS_DP_SMSPKG$/CAS00028 at host Mydpaddress, error 0x2efe
    [CCMHTTP] ERROR: URL=https://mydpaddress.com:443/NOCERT_SMS_DP_SMSPKG$/CAS00028, Port=443, Options=480, Code=12030, Text=ERROR_WINHTTP_CONNECTION_ERROR
    Raising event:
    instance of CCM_CcmHttp_Status
    ClientID = "GUID:41932A1A-ADDE-450F-8F16-22DC875D2E39";
    DateTime = "20141225182459.543000+000";
    HostName = "mydpaddress.comt";
    HRESULT = "0x80072efe";
    ProcessID = 7356;
    StatusCode = 600;
    ThreadID = 6936;
    Successfully sent location services HTTPS failure message.
    Error sending DAV request. HTTP code 600, status ''
    I think there is some issue with IIS configuration on site server or DP or on both. Please let me know a solution..
    Regards

    I have corrected the PKI certificate. still Issue not resolved.
    I checked further and found sms_mp_control_manager was stopped and was offline, Unable to communicate with component (error below)
    Unable to query the component.
    This is a child primary server. not on production yet.  Removing and adding MP will resolve the issue ? if yes what are the prerequesite you suggest. pls share any link .
    or any quick resolution you have ? please share...
    Log: mpmsi.lasterror
    Property(S): SMSCWSADSPATH = IIS://LocalHost/W3SVC/1
    Property(S): CCMSHAREMODE = 1
    MSI (s) (5C:EC) [08:22:19:157]: Note: 1: 1729 
    MSI (s) (5C:EC) [08:22:19:157]: Product: ConfigMgr Management Point -- Configuration failed.
    MSI (s) (5C:EC) [08:22:19:157]: Windows Installer reconfigured the product. Product Name: ConfigMgr Management Point. Product Version: 5.00.7804.1000. Product Language: 1033. Manufacturer: Microsoft Corporation. Reconfiguration success or error status:
    1603.
    MSI (s) (5C:EC) [08:22:19:368]: Deferring clean up of packages/files, if any exist
    MSI (s) (5C:EC) [08:22:19:368]: MainEngineThread is returning 1603
    MSI (s) (5C:B0) [08:22:19:372]: RESTART MANAGER: Session closed.
    MSI (s) (5C:B0) [08:22:19:372]: No System Restore sequence number for this installation.
    === Logging stopped: 12/26/2014  8:22:19 ===
    MSI (s) (5C:B0) [08:22:19:375]: User policy value 'DisableRollback' is 0
    MSI (s) (5C:B0) [08:22:19:375]: Machine policy value 'DisableRollback' is 0
    MSI (s) (5C:B0) [08:22:19:375]: Incrementing counter to disable shutdown. Counter after increment: 0
    MSI (s) (5C:B0) [08:22:19:375]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts 3: 2 
    MSI (s) (5C:B0) [08:22:19:376]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts 3: 2 
    MSI (s) (5C:B0) [08:22:19:376]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied.  Counter after decrement: -1
    MSI (s) (5C:B0) [08:22:19:377]: Destroying RemoteAPI object.
    MSI (s) (5C:00) [08:22:19:377]: Custom Action Manager thread ending.
    MSI (c) (30:B0) [08:22:19:378]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied.  Counter after decrement: -1
    MSI (c) (30:B0) [08:22:19:379]: MainEngineThread is returning 1603
    === Verbose logging stopped: 12/26/2014  8:22:19 ===

  • How to send  a request to servlet from a java client.

    I called a servlet from java client using URL object.
    I could establish a connection with server and display
    the content(like req.getservername etc.,)
    of servlet on client side(DOS prompt).
    My question is how do i send a request to servlet from the client.
    let me say, i have to send a value as 10 to servlet and do some processing
    ( like 10*2 = 20) display the output (20) on client side..
    It will be appreciated if u can mention the syntax...

    just add the query string to the url you use to create the URL object from.

  • How to send a request and get a response through xml

    How to send a request and get a response through xml files?

    This is the code that works for me. Hope you find it useful.
         public static String sendHttpGetRequest(String endpoint, String requestParameters){
              String result = null;
              // Send a GET request to the servlet
              try{
                   // Send data
                   String urlStr = endpoint;
                   if (requestParameters != null && requestParameters.length () > 0){
                        urlStr += "?" + requestParameters;
                   URL url = new URL(urlStr);
                   HttpURLConnection conn = (HttpURLConnection) url.openConnection();
                   conn.setRequestProperty("Accept", "application/xml");
                   // Get the response
                   BufferedReader rd = new BufferedReader(new InputStreamReader(conn.getInputStream()));
                   StringBuffer sb = new StringBuffer();
                   String line;
                   while ((line = rd.readLine()) != null){
                        sb.append(line);
                   rd.close();
                   result = sb.toString();
              } catch (Exception e){
                   e.printStackTrace();
              return result;
         }

  • Problem while sending/Receiving request using the HttpURLConnection obj

    Hi,
    We are facing the problem while passing the request in Weblogic.
    Looks like there is some problem with Weblogic while sending/Receiving the request using the HttpURLConnection object.
    Currently we are migrating 2 applications to WebLogic. Application1 to application2 request should pass.
    Below is some example we tried:
    "When we send a request to our code using the SSOAdaptor code (which handles the request/session in our application) which is on the SunOne server the request parameters are received by our code successfully. And also in Create User Functionality of application1 we are sending a request to webpass(which is on Sunone Server) using the HttpURLConnection object and the SOAP request is received successfully by the Webpass."
    Looks like when we send request (using HttpURLConnection) from a server other than Weblogic to a servlet in a Weblogic the request parameters are received with out issues.
    Where as when the request is sent from WebLogic to WebLogic the request parameters are missing some how.
    Is there any issue in Weblogic? Please helpus on this.
    Thanks,
    Nagesh
    Edited by: user9307541 on Mar 15, 2010 5:08 AM

    Hi,
    Please find below scenario for testing.
    We have tested the SSOAdaptor code (it is the fucntion name which will send the data from source) locally by hittiing the WPS adaptor URL in a Java client program(TestRequest.java) and the request parameters were reaching the WPS Adapter successfully.
    Then we have written two test servlets to test the communication between SSOAdaptor(TestServlet.java) and WPS adaptor(WPSServlet.java).
    Functionality of TestSevlet: It is sending a request to WPSServelt similar to the way we are doing it in SSOAdaptor.
    Functionality of WPSServlet: It will receive the request parameters and write the parameter Map to console.
    We have deployed and these two servlets(in a single webapplication) on Tomcat server and the request parameters are reaching the WPSServlet successfully.
    Output on Tomcat server:
    before sending request
    **********************Inside WPS Servlet -- the request Map is:{TypeAcc=[Ljava.lang.String;@14e3f41, ServiceName=[Ljava.lang.String;@1acd47, GMEPortalUserID=[Ljava.lang.String;@19b04e2, UserID=[Ljava.lang.String;@5dcec6, Country=[Ljava.lang.String;@b25b9d}
    after sending request
    After this we have deployed these two servlets (with in a single webapplication) on the Weblogic server in Dev machine(path: /apps/usmport/domains/usmport/servers/usmport_admin/upload/ssoAdaptor/WEB-INF/classes/com/gm/gmeportal/security/adaptor) and
    now the request parameters are not reaching the WPSServlet.
    Output on Weblogic Server:
    before sending request
    **********************Inside WPS Servlet -- the request Map is:{}
    after sending request
    Looks like there is some problem with Weblogic while sending/Receiving the request using the HttpURLConnection object.
    When we send a request to WPSAdaptor using the Old SSOAdaptor code which is on the SunOne server the request parameters are received by WPS successfully. And also in Create User Functionality of Portal we are sending a request to webpass(which is on Sunone Server) using the HttpURLConnection object and the SOAP request is received successfully by the Webpass.
    Looks like when we send request (using HttpURLConnection) from a server other than Weblogic to a servlet in a Weblogic the request parameters are received with out issues. Where as when the request is sent from weblogic to weblogic the request parameters are missing some how.
    Please find below javs source code used to test this:
    TestRequest.java
    import java.io.BufferedReader;
    import java.io.DataOutputStream;
    import java.io.InputStream;
    import java.io.InputStreamReader;
    import java.io.OutputStream;
    import java.net.HttpURLConnection;
    import java.net.MalformedURLException;
    import java.net.URL;
    public class TestRequest {
         * @param args
         public static void main(String[] args) throws Exception{
              // TODO Auto-generated method stub
              excutePost("http://localhost:8080/Testing/TestServlet", "GMEPortalUserID=captest.wss@it0555&UserID=bl1133&Country=it&TypeAcc=256&ServiceName=Logon");
              //System.out.println("********** Now the request is from SSO *****************");
              //excuteGet("http://10.156.0.173:7013/channel21/wpsadapter", "GMEPortalUserID=captest.wss@it0554&UserID=bl1133&Country=it&TypeAcc=256&ServiceName=Logon");
         public static String excutePost(String targetURL, String urlParameters)
         URL url;
         HttpURLConnection connection = null;
         try {
         //Create connection
         url = new URL(targetURL);
         connection = (HttpURLConnection)url.openConnection();
         connection.setRequestMethod("POST");
         connection.setRequestProperty("Content-Type",
         "application/x-www-form-urlencoded");
         connection.setRequestProperty("Content-Length", "" +
         Integer.toString(urlParameters.getBytes().length));
         connection.setRequestProperty("Content-Language", "en-US");
         connection.setUseCaches (false);
         connection.setDoInput(true);
         connection.setDoOutput(true);
         //Send request
         DataOutputStream wr = new DataOutputStream (
         connection.getOutputStream ());
         wr.writeBytes (urlParameters);
         wr.flush ();
         wr.close ();
         //Get Response     
         InputStream is = connection.getInputStream();
         BufferedReader rd = new BufferedReader(new InputStreamReader(is));
         String line;
         StringBuffer response = new StringBuffer();
         while((line = rd.readLine()) != null) {
         response.append(line);
         response.append('\r');
         rd.close();
         System.out.println("Response is:" + response);
         return response.toString();
         } catch (Exception e) {
         e.printStackTrace();
         return null;
         } finally {
         if(connection != null) {
         connection.disconnect();
         public static String excuteGet(String targetURL, String urlParameters) throws Exception
              URL url = new URL(targetURL);
              HttpURLConnection httpurlconnection =
                   (HttpURLConnection) url.openConnection();
              /*httpurlconnection.setRequestProperty(
                   "cookie",
                   constructRequestParams(httpservletrequest.getCookies()));*/
              httpurlconnection.setDoOutput(true);
              httpurlconnection.setDoInput(true);
              httpurlconnection.setRequestProperty(
                   "Content-length",
                   String.valueOf(urlParameters.length()));
              OutputStream outputstream = httpurlconnection.getOutputStream();
              outputstream.write(urlParameters.getBytes());
              outputstream.flush();
              //Get Response     
              try{
         InputStream is = httpurlconnection.getInputStream();
         BufferedReader rd = new BufferedReader(new InputStreamReader(is));
         String line;
         StringBuffer response = new StringBuffer();
         while((line = rd.readLine()) != null) {
         response.append(line);
         response.append('\r');
         rd.close();
         System.out.println("Response from SSO is:" + response);
         return response.toString();
         } catch (Exception e) {
         e.printStackTrace();
         return null;
         } finally {
         if(httpurlconnection != null) {
              httpurlconnection.disconnect();
    TestServlet.java
    import java.io.BufferedReader;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.InputStreamReader;
    import java.io.OutputStream;
    import java.net.HttpURLConnection;
    import java.net.URL;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    * Servlet implementation class TestServlet
    public class TestServlet extends HttpServlet {
         private static final long serialVersionUID = 1L;
    * Default constructor.
    public TestServlet() {
    // TODO Auto-generated constructor stub
         * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
         protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
              // TODO Auto-generated method stub
              doPost(request,response);
         * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
         protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
              // TODO Auto-generated method stub
              //System.out.println("********************** the request Map is:" + request.getParameterMap());
              try {
                   System.out.println("before sending request");
                   excuteGet("http://localhost:7003/ssoAdaptor/WPSServlet", "GMEPortalUserID=captest.wss@it0554&UserID=bl1133&Country=it&TypeAcc=256&ServiceName=Logon");
                   System.out.println("after sending request");
              } catch (Exception e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
         public String excuteGet(String targetURL, String urlParameters) throws Exception
              URL url = new URL(targetURL);
              HttpURLConnection httpurlconnection =
                   (HttpURLConnection) url.openConnection();
              /*httpurlconnection.setRequestProperty(
                   "cookie",
                   constructRequestParams(httpservletrequest.getCookies()));*/
              httpurlconnection.setDoOutput(true);
              httpurlconnection.setDoInput(true);
              httpurlconnection.setRequestProperty(
                   "Content-length",
                   String.valueOf(urlParameters.length()));
              OutputStream outputstream = httpurlconnection.getOutputStream();
              outputstream.write(urlParameters.getBytes());
              outputstream.flush();
              //Get Response     
              try{
         InputStream is = httpurlconnection.getInputStream();
         BufferedReader rd = new BufferedReader(new InputStreamReader(is));
         String line;
         StringBuffer response = new StringBuffer();
         while((line = rd.readLine()) != null) {
         response.append(line);
         response.append('\r');
         rd.close();
         //System.out.println("Response from SSO is:" + response);
         return response.toString();
         } catch (Exception e) {
         e.printStackTrace();
         return null;
         } finally {
         if(httpurlconnection != null) {
              httpurlconnection.disconnect();
    WPSServlet.java
    import java.io.IOException;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    * Servlet implementation class WPSServlet
    public class WPSServlet extends HttpServlet {
         private static final long serialVersionUID = 1L;
    * @see HttpServlet#HttpServlet()
    public WPSServlet() {
    super();
    // TODO Auto-generated constructor stub
         * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
         protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
              // TODO Auto-generated method stub
              System.out.println("**********************Inside WPS Servlet -- the request Map is:" + request.getParameterMap());
         * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
         protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
              // TODO Auto-generated method stub
              doGet(request,response);
    Thanks,
    Nagesh

  • SCCM 2012 - Error sending DAV request. HTTP code 401, status 'Unauthorized'

    Hi everyone!
    I have a SCCM 2012 install with SQL 2008 R2 RU6 on it. All roles on the same server.
    Application deployment was working last week and suddently, today, it's not working anymore.
    Client fail to download applications. When I see the log "dataTransfertService.log" I got:
    <![LOG[Enumerating DTS jobs for logged on user 'S-1-5-21-3498061407-3801314532-3722532443-1799'.]LOG]!><time="16:45:51.388-120" date="07-23-2012" component="DataTransferService" context="" type="1" thread="3536" file="dtslogon.cpp:135">
    <![LOG[Enumeration of DTS jobs for logged on user 'S-1-5-21-3498061407-3801314532-3722532443-1799' is complete.]LOG]!><time="16:45:51.878-120" date="07-23-2012" component="DataTransferService" context="" type="1" thread="3536" file="dtslogon.cpp:151">
    <![LOG[Enumerating DTS jobs for helper user 'S-1-5-21-3498061407-3801314532-3722532443-1799'.]LOG]!><time="16:45:51.878-120" date="07-23-2012" component="DataTransferService" context="" type="1" thread="3536" file="dtslogon.cpp:154">
    <![LOG[Enumeration of DTS jobs for helper user 'S-1-5-21-3498061407-3801314532-3722532443-1799' is complete.]LOG]!><time="16:45:51.939-120" date="07-23-2012" component="DataTransferService" context="" type="1" thread="3536" file="dtslogon.cpp:170">
    <![LOG[UpdateURLWithTransportSettings(): OLD URL - http://xxx.com/SMS_DP_SMSPKG$/Content_1173b7a8-9bbf-42cc-8b0f-abd1c3f3065c.1]LOG]!><time="16:48:31.738-120" date="07-23-2012" component="DataTransferService" context="" type="1" thread="5616" file="ccmutillib.cpp:3083">
    <![LOG[UpdateURLWithTransportSettings(): NEW URL - http://xxx.com:80/SMS_DP_SMSPKG$/Content_1173b7a8-9bbf-42cc-8b0f-abd1c3f3065c.1]LOG]!><time="16:48:31.738-120" date="07-23-2012" component="DataTransferService" context="" type="1" thread="5616" file="ccmutillib.cpp:3095">
    <![LOG[DTSJob {451ACA72-8FCC-4083-B7B5-C4C68D5E5786} created to download from 'http://xxx.com:80/SMS_DP_SMSPKG$/Content_1173b7a8-9bbf-42cc-8b0f-abd1c3f3065c.1' to 'C:\WINDOWS\ccmcache\3f'.]LOG]!><time="16:48:31.816-120" date="07-23-2012" component="DataTransferService" context="" type="1" thread="5616" file="datatransferservice.cpp:186">
    <![LOG[DTSJob {451ACA72-8FCC-4083-B7B5-C4C68D5E5786} in state 'DownloadingManifest'.]LOG]!><time="16:48:31.816-120" date="07-23-2012" component="DataTransferService" context="" type="1" thread="2432" file="dtsjob.h:157">
    <![LOG[[CCMHTTP] ERROR: URL=http://xxx.com:80/SMS_DP_SMSPKG$/Content_1173b7a8-9bbf-42cc-8b0f-abd1c3f3065c.1, Port=80, Options=224, Code=0, Text=CCM_E_BAD_HTTP_STATUS_CODE]LOG]!><time="16:48:32.281-120" date="07-23-2012" component="DataTransferService" context="" type="1" thread="4204" file="ccmhttperror.cpp:291">
    <![LOG[Raising event:
    instance of CCM_CcmHttp_Status
    ClientID = "GUID:4D48BE30-A5BE-40C1-A946-B0773DE7C060";
    DateTime = "20120723144832.297000+000";
    HostName = "xxx.com";
    HRESULT = "0x87d0027e";
    ProcessID = 2236;
    StatusCode = 401;
    ThreadID = 4204;
    ]LOG]!><time="16:48:32.297-120" date="07-23-2012" component="DataTransferService" context="" type="1" thread="4204" file="event.cpp:729">
    <![LOG[Successfully sent location services HTTP failure message.]LOG]!><time="16:48:32.312-120" date="07-23-2012" component="DataTransferService" context="" type="1" thread="4204" file="ccmhttperror.cpp:395">
    <![LOG[Error sending DAV request. HTTP code 401, status 'Unauthorized']LOG]!><time="16:48:32.312-120" date="07-23-2012" component="DataTransferService" context="" type="3" thread="4204" file="util.cpp:629">
    <![LOG[GetDirectoryList_HTTP('http://xxx.com:80/SMS_DP_SMSPKG$/Content_1173b7a8-9bbf-42cc-8b0f-abd1c3f3065c.1') failed with code 0x80070005.]LOG]!><time="16:48:32.312-120" date="07-23-2012" component="DataTransferService" context="" type="3" thread="4204" file="util.cpp:688">
    <![LOG[Job {451ACA72-8FCC-4083-B7B5-C4C68D5E5786} impersonating Network Access Account.]LOG]!><time="16:48:32.825-120" date="07-23-2012" component="DataTransferService" context="" type="1" thread="4204" file="netaccessaccount.cpp:429">
    <![LOG[[CCMHTTP] ERROR: URL=http://xxx.com:80/SMS_DP_SMSPKG$/Content_1173b7a8-9bbf-42cc-8b0f-abd1c3f3065c.1, Port=80, Options=224, Code=0, Text=CCM_E_BAD_HTTP_STATUS_CODE]LOG]!><time="16:48:32.887-120" date="07-23-2012" component="DataTransferService" context="" type="1" thread="4204" file="ccmhttperror.cpp:291">
    <![LOG[Raising event:
    instance of CCM_CcmHttp_Status
    ClientID = "GUID:4D48BE30-A5BE-40C1-A946-B0773DE7C060";
    DateTime = "20120723144832.887000+000";
    HostName = "xxx.com";
    HRESULT = "0x87d0027e";
    ProcessID = 2236;
    StatusCode = 401;
    ThreadID = 4204;
    ]LOG]!><time="16:48:32.887-120" date="07-23-2012" component="DataTransferService" context="" type="1" thread="4204" file="event.cpp:729">
    <![LOG[Successfully sent location services HTTP failure message.]LOG]!><time="16:48:32.902-120" date="07-23-2012" component="DataTransferService" context="" type="1" thread="4204" file="ccmhttperror.cpp:395">
    <![LOG[Error sending DAV request. HTTP code 401, status 'Unauthorized']LOG]!><time="16:48:32.902-120" date="07-23-2012" component="DataTransferService" context="" type="3" thread="4204" file="util.cpp:629">
    <![LOG[GetDirectoryList_HTTP('http://xxx.com:80/SMS_DP_SMSPKG$/Content_1173b7a8-9bbf-42cc-8b0f-abd1c3f3065c.1') failed with code 0x80070005.]LOG]!><time="16:48:32.902-120" date="07-23-2012" component="DataTransferService" context="" type="3" thread="4204" file="util.cpp:688">
    <![LOG[Job {451ACA72-8FCC-4083-B7B5-C4C68D5E5786} reverted impersonation.]LOG]!><time="16:48:32.902-120" date="07-23-2012" component="DataTransferService" context="" type="1" thread="4204" file="netaccessaccount.h:93">
    <![LOG[DTSJob {451ACA72-8FCC-4083-B7B5-C4C68D5E5786} in state 'Cancelled'.]LOG]!><time="16:48:33.011-120" date="07-23-2012" component="DataTransferService" context="" type="1" thread="5616" file="dtsjob.h:157">
    <![LOG[DTSJob {451ACA72-8FCC-4083-B7B5-C4C68D5E5786} cancelled by client.]LOG]!><time="16:48:33.011-120" date="07-23-2012" component="DataTransferService" context="" type="1" thread="5616" file="dtsjob.cpp:2771">
    I already verified every single permissions, NAA is configured and has correct rights. I really don't understand what has changed...
    any suggestion???
    Thank you very much!

    SMS_DP_SMSPKG$ has Windows Authentication Enabled.
    IIS Logs:
    2012-07-23 15:10:08 10.28.80.98 CCM_POST /ccm_system/request - 80 - 10.28.81.79 ccmhttp 200 0 0 339
    2012-07-23 15:11:38 10.28.80.98 CCM_POST /ccm_system/request - 80 - 10.28.81.52 ccmhttp 200 0 0 38
    2012-07-23 15:11:38 10.28.80.98 CCM_POST /ccm_system/request - 80 - 10.28.81.52 ccmhttp 200 0 0 166
    2012-07-23 15:11:38 10.28.80.98 PROPFIND /SMS_DP_SMSPKG$/Content_1173b7a8-9bbf-42cc-8b0f-abd1c3f3065c.1 - 80 - 10.28.81.52 SMS+CCM+5.0 401 2 5 1
    2012-07-23 15:11:39 10.28.80.98 PROPFIND /SMS_DP_SMSPKG$/Content_1173b7a8-9bbf-42cc-8b0f-abd1c3f3065c.1 - 80 - 10.28.81.52 SMS+CCM+5.0 401 2 5 0
    2012-07-23 15:11:39 10.28.80.98 PROPFIND /SMS_DP_SMSPKG$/Content_1173b7a8-9bbf-42cc-8b0f-abd1c3f3065c.1 - 80 - 10.28.81.52 SMS+CCM+5.0 401 1 3221225581 11
    2012-07-23 15:11:39 10.28.80.98 CCM_POST /ccm_system/request - 80 - 10.28.81.52 ccmhttp 200 0 0 384
    2012-07-23 15:13:01 fe80::31df:ba5:7c1:caf6%11 GET /SMS_MP/.sms_aut MPLIST 80 - fe80::31df:ba5:7c1:caf6%11 SMS_MP_CONTROL_MANAGER 200 0 0 4
    2012-07-23 15:13:11 10.28.80.98 CCM_POST /ccm_system_windowsauth/request - 80 - 10.29.73.101 ccmhttp 401 2 5 6
    2012-07-23 15:14:01 10.28.80.98 CCM_POST /ccm_system/request - 80 - 10.28.82.72 ccmhttp 200 0 0 23
    2012-07-23 15:15:40 10.28.80.98 CCM_POST /ccm_system/request - 80 - 10.28.81.52 ccmhttp 200 0 0 348
    2012-07-23 15:15:55 10.28.80.98 CCM_POST /ccm_system/request - 80 - 10.28.81.79 ccmhttp 200 0 0 363
    2012-07-23 15:16:12 10.28.80.98 CCM_POST /ccm_system/request - 80 - 10.29.73.101 ccmhttp 200 0 0 393
    2012-07-23 15:17:06 10.28.80.98 CCM_POST /ccm_system_windowsauth/request - 80 - 10.28.81.79 ccmhttp 401 2 5 0
    In "ContentTransferManager.log" i see that error:
    <![LOG[Starting CTM job {1C23F5FF-8ED3-43D2-91ED-169F82A24E89}.]LOG]!><time="17:11:38.999-120" date="07-23-2012" component="ContentTransferManager" context="" type="1" thread="5400" file="ctmjob.cpp:2980">
    <![LOG[Created CTM job {1C23F5FF-8ED3-43D2-91ED-169F82A24E89} for user S-1-5-18]LOG]!><time="17:11:39.030-120" date="07-23-2012" component="ContentTransferManager" context="" type="1" thread="5400" file="ctmanager.cpp:487">
    <![LOG[Created and Sent Location Request '{996973D0-911C-4929-BE9D-39CB4D759265}' for package Content_1173b7a8-9bbf-42cc-8b0f-abd1c3f3065c]LOG]!><time="17:11:39.092-120" date="07-23-2012" component="ContentTransferManager" context="" type="1" thread="5332"
    file="ccmpkglocation.cpp:83">
    <![LOG[CTM job {1C23F5FF-8ED3-43D2-91ED-169F82A24E89} entered phase CCM_DOWNLOADSTATUS_DOWNLOADING_DATA]LOG]!><time="17:11:39.092-120" date="07-23-2012" component="ContentTransferManager" context="" type="1" thread="5332" file="ctmjob.cpp:1432">
    <![LOG[Queued location request '{996973D0-911C-4929-BE9D-39CB4D759265}' for CTM job '{1C23F5FF-8ED3-43D2-91ED-169F82A24E89}'.]LOG]!><time="17:11:39.139-120" date="07-23-2012" component="ContentTransferManager" context="" type="1" thread="5332" file="ctmjob.cpp:151">
    <![LOG[Persisted locations for CTM job {1C23F5FF-8ED3-43D2-91ED-169F82A24E89}:
     (LOCAL) <a href="http://xxx.com/SMS_DP_SMSPKG$/Content_1173b7a8-9bbf-42cc-8b0f-abd1c3f3065c.1]LOG]!><time="17:11:39.452-120">http://xxx.com/SMS_DP_SMSPKG$/Content_1173b7a8-9bbf-42cc-8b0f-abd1c3f3065c.1]LOG]!><time="17:11:39.452-120" date="07-23-2012"
    component="ContentTransferManager" context="" type="1" thread="5392" file="ctmjob.cpp:1894">
    <![LOG[CTM job {1C23F5FF-8ED3-43D2-91ED-169F82A24E89} (corresponding DTS job {D22196C4-A803-42F4-B4FD-6F5FA777A778}) started download from 'http://xxx.com/SMS_DP_SMSPKG$/Content_1173b7a8-9bbf-42cc-8b0f-abd1c3f3065c.1' for full content download.]LOG]!><time="17:11:39.514-120"
    date="07-23-2012" component="ContentTransferManager" context="" type="1" thread="5392" file="ctmjob.cpp:413">
    <![LOG[CTM job {1C23F5FF-8ED3-43D2-91ED-169F82A24E89} entered phase CCM_DOWNLOADSTATUS_DOWNLOADING_DATA]LOG]!><time="17:11:39.577-120" date="07-23-2012" component="ContentTransferManager" context="" type="1" thread="5188" file="ctmjob.cpp:1432">
    <![LOG[CTM job {1C23F5FF-8ED3-43D2-91ED-169F82A24E89} encountered error 0x80070005 during download ('Error processing manifest.')- The error maps to denied access.]LOG]!><time="17:11:40.217-120" date="07-23-2012" component="ContentTransferManager"
    context="" type="3" thread="5400" file="ctmjob.cpp:2489">

  • Weblogic War application sending the requests every 3 minuts

    HI,
    There are 2 managed servers in one unix box.
    i have one war application deployed in cluster level. This war application will search the logs and will give particular content as a result.
    The Jsp page will send the request and it is able to get the correct results within 3 minutes. if there are so many logs, it is giving unrealiable results as war application is sending the request again and in the interval of 3 mins.
    Request parametes are get by servlet and this servlet will create the unix shellscript in background and it will execute in a box.
    0-3 mins 1st .sh creating and executing..
    3-6 mins 2nd .sh creats and starts the execution, once the 1 one is completed...
    its becomes infinite loop...
    after some time Browser is going to diagnostic error state..
    to avoid this i tried to give some parameters in weblogic.xml file...but its not working..
    please fine below weblogic.xml file
    ====================================
    <?xml version='1.0' encoding='UTF-8'?>
    <weblogic-web-app xmlns="http://xmlns.oracle.com/weblogic/weblogic-web-app" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.oracle.com/weblogic/weblogic-web-app http://xmlns.oracle.com/weblogic/weblogic-web-app/1.2/weblogic-web-app.xsd">
    <session-descriptor>
    </session-descriptor>
    <jsp-descriptor>
    <page-check-seconds>-1</page-check-seconds>
    <debug>true</debug>
    </jsp-descriptor>
    <container-descriptor>
    <resource-reload-check-secs>-1</resource-reload-check-secs>
    <servlet-reload-check-secs>-1</servlet-reload-check-secs>
    <prefer-web-inf-classes>true</prefer-web-inf-classes>
    </container-descriptor>
    <logging>
    <log-filename>/wls_domains/b2borap2/application_MT/logs/messagetracker.log</log-filename>
    </logging>
    </weblogic-web-app>
    =======================================================
    and web.xml file is
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:javaee="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
    <listener>
    <listener-class>
    com.tm.messagetracker.listeners.MTrackerSession
    </listener-class>
    </listener>
    <servlet>
    <servlet-name>Controller</servlet-name>
    <servlet-class>com.tm.messagetracker.Controller</servlet-class>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
    <servlet-name>Controller</servlet-name>
    <url-pattern>*.do</url-pattern>
    </servlet-mapping>
    <session-config>
    <session-timeout>30</session-timeout>
    </session-config>
    <mime-mapping>
    <extension>txt</extension>
    <mime-type>text/plain</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>html</extension>
    <mime-type>text/html</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>htm</extension>
    <mime-type>text/html</mime-type>
    </mime-mapping>
    <welcome-file-list>
    <welcome-file>index.jsp</welcome-file>
    <welcome-file>index.html</welcome-file>
    </welcome-file-list>
    </web-app>
    =========================================
    anyone please help me on above......Thanks in advance..

    How is it related to Oracle B2B? If you need help on Weblogic front then please post your query in Weblogic Webapp forum -
    WebLogic Server - WebApp / Servlet / JSP / Plugin
    Regards,
    Anuj

  • Problem sending http request

    I have a Java program that creates a url from a String, then uses the openConnection method of URLConnection to send the request to a web server. The exact same Url string works fine from my browser, but the Java program throws a java.io.FileNotFoundException. Other url's work OK.
    Any pointers as to what could cause this are appreciated.

    See if anything in http://forum.java.sun.com/thread.jsp?forum=4&thread=135019 helps you.

  • Send Search request to SearchEngine

    Hi,
    I want to write an application in Java, which sends a search request to e.g. Yahoo and evaulates the result.
    How can I send this request?
    One solution:
    URL url = new URL("http://de.search.yahoo.com/search?p=wunsch&fr=yfp-t-501&ei=UTF-8&meta=vl%3D");
    BufferedReader in = new BufferedReader(new InputStreamReader(url.openStream(), "UTF-8"));With these 2 lines I get the an result, but the html code is encoded in ISO-8859-1 and it contains special signs like the EURO sign. (�)
    It is not possible to work with this string, because any XML or HTTP parser throws this Exception an stopps working:
    An invalid XML character (Unicode: 0x0) was found in the element content of the document.
    Changing the Encoding by using the URLEncoder / URLDecoder classes does not work.
    How can I remove the special signs, or how can I change the signs coding to valid UTF-8?
    Another solution for the search request could be:
    URL url = new URL("http://de.search.yahoo.com:80/");
    URLConnection conn = url.openConnection();
    conn.setDoOutput(true);
    OutputStreamWriter wr = new OutputStreamWriter(conn.getOutputStream(), "UTF-8");
    wr.write("GET /search?p=wunsch&ei=ISO-8859-1&fr=yfp-t-501&x=wrt&meta=vl%3D HTTP/1.0\r\n");
    wr.write("Host: de.search.yahoo.com\r\n");
    wr.write("Accept: text/html, text/plain, text/css, text/sgml, */*;q=0.01\r\n");
    wr.write("Accept-Encoding: gzip\r\n");
    wr.write("Accept-Language: en\r\n");
    wr.write("User-Agent: Lynx/2.8.6rel.4 libwww-FM/2.14 SSL-MM/1.4.1 GNUTLS/1.6.2\r\n");
    wr.write("\r\n");
    wr.flush();
    BufferedReader in = new BufferedReader(new InputStreamReader(conn.getInputStream()));But with this HTTP Request I only get the startpage of Yahoo and not the resultpage.
    Please can someony help me... I don't know, how to fix the problem...
    Thanks.

    Actually, the page you reach is encoded in UTF-8, not ISO-8859-1.
    Your problem is different: you can not parse HTML with an XML parser. Use an HTML parser for this.

  • Help: Sending HTTPService request using POST to a php script

    Hello all,
    I need help in learning the proper method of communicating to php scripts from flex 3. I am very new to flex 3, php and web development. Thanks!
    What I am trying to do is as follows:
    1. User drags and drops a few items in a list control
    2. user clicks a button to send these keywords to server php script
    3. server will form a query based on the words sent and retrieve records and send them back
    Here is what I have done so far:
    1. When I send a request to server without any parameters, I amable to receive the request and query the database and send results in xml format
    current issues I am facing:
    1. I am gathering the list of entries in list control as follows:
    <*** this function is callled when user decides to send request to server ***>private function startsearch():void {
       var i:int;
       var myAC:ArrayCollection = ArrayCollection(SelCtypes_id.dataProvider);
       var nct:XML = new XML("<contenttypes></contenttypes>");
       // add contenttype child now
       for (i = 0; i<myAC.length; i++) {
        nct.appendChild(XML(<contenttype>{myAC[i].toString()}</contenttype>));
       var params:Object = new Object();
       params.contenttypes = nct.toXMLString();
       getsearchresults.send(params);
    <*** my http service entry****>
      <mx:HTTPService id="getsearchresults"
       method="post"
      url="http://localhost/search_xml.php"
      result="handlesearchresultsXml(event)"
      contentType="application/xml" />
    This is what I see in flex debugger just when the request is sent out:
    -> just before gersearchresults.send(params) call:
    params.contenttypes = "<contenttypes>
      <contenttype>AVI</contenttype>
      <contenttype>SWF</contenttype>
    </contenttypes>"
    <*** within the HTTPrequest send function, I see th following in debugger ***>
    message.contentType="application/xml"
    message.body = paramsToSend shows "<contenttypes>&lt;contenttypes&gt;
    &lt;contenttype&gt;AVI&lt;/contenttype&gt;
    &lt;contenttype&gt;SWF&lt;/contenttype&gt;
    &lt;/contenttypes&gt;</contenttypes>"
    This looks like my XML object is again formatted by an out <contenttypes> tag and the string is converted to be HTML safe (i.e. &lt, &gt notation).
    It looks like I am not doing something right with my params formation to XML and HTTPservice is reformatting it to be some form of XML (I do not know XML well either :-)
    My questions:
    1. What am I doing wrong?
    2. If there is a good example where I can send multiple parameters from flex client to php server and get data back where the request parameters will beof the form...
    <query>
    <type1>
         <type1val>value1</type1val>
         <type1val>value2</type1val>
    </type1>
    <type2>
         <type2val>value3</type2val>
         <type2val>value4</type2val>
    </type2>
    </query>
    Thanks for your help!

    Hi, I'm having a problem with a similiar issue :/
    I'm getting the error #1010 (A term is undefined and has no properties):
    at flexGraph/httpResultHandlerUserInfo()
    at flexGraph/__userInfoXML_result()
    etc.
    I removed some parts of the code so it's easier to read, if you can help me. I'm trying to populate a datagrid with info from a database, according to the alias I choose in the ComboBox. I get the error when I pick an alias from the ComboBox.
    <mx:Script>
         <![CDATA[
         import mx.collections.ArrayCollection;
         import mx.rpc.events.FaultEvent;
         import mx.rpc.events.ResultEvent;
         import mx.events.DropdownEvent;
         [Bindable] private var usersInfo:ArrayCollection;
         private function httpResultHandlerUserInfo(event:ResultEvent):void{
              usersInfo = event.result.users.user;
         private function chooseUserCB(event:DropdownEvent):void{
              userInfoXML.send();
    ]]>
    <mx:HTTPService id="userInfoXML" url="http://www.mysecondplace.org/flex/userInfo.php"
    result="httpResultHandlerUserInfo(event)"
    useProxy="false" method="POST">
    <mx:request xmlns=""><alias>{usersAliasCB.selectedItem.alias}</alias></mx:request>
    </mx:HTTPService>
    <mx:ComboBox id="usersAliasCB"
    x="10" y="10"
    labelField="alias"
    close="chooseUserCB(event)"/>
    <mx:DataGrid id="testing"
    x="10" y="100"
    dataProvider="{usersInfo}"/>
    Here's an example from the PHP file:
    $query_user = "SELECT * FROM users WHERE alias='.$_POST["alias"].'";
    Help me please

Maybe you are looking for

  • Unable to wirte data in BPC NW

    Hi I get the following error when trying to wirte data to my RATE application, in an input schedule or running a copy data package (from one category to another) Could not perform write (NOT_TRANSACTIONAL) Any suggestions why and how to fix it. Jespe

  • New phone line and broadband

    Hi, I hope someone can help me. I am due to move into a flat on the 4th of June, at the moment the flat does not have a phoneline though i checked on the BT website and at least one of the others do have one. I would like to order a BT line installat

  • "Save as..." Dialog: Can't change filename after picking one per mouse

    I am using Adobe Acrobat 8 Standard on Windows Vista. As it says in the Subject... Any ideas? Well in fact I can change the filename, but it will still save it to the filename picked by the mouse.

  • InDesign and PDF filename exporting

    Hello, I have a question to do... I'm editing a INDD file, and in example, the filename of this ind is "5468Shark.INDD" but... When I export this document to PDF, the filename of the pdf is showing like this "5468Shark Jason.PDF". My question is... H

  • What is the BAPI for setting "deletion flag" in IW32?

    What is the BAPI for setting "deletion flag" in IW32? Thanks!