Problem in HTTP Request HTTP_RESP_STATUS_CODE_NOT_OK

Hai Gurus,
      I am sending request from HTTP --> XI --> ABAP Proxy (Inbound). Its working fine when i execute proxy manually in tcode "sproxy". When do the same with HTTP Client it is throwing the following error.
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
- <!--  Call Adapter
  -->
- <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
  <SAP:Category>XIServer</SAP:Category>
  <SAP:Code area="INTERNAL">HTTP_RESP_STATUS_CODE_NOT_OK</SAP:Code>
  <SAP:P1>500</SAP:P1>
  <SAP:P2>Internal Server Error</SAP:P2>
  <SAP:P3 />
  <SAP:P4 />
My proxy does the work of uploading the files to Document Storage System KPro using standard BAPI's. I have used SAPFTP and SAPHTTP dlls in client machine's system32 folder (Which will help in downloading the document from client windows OS machine to SAP GUI AIX based machine).
Still facing the same problem which will throw error HTTP_RESP_STATUS_CODE_NOT_OK with error code 500.
Any help is highly appreciated.
Regards,
Pushparaju Bollapalli.

Also Check these Foloowing ;
- URL for the receiver is like this:
http://<host>:<port>/sap/xi/engine?type=receiver .The XI 2.0 differs from XI 3.0 in this.
-path in the receiver communication channel
The path has to be defined as:
/sap/xi/engine?type=entry for XI 3.0
/sap/xi/engine?type=receiver for XI 2.0
Regards
Aashish Sinha
PS : Reward points if Helpful

Similar Messages

  • Problem with HTTPS requests to host with untrusted server certificate

    Hi,
    I develop an iPhone framework which sends HTTPS requests in order to communicate with a publicly available backend server. Currently I have a big problem regarding untrusted server certificates.
    The certificate of the backend server is not signed by a trusted CA, so my first approach was to use NSURLRequest's private allowsAnyHTTPSCertificateForHost. While this worked as expected an was fine as temporary workaround, our customer demands a clean solution as final result. Therefore I wrote a method which allows to install a provided certificate from the file system in the keychain, but this method does not work as expected in the iPhone Simulator. The certificate is installed in the host machine's Mac OS X keychain instead. Unfortunately, if I call NSURLConnection's sendSynchronousRequest method, I retrieve an "untrusted server certificate" error. It seems as if NSURLConnection is not able to access the host's Mac OS X keychain to retrieve the certificate.
    Is my guess correct or did I miss something?
    Would my approach work if I ran my app on a real iPhone device instead (I do not have one available yet)?
    Does there exist a keychain in the iPhone Simulator at all?
    Is it at all possible to send HTTPS requests to a server with an untrusted certificate on the iPhone Simulator or do I have to use precompiler directives to implement different routines depending on the underlying platform (simulator or device, respectively)?
    Any help is highly appreciated.
    Thanks,
    Matthias

    Indeed this would be a clean and simple solution. But our customer is not willing to get a real certificate, for whatever reasons.
    The question that remains is if the HTTPS requests would succeed on the iPhone device itself if the server certificate was installed in the keychain by the same app beforehand.

  • Webdispatcher problem: Forwarding http requests don't work

    hi experts,
    i'am trying to configure my webdispatcher in order forwarding http requests to my sap netweaver message server (AS JAVA instance).
    here is my profile file:
    SAPSYSTEMNAME = WDP
    SAPGLOBALHOST = myWebDispatcherHost
    SAPSYSTEM = 10
    INSTANCE_NAME = W10
    DIR_CT_RUN = $(DIR_EXE_ROOT)\$(OS_UNICODE)\NTAMD64
    DIR_EXECUTABLE = $(DIR_CT_RUN)
    Accesssability of Message Server
    rdisp/mshost = mysapdevServer
    ms/http_port = 8121
    Configuration for medium scenario
    icm/max_conn = 500
    icm/max_sockets = 1024
    icm/req_queue_len = 500
    icm/min_threads = 10
    icm/max_threads = 50
    mpi/total_size_MB = 80
    SAP Web Dispatcher Ports
    icm/server_port_0 = PROT=HTTP,PORT=81$$
    icm/HTTP/redirect_0 = PREFIX=/, TO=/irj/portal
    MyTrace file i got it from web administration screen after lanching this address on my navigator http://myWebDispatcherHost/
    [Thr 2876] Mon Jul 07 16:36:34 2008
    [Thr 2876] *** ERROR => htmlEncode: called with empty string [icpif.cpp 847]
    [Thr 3748] Mon Jul 07 16:36:36 2008
    [Thr 3748] *** ERROR => htmlEncode: called with empty string [icpif.cpp 847]
    [Thr 3464] Mon Jul 07 16:43:55 2008
    [Thr 3464] *** ERROR => htmlEncode: called with empty string [icpif.cpp 847]
    [Thr 3464] *** ERROR => htmlEncode: called with empty string [icpif.cpp 847]
    [Thr 2876] Mon Jul 07 16:43:59 2008
    [Thr 2876] *** ERROR => htmlEncode: called with empty string [icpif.cpp 847]
    [Thr 3852] Mon Jul 07 16:47:42 2008
    [Thr 3852] *** ERROR => htmlEncode: called with empty string [icpif.cpp 847]
    Can you give me some advices to go throug this issue
    Thanks,

    Hi Srinivas,
    We  have installed  web dispatcher on cluster nodes...  and  web dispacther is unable to connect to message server.
    We are on cluster CI ,DI and SQL server runs on different systems.
    I have installed web dispatcher on CI & DI.. on CI web  dispatcher is up and DI is coming down after  couple of minutes if we try to bring it up.
    dev_webdisp:
    [Thr 3636] Wed Jul 30 14:59:51 2008
    [Thr 3636] *** ERROR => NiPConnect2: SiPeekPendConn failed for hdl 5 / sock 131344
         (SI_ECONN_REFUSE; I4; ST; 10.16.148.36:8100) [nixxi.cpp    2764]
    [Thr 3636] *** ERROR => Connection request from (-1/65535/0) to host: nbcdqsasc10b.corp.irvineco.com, service: 8100 failed (NIECONN_REFUSED) [icxxconn.c 2731]
    [Thr 3636] *** ERROR => IcmConnClientRqCreate() failed (rc=-8) [icrxx.c      4919]
    [Thr 3636] *** ERROR => Could not connect to SAP Message Server at nbcdqsasc10b.corp.irvineco.com. URL=/msgserver/text/logon?version=1.2 [icrxx.c      2301]
    [Thr 3636] *** ERROR => rc=-1, HTTP response code: 0 [icrxx.c      2302]
    [Thr 3636] *** ERROR => see also OSS note 552286 [icrxx.c      2303]
    [Thr 7944] Wed Jul 30 15:00:48 2008
    [Thr 7944] *** ERROR => htmlEncode: called with empty string [icpif.cpp    847]
    [Thr 7252] Wed Jul 30 15:00:57 2008
    [Thr 7252] *** ERROR => htmlEncode: called with empty string [icpif.cpp    847]
    [Thr 10200] Wed Jul 30 15:01:07 2008
    [Thr 10200] *** ERROR => htmlEncode: called with empty string [icpif.cpp    847]
    [Thr 1868] Wed Jul 30 15:01:18 2008
    [Thr 1868] *** ERROR => htmlEncode: called with empty string [icpif.cpp    847]

  • Problems sending HTTP request to PI

    In order to receiver a HTTP request from HTTP server onto PI, what things needs to be defined in PI?
    there is an HTTP application which can connect to other PI server in my environment without any issues, but when I point it to intended PI server, it is throwing exceptions. Where am I doing wrong? do I need to create a some RFC destination for this?

    Hello!
    Since you are talking about "PI" I believe you're using 7.1X.
    From this, check this link: http://help.sap.com/saphelp_nwpi71/helpdata/EN/44/bcd15381f456a1e10000000a1553f6/frameset.htm
    Also, when you go to the INTEGRATION_DIRECTORY_HMI, the result
    should be 500 "Internal Server Error" and not the 200 Ok that we're used to
    Hope it helps!
    Regards,
    Caio Cagnani

  • 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.

  • 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

  • Problem adding HTTP header to request

    Hi all,
    My company is wanting to access our Adobe Connect through our
    SAP portal without requiring the user to stop and enter their Adobe
    Connect password.
    The documentation available says that this should be possible
    using a combination of SAPSSOEXT (to interrogate the SAP ticket and
    authenticate the user coming from the SAP portal) and HTTP header
    authentication within Adobe Connect (by inserting the authenticated
    username into a custom HTTP header).
    However the problem is that I'm intending to use Java, but I
    can't find any Java functionality that will allow me to add a
    header into an HTTP request.
    Has anyone done anything like this before? Any ideas on how
    to go about it?
    Thanks in advance,
    David

    In 10.1.3.5, there were several examples or samples in the Oracle BPEL folder. I think there were ones called HTTPGetService and HTTPPostService. You might check to see if they are still around.

  • Problems by getting info out of XML file with a HTTP request

    Hi,
    I have a litte question. I'm working on an application that works together with google maps. In my java code, I get general information about address out of one database table, and I want to add some geographic information like coordinates that I want to retrieve from Google Maps through HTTP:
    Right now my code is like:
    while (resultSet.next())
                             title = resultSet.getString("title").replaceAll("'","''").toUpperCase();
                             author = resultSet.getString("author").replaceAll("'","''").toUpperCase();
                             location = resultSet.getString("location").replaceAll("'","''").toUpperCase();
                             straatnaam = resultSet.getString("straatnaam").replaceAll("'","''").toUpperCase();
                             nummer = resultSet.getString("nummer");
                             landcode = resultSet.getString("landcode").replaceAll("'","''").toUpperCase();
                             address = straatnaam + " " + nummer + " , " + location + " " + landcode;
                             url = "http://maps.google.com/maps/geo?q=" + address + "&output=xml&key=+key+";
                             String query = "INSERT INTO data2 VALUES ('" + i + "','" + title + "','" + author + "','" + resultSet.getString("date1") + "','" + resultSet.getString("date2") + "','" + location + "','" + resultSet.getString("postcode") + "','" + straatnaam + "','" + resultSet.getString("nummer") + "','" + landcode + "','+something like url.getCoordX+','something like url.getCoordY')";
                             success = sql2.executeUpdate(query);
                             i++;
    Now I don't know how I can handle that. Is it possible to do an HTTP request in Java without using Java Script of servlets? I just want to get the X and Y coordinates out of the XML file.
    The XML file will be something like:
    <kml xmlns="http://earth.google.com/kml/2.0">
    <Response>
    <name>1600 amphitheatre mountain view ca</name>
    <Status>
    <code>200</code>
    <request>geocode</request>
    </Status>
    <Placemark>
    <address>
    1600 Amphitheatre Pkwy, Mountain View, CA 94043, USA
    </address>
    <AddressDetails Accuracy="8">
    <Country>
    <CountryNameCode>US</CountryNameCode>
    <AdministrativeArea>
    <AdministrativeAreaName>CA</AdministrativeAreaName>
    <SubAdministrativeArea>
    <SubAdministrativeAreaName>Santa Clara</SubAdministrativeAreaName>
    <Locality>
    <LocalityName>Mountain View</LocalityName>
    <Thoroughfare>
    <ThoroughfareName>1600 Amphitheatre Pkwy</ThoroughfareName>
    </Thoroughfare>
    <PostalCode>
    <PostalCodeNumber>94043</PostalCodeNumber>
    </PostalCode>
    </Locality>
    </SubAdministrativeArea>
    </AdministrativeArea>
    </Country>
    </AddressDetails>
    <Point>
    <coordinates>-122.083739,37.423021,0</coordinates>
    </Point>
    </Placemark>
    </Response>
    </kml>
    many greetings and thanks in advance
    Mathias

    Hi, sorry for being not so clear. My question was actually if it is possible to do a HTTP request in Java without using servlets or being in Java Script. Actually my question was more specific for Google maps, because it didn't seem to work. It was my mistake, and already solved, to forget to make the webservice-call "URL-encoded". Because of that, I always received a HTTP 400 error, and that's why I thought it wouldn't be possible.
    But now I have another, perhaps for you guys stupid question. The result I get from the webservice URL is of the form:
    <?xml version="1.0" encoding="UTF-8"?>
    <kml xmlns="http://earth.google.com/kml/2.0">
    <Response>
         <name>nieuwelaan 38, Hamme</name>
         <Status>
              <code>200</code>
              <request>geocode</request>
         </Status>
         <Placemark id="p1">
              <address>Nieuwelaan 38, 9220 Hamme, Hamme, Belgium</address>
              <AddressDetails Accuracy="8" xmlns="urn:oasis:names:tc:ciq:xsdschema:xAL:2.0">
              <Country>
                   <CountryNameCode>BE</CountryNameCode>
                   <AdministrativeArea>
                        <AdministrativeAreaName>Vlaams Gewest</AdministrativeAreaName>
                        <SubAdministrativeArea>
                             <SubAdministrativeAreaName>Oost-Vlaanderen</SubAdministrativeAreaName>
                             <Locality>
                                  <LocalityName>Hamme</LocalityName>
                                  <DependentLocality>
                                       <DependentLocalityName>Hamme</DependentLocalityName>
                                       <Thoroughfare>
                                            <ThoroughfareName>Nieuwelaan 38</ThoroughfareName>
                                       </Thoroughfare>
                                       <PostalCode>
                                            <PostalCodeNumber>9220</PostalCodeNumber>
                                      </PostalCode>
                                 </DependentLocality>
                            </Locality>
                        </SubAdministrativeArea>
                   </AdministrativeArea>
             </Country>
             </AddressDetails>
             <Point>
                   <coordinates>4.126295,51.097724,0</coordinates>
             </Point>
         </Placemark>
    </Response>
    </kml> Now I want to get the value of the coordinates field.
    This is my code:
    address = URLEncoder.encode(address, "UTF-8");
    urlString = "http://maps.google.com/maps/geo?q=" + address + "&output=xml&key=ABQIAAAA9fEXNK-q6vKpPU0JCmPPkxQjbVBpjtblJJYkDfbMo0e51afwehRmujfvBtJqx1Qehg6e6QgCRY8poA";
    url = new URL(urlString);
    XPath xPath = XPathFactory.newInstance().newXPath();
    Document domDoc = processData(url);
    path = "/kml/Response/Placemark/Point/coordinates";
    coord = xPath.evaluate(path, domDoc);
    System.out.println("coord : " + coord);Now, in the last line, by writing out the value of coord to my screen, I get the value "1", instead of "4.126295,51.097724,0" I would expect, anyone knows what I'm doing wrong?
    greetings
    Mathias

  • Https request problem

    I am trying to get oracle to request https , but have had no luck. (I did the same test using https://www.paypal.com same results) These are my steps:
    I access Oracle Wallet Manager via Windows and I import the trust certificate I exported from IE to the Oracle Wallet Manager's trusted certificate. I confirm that the trusted certificate is added into Wallet. I then move the ewallet.p12 file on to the server where the database is resides. The ewallet.p12 file has oracle/dba group.
    -rw-r----- 1 oracle dba 2981 May 10 22:31 ewallet.p12
    pwd
    /oracle/oracle/app/oracle/product/9.2.0/Apache/wallet
    Now I test the utl_http.request via SQLPLUS and I get a certificate chain is incomplete.
    SQL> select utl_http.request('https://support.oracle.com/CSP/ui/flash.html',null,
    'file:/oracle/oracle/app/oracle/product/9.2.0/Apache/wallet','testing321')
    from dual; 2 3
    select utl_http.request('https://support.oracle.com/CSP/ui/flash.html',null,
    ERROR at line 1:
    ORA-29273: HTTP request failed
    ORA-06512: at "SYS.UTL_HTTP", line 1573
    ORA-28871: certificate chain is incomplete
    ORA-06512: at line 1
    Do anyone have any idea why its error out with this message? I searched everywhere on the internet and have come up with few leads regarding ORA-28871, certificate chain is incomplete. Syntax seems to be fine, cuz if I change the password, it will return:
    SQL> select utl_http.request('https://support.oracle.com/CSP/ui/flash.html',null,
    'file:/oracle/oracle/app/oracle/product/9.2.0/Apache/wallet','testig321')
    from dual; 2 3
    select utl_http.request('https://support.oracle.com/CSP/ui/flash.html',null,
    ERROR at line 1:
    ORA-29273: HTTP request failed
    ORA-06512: at "SYS.UTL_HTTP", line 1573
    ORA-29106: PKCS12 wallet import failed
    ORA-06512: at line 1
    Any help or insight will be greatly appreciated!!! Thanks!
    I would like to add that the database is running 9i on hpux, and Wallet Manager is ran on Windows.
    Edited by: user10602919 on May 10, 2010 10:26 PM
    Edited by: user10602919 on May 10, 2010 10:29 PM
    Edited by: user10602919 on May 10, 2010 10:29 PM
    Edited by: user10602919 on May 10, 2010 10:30 PM
    Edited by: user10602919 on May 10, 2010 10:40 PM

    Thanks for replying! Lets just use paypal as the example. I would like to make sure that the Wallet manager is correct before I move onto writing a procedure that request https using wallet. (http://eternal-donut.blogspot.com/2008/07/tip-5-using-utlhttp-and-ssl.html)
    http://www.sslshopper.com/assets/images/certificate_path.gif
    (Would I need to import all 3?)
    Please advice, thanks!
    I
    UPDATE: I added paypal's VeriSign Class 3 Public Primary CA, and also VeriSign Class 3 Extend Validation SSL CA. But I still get the same chain error.
    This what my Oracle Manager looks like - http://i42.tinypic.com/10g0geh.jpg
    Edited by: user10602919 on May 11, 2010 8:28 AM
    Edited by: user10602919 on May 11, 2010 8:36 AM

  • Null values in Weblogic 7 HTTP Request Parameters

    It appears weblogic 7 handles nulls passed from the request object
              differently than the previous versions. In my jsp's, if a parameter
              was not passed, I used to get a java null value:
              String s = request.getParameter("something_not_passed");
              if(s == null) {
              //do stuff
              Now, weblogic seems to return the string literal "null" so I would
              have to use:
              if(s.equals("null")) {
              //do stuff
              Is this a bug or am I missing something?
              Thanks,
              Paul
              

    HI, Thanks for the reply. I am using getString() to fetch values.
    DO u think its due to driver incompatibility?? Because, BEA claims WL7.0 supports
    Oracle 8.1.7 onwards!
    Thanks,
    Yogesh
    Joseph Weinstein <[email protected]> wrote:
    >
    >
    Yogesh wrote:
    Hi, I have ported my web application from weblogic 5.1 to weblogic 7.Set up is weblogic
    7 with database Oracle 8.1.6 and i am using OCI driver for DB connectionpool. I
    am facing some problems like, the values that were retrieved as blanksin weblogic
    5.1 are being retrieved as null(string literal value) in 7. The same thinghappens
    when parameters were passed through HTTP request object. Any idea aboutthis?
    Thanks,
    YogeshHi. This sounds like a driver bug. Let's isolate it to a simple standalone
    program
    that uses our driver to select null data. How are you asking for the object?
    GetString(),
    GetObject()?
    Joe

  • 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.

  • The MAC signature found in the HTTP request '***' is not the same as any computed signature. Server used following string to sign: 'POST

    Hi,
    When trying with Postman sending a REST call to Azure Storage Queues I get:
    The MAC signature found in the HTTP request '***' is not the same as any computed signature. Server used following string to sign: 'POST.
    The code I have for creating the Authorization Header:
    var accountName = "my_account";
    string key = ConfigurationManager.AppSettings["my_access_key"];
    DateTime dt = DateTime.Now;
    string formattedDate = String.Format("{0:r}", dt);
    var canonicalizedHeaders = "x-ms-date:" + formattedDate + "\n" + "x-ms-version:2009-09-19" + "\n" ;
    var canonicalizedResource = "/my_account/myqueue/messages";
    var stringToSign = String.Format("POST,\n\n\n\n\n\n\n\n\n\n\n{0}{1}", canonicalizedHeaders, canonicalizedResource);
    stringToSign = HttpUtility.UrlEncode(stringToSign);
    HMACSHA256 hmac = new HMACSHA256(Encoding.UTF8.GetBytes(key));
    var signature = Convert.ToBase64String(hmac.ComputeHash(Encoding.UTF8.GetBytes(stringToSign)));
    var authorizationHeader = String.Format(CultureInfo.InvariantCulture, "SharedKey {0}:{1}", accountName, signature);
    return authorizationHeader;
    Anyone any idea what I'm missing/doing wrong?
    Additional question: do i have to create for every message I want to send a new Authorization header? Or is there an option (as with Service Bus Topics) to create a header that can be used for a certain timeframe?
    Thanks.

    One issue is with this line of code:
    HMACSHA256 hmac = new HMACSHA256(Encoding.UTF8.GetBytes(key));
    Please use the following:
    HMACSHA256 hmac = new HMACSHA256(Convert.FromBase64String(key));
    and that should take care of the problem.
    Regarding your question, "do i have to create for every message I want to send a new Authorization header? Or is there an option (as with Service Bus Topics) to create a header that can be used for a certain timeframe?"
    With your current approach, the answer is yes. What you can do is create a Shared Access Signature on the queue which will be valid for certain duration and then use that for posting messages to a queue using simple HttpWebRequest/HttpWebResponse.
    Hope this helps.

  • After Mavericks OS upgrade, can no longer make any HTTP requests with the OPTIONS verb

    My machine can no longer make any HTTP requests with the OPTIONS verb. This happens whether I try it curl, postman, or ajax.
    curl -i -X OPTIONS http://www.google.com returns curl: (52) Empty reply from server
    It should return a long string containing a 405 error code.
    I suspect that this is related to the Mavericks upgrade I did earlier this week. I only have one mac (my dev machine) with Mavericks. Other macs are Mountain Lion and they don't have this problem.
    Can anyone else with Mavericks confirm whether or not they have this problem too?
    If this is Mavericks related, anyone know of a fix or workaround?

    Turns out that it wasn't Mavericks related at all. Cisco AnyConnect has a security module running behind the scenes even when you're not VPNed into anything. It was blocking my OPTIONS verb requests. I was able to make these calls after uninstalling.
    Re-installing with Web Security turned off should prevent it from happening. While I was uninstalling I did notice that there was a web security uninstall script in /opt/cisco/vpn/bin but I already committed to taking the whole app off my machine. Simply running that script could have done it too.
    I must give credit to Ben Nadel. It was his blog post that helped me fix this issue.
    http://www.bennadel.com/blog/2559-Cisco-AnyConnect-VPN-Client-May-Block-CORS-AJA X-OPTIONS-Requests.htm?&_=0.10495476494543254#comments_44093

  • Can CSS route based on cookie info in HTTP request

    Hi
    I am new to CSS and am interested as it might be able to provide a solution to a problem I have seen.
    We currently have 3 Windows Servers running an ASP-based web application with a clustered SQL Server backend. The front end uses windows load balancing to distribute the load. All 3 servers are configured the same and there is only one application.
    The problem lies with the way an the application maintains session state. I am told it uses a non-persistant cookie on the client which corresponds to a session object on the server. This is opposed to maintaining state in central location such as the database. Obviously this means the client needs to be stuck to a particular server for that session. This is currently achieved by setting the Windows NLB to single affinity which places traffic from a particular IP address to the same server. This does work but the clients source IP is changed by a downstream firewall to a NAT overload address meaning all clients appear with the same IP address (different port) and hence always end up on just one server.
    The obvious next step in my mind would be to change the way NAT is done but this is not possible. The next obvious idea would be to change the application so that it maintains state in the database so the affinity of the Windows NLB could be disabled meaning requests would be dealt with using the source IP and port and hence distributed evenly. I am told this cannot be done either :) Joy!
    So I have begain to look at other possible solutions. Apologies for my very limited knowledge on the CSS as I am trying to get my head around how it can be configured. I am thinking that it may be able to help me if I used it instead of Windows NLB. I am interested in the way you can use Layer 5 stickiness. Would it be able to examine the cookie in the HTTP request and route the traffic to the correct server?
    I am aware that this will not alleviate the failover issue. If one of the servers were to fall over then the client would have to login again, however I am under the impression that this is acceptable behaviour. The main driver here is to provide load balancing to improve application performance by using all resources opposed to just one.
    Many many thanks to anyone who can give me advise on this.

    Hi Gilles
    Thanks for the info. Sounds like we are on the right path. Unfortunately I am unable to get much information from the developers. Long story. I did logon to the system whilst doing a network trace. The following is what I found in the HTTP header:
    Hypertext Transfer Protocol
    GET /XXXXX/Includes/style.asp HTTP/1.1\r\n
    Accept: */*\r\n
    Referer:
    http://xxx.xxxxx.xxx/xxxxx/login.asp\r\n
    Accept-Language: en-gb\r\n
    Accept-Encoding: gzip, deflate\r\n
    User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.1.4322)\r\n
    Host: xxxx.xxxxx.xxxxx\r\n
    Connection: Keep-Alive\r\n
    Cookie: ASPSESSIONIDQCBCDSCR=AEHBCJEDDGMMCCBHBICLELGD\r\n
    \r\n
    Why do you configure 2 services? How would I go about this given the cookie in the HTTP request?
    Many thanks
    Gary

  • Setting the header in http request object

    I am facing a problem while trying to test a particular flow of my application.The details are given below:
    The controller servlet of my main application reads the header "Referer" from the request object and then based on this it forwards the request to appropriate servlets.For testing my application I am writing a test servlet which receives a request object from a test jsp and sets all the necessary attributes in the request object and passes this request object to the doGet () method of the main application's controller servlet. But while trying with this I find that the main controller fails to forward to the correct servlet because it receives incorrect referer information. So my question is how can I set my customised "Referer" in the header of the http request so that the application's controller servlet forwards to the correct servlet?Is there any means to set the request header in servlet or jsp?

    As far as I know you can't change the request in a servlet or .jsp, but you can in a Filter. Wrap the original request object in a wrapper class before passing it to chain.doFilter().

Maybe you are looking for

  • ICal Search won't find events in the "distant" future !!!

    Here's a bit of a disturbing one: I use iCal (Leopard, so iCal 3.0.8 1287) to keep track of many things- not just a meeting next week or a TO DO - but also for long-term planning. I wanted to enter a reminder for about December 2016 concerning social

  • Unable to connect target /

    Hi, I have Oracle 10gR2 10.2.0.3 db on Solaris. I use EM to backup the db to the disk. I was able to connect to the db but today I am getting an error. $ . oraenv ORACLE_SID = [prod_db] rman Recovery Manager: Release 10.2.0.3.0 - Production on Mon Ma

  • Funtion module to update Infotype 14

    Hi guys, Is ther any function modules to update infotype 14 other than HR_INFOTYPE_OPERATION and HR_MAINTAIN_MASTERDATA...... Thanks, Satya

  • Responsive HTML5 and accessibility

    Using the WAVE accessiblity evaluation tool, it looks like the Responsive HTML5 layouts are missing alternative text. What files do I need to edit in these layouts to make them meet accessibility standards?

  • The first tab opened in firefox continually loads and cannot be closed

    When I open Firefox the first tab I open will continually load and cannot be closed