Java service invocation with HTTP Request

A simple HTTP Request containing the SOAP envelope is a valid way of calling a web service, right?
It seems simpler and more efficient than the "traditional" ways (Axis, JAX-RPC, etc), so what are the disadvantages?
Thanks in advance
Pedro

kept the jars under APP-INF/lib

Similar Messages

  • Throttle Service Invocations with configurable qualities-of-service.

    Hello All,
    We are in the process of designing a system integrating 7 applications using BPEL as the integration Layer.
    Some of the services we use are Third Party Services and have varying Qualities-of-service. As events occur in each system, BPEL orchestrates the service invocations to propagate the events/data to other systems.
    Is there any way to throttle Service Invocations with configurable qualities-of-service? We do not want all Services to be invoked as soon as the events occur, as it may overload Services beyond their SLAs. We would want to throttle the Service Invocations per system or ideally per service.
    Thanks,
    Neil.

    It is possible using the dspMaxThreads and dspInvokeAllocFactor parameters. There is a good description of hoe to implement this in the best practice guide
    look in the section BPEL FAQ -> Threading
    http://www.oracle.com/technology/tech/soa/soa-suite-best-practices/soa_best_practices_1013x_drop1.pdf
    OSB also has some functionality in this area.
    cheers
    James

  • Dimmer control for LED lights with HTTP Requests

    Hello,
    I'm al little bit know with LabVIEW, but I have a problem that I can't get fixed.
    For a project we control the led lights in a house with http requests (we use the http get request): this exists of a http address, the number of the light, the PWM (the brightness of the led) and the current.
    Controlling the lights with the switches is easy and is working fine. Now what we want to do is create a dimmer that can be controlled with the switches in the rooms.
    The following should happen: if the users clicks one time (so lets say for less than a second) than the light should just switch on. If he/she pushes the light switch and keeps pushing it than the light should dim.
    So the value of the PWM (and this is a string value) should change from 0 to (lets say) 100 when pushing it once, and it should decrease form 100 tot 0 (step by step) when the user keeps pushing the button. The thing I'm having difficulties with is making a difference between just clicking once and keeping the button pushed for a few seconds in the labview software.
    Any tips or ideas? Any Help is Welcome!
    Thanks
    CORE CVBA

    CORECVBA wrote:
    The thing I'm having difficulties with is making a difference between just clicking once and keeping the button pushed for a few seconds in the labview software.
    It sounds like everything else is working and your problem is to detect the button action details.
    Are you talking about a real physical switch or is this a switch on the LbVIEW front panel?
    All you need to do is detect a off->on transition, When it occurs, place the current tick count into a shift register, then subtract it from the tick count in subsequent iterations (as long as the button is TRUE). Change your output as a function of the elapsed time until the button is released.
    LabVIEW Champion . Do more with less code and in less time .

  • Output Service invocation with webservices

    Hello,
    I want to invoke the output service with a Java Client using webservices. I have generated the proxy Java classes using Apache Axis, and then I wrote a Java Client invoking the output service, using a simple form (xdp file) and a data xml file.
    The service invocation looks good (I have no erros in the log file) but I have no pdf file generated and I get the following error message..
         Print request successful. No output generated as recordLevel or recordName does not matches with the data file.
    If anyone can help. Thanks !

    The problem looks like you have not referenced your data source properly. <br /><br />Assume that you had this XML data source:<br /><br /><?xml version="1.0" encoding="UTF-8"?><br /><batch><br /><LoanRecord><br /><mortgageAmount>500000</mortgageAmount><br /><lastName>Blue</lastName><br /><firstName>Tony</firstName><br /><SSN>555666777</SSN><br /><PositionTitle>Product Manager</PositionTitle><br /><Address>555 No Where Dr</Address><br /><City>New York</City><br /><StateProv>New York</StateProv><br /><ZipCode>51256</ZipCode><br /><Email>[email protected]</Email><br /><PhoneNum>555-7418</PhoneNum><br /><FaxNum>555-9981</FaxNum><br /><Description>Buy a home</Description><br /></LoanRecord><br /><LoanRecord><br /><mortgageAmount>300000</mortgageAmount><br /><lastName>White</lastName><br /><firstName>Sam</firstName><br /><SSN>555666222</SSN><br /><PositionTitle>Program Manager</PositionTitle><br /><Address>557 No Where Dr</Address><br /><City>New York</City><br /><StateProv>New York</StateProv><br /><ZipCode>51256</ZipCode><br /><Email>[email protected]</Email><br /><PhoneNum>555-7445</PhoneNum><br /><FaxNum>555-9986</FaxNum><br /><Description>Buy a home</Description><br /></LoanRecord><br /><LoanRecord><br /><mortgageAmount>700000</mortgageAmount><br /><lastName>Green</lastName><br /><firstName>Steve</firstName><br /><SSN>55566688</SSN><br /><PositionTitle>Project Manager</PositionTitle><br /><Address>445 No Where Dr</Address><br /><City>New York</City><br /><StateProv>New York</StateProv><br /><ZipCode>51256</ZipCode><br /><Email>[email protected]</Email><br /><PhoneNum>555-2211</PhoneNum><br /><FaxNum>555-2221</FaxNum><br /><Description>Buy a home</Description><br /></LoanRecord><br /></batch><br /><br />You must reference the XML data source that contains data records. An XML element is used to separate the data records. For example, in this XML data source, the XML element that separates data records is named LoanRecord.<br /><br />Plus - the XML element name must match the field name in your form. <br /><br />Your error is saying that the recordName or recordLevel does not match your data file. <br />     <br />Set the Record Name option by invoking the OutputOptionsSpec objects setRecordName method and passing a string value that specifies the XML element name in the data source that separates the data records. (For example-- LoanRecord).<br /><br />Hope this helps

  • Safe to retry Flex Web Service calls on HTTP request failures?

    I'm using Flex's web services layer to make SOAP calls to a back-end server. Once in a while, those calls fail with a generic RPC fault that looks like this:
    faultString="HTTP request error"
    faultCode="Server.Error.Request"
    faultDetail="Error #2032: Stream Error..."
    When this happens, is it safe to assume that the server didn't get the message and retry an otherwise non-idempotent request?

    Anyone have any ideas?

  • Help with http request

    Please, help me with two problems I have to solve. I'm beginner in Java.
    1. Create a simple program that sends http request for index.html and shows the result.
    2. Create a simple program that gets the list of messages from a give mailbox over POP3 (server, username, pass - give as params).
    Thank you!

    But I think that I need request like this:
    GET /index.html HTTP/1.1
    Host: www.example.com
    and as a result (maybe) something like this:
    HTTP/1.1 200 OK
    Date: Mon, 23 May 2005 22:38:34 GMT
    Server: Apache/1.3.27 (Unix) (Red-Hat/Linux)
    Last-Modified: Wed, 08 Jan 2003 23:11:55 GMT
    Etag: "3f80f-1b6-3e1cb03b"
    Accept-Ranges: bytes
    Content-Length: 438
    Connection: close
    Content-Type: text/html; charset=UTF-8Well, under the covers, that will be what you have.
    It says "simple program" - do you think you are expected to connect your own socket and send a request you build from scratch yourself? Unlikely.
    As for the response - you can probably skip the headers and just display the content that follows (in your example 438 bytes).

  • Accessing a .exe file with HTTP Request

    Hi!
    Can I access an executable file located in a WEB page with JMeter?
    I'm tryng to use a HTTP Request:
    Server Name or IP: 111.111.111.1
    Port Number: 8080
    Path: /cliente/file.exe
    The file is in a Tomcat application.
    When I run, in the View Results Tree - Sampler Result, it shows:
    Load time: 63
    HTTP response code: 400
    HTTP response message: Bad Request
    HTTP response headers:
    HTTP/1.1 400 Bad Request
    Date: Wed, 27 Apr 2005 14:26:09 GMT
    Server: Apache-Coyote/1.1
    Connection: close
    I already had copied the link and placed it into the browser to verify
    if it was correct and i had access to the file normaly.
    What am I doing wrong?
    Thanks in advance.
    Marcelo.

    If the .exe file is publically-accessible from your web server (like other normal .html files are for example), then accessing that resource would be done the same way as accessing others (get a stream of bytes that the server would serve up, and do something with those bytes on the client end of the connection). I don't know what JMeter has to do with that.

  • Java proxy client with HTTP sender

    I have SP15. I have sender agreement with HTTP adapter for system A and Java Proxy Cleint that send message as system A.
    When I send message through Java proxy I see error:
    <i>SOAPFault received from Integration Server. ErrorCode/Category: XIServer/IN_BIND_WRONG_ADPT; Params: HTTP; AdditionalText:  ; ApplicationFaultMessage:  ; ErrorStack: Server agreement found belongs to adapter HTTP; current adapter is 'XI' </i>
    When I deleted sender agreement it worked.
    Could you explain this strange behavior? Is it a bug. Sender agrement for HTTP is necessary since SP16

    I have the same problem with SOAP and file adapter. I've posted this here already.
    XIServer/IN_BIND_WRONG_ADPT
    I have deleted the sender agreement for my soap adapter scenarios, because a sender agreement is not necessary (created by the wizard). After that the soap adapter scenarios work fine. But at scenarios with a sender file adapter you need a sender agreement.
    We had the following situation:
    XI Test, XI SP17, Basis SP16 --> IN_BIND_WRONG_ADPT problem
    XI QA, XI SP17, Basis SP14 --> okay
    XI Prod, XI SP15, Basis SP 16 --> okay
    We patched our XI QA to
    XI QA, XI SP17, Basis SP16
    After that we have the IN_BIND_WRONG_ADPT problem at our XI  QA system too.
    I started a SAPP OSS call two weeks ago but got no solution till now. They checked our systems some times but with no result.
    Our central SLD is on the XI Prod System. Perhaps there is a connection. But I don't want to patch my XI Prod system to SP 17, because it's the only system that works without errors.
    Message was edited by: Gil Ritter

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

  • Behaviour of Service (MqActive and http-requests)

    Hello,
    I have a servlet which runs an mq-active listener and get input by http. Now my question: what is important about threads and concurrency ? - There could be the case, that the mq-active-listener gets an Message while there is an http-request. Should I start for each request of mq-active a new Thread?
    thanks for you answer,
    dak
    Message was edited by:
    dakger

    Hi David, 
    Thanks for correctly guessing our longer term plans.  It's good to know this won't be a problem in the future.
    However, that doesn't answer my original question, which is a bit more pressing than waiting until we have migrated.  If it can't be done, it can't be done, and we'll just bear that in mind when responding to failover events.  But I would prefer
    a definitive "no, it can't" rather than a speculative "no".  
    Regards, 
    Simon

  • Synchronous BPM starting with HTTP Request

    Hello there,
    I have a requirement to call 3 web services, consolidate their responses, and sending back the results to the caller (a web page in this case).  The request is coming over HTTP (synchronously...the file sender scenario that is on SDN does not apply here). 
    I have tried the sync/async bridge to prototype this synchronous scenario, but I get the following error.
    "The process does not support the given synchronous interface or does not support synchronous messages"
    Since the Receive step only allows Async and Sync/Async Bridge options (which doesn't really apply here because all of my web service calls are synchronous), and off course the HTTP as well.  What options do I have to build this scenario via BPM (or without BPM)?
    Looking forward to the replies.
    Thanks

    Hi,
    I'm trying to build similar ccBPM process which processes a synchronous message sent from XI SOAP sender to a Web Service. Both sender and receiver systems are synchronous.
    Instead of going directly to the Web Service receiver, I would like the message to go through ccBPM.
    Can you give a sample for such process ?
    What receive step mode should be used - "Asynch" or S\A "bridge" ?
    I tried to receive the message using "Asynch" mode and than send it with "Synch" mode.
    A runtime error is generated:
    <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
    <SAP:Category>XIAdapter</SAP:Category>
    <SAP:Code area="BPE_ADAPTER">SYNCHONOUS_MESSAGE</SAP:Code>
    <SAP:P1 />
    <SAP:P2 />
    <SAP:P3 />
    <SAP:P4 />
    <SAP:AdditionalText />
    <SAP:ApplicationFaultMessage namespace="" />
    <SAP:Stack>The process does not support the given synchronous interface or does not support synchronous messages Exception CX_WAPI_DEF_PROPERTY_NOT_FOUND occurred (program: SAPMHTTP, include: , line: 0).</SAP:Stack>
    <SAP:Retry>N</SAP:Retry>
    </SAP:Error>
    Please help !
    Thanks
    Orit

  • Is there an issue with the latest version of FF with HTTPS requests and Proxy authentication?

    I'm currently working inside a cope network behind a proxy, which requires authentication.
    When browsing to websites externally to our network I would usually only be promoted once for authentication details; after that I would never see the prompt again until after restating the browser.
    However after the latest update I've found that when visiting HTTPS sites I'm promoted for my login details. But even though I enter the correct information the prompt does not take the details and continually asks until eventually our proxy closes the connection (usually with my account now being locked).
    My other browsers (IE, GC) work fine without problems.
    Any ideas?

    It could be a regression in Firefox 18 that wasn't present in Firefox 17. The developers are known nowadays for including too many experimental changes and my bet is one of them is causing this.
    But to confirm, could you downgrade back to Firefox 17 and still see if it works well with proxy authentication?
    Download link:
    <br> www.mozilla.org/en-US/products/download.html?product=firefox-17.0.1&os=win&lang=en-US

  • How use to simple Java client with Https ?

    Experts,
    I am having some difficulties to call a https webservice on DataPower.
    The following simple client has no problem to call HTTP webservice but HTTPs different story. SoapUI works just fine with Https request.
    Can any one make a suggestion ? Appreciate any help !
    public final static String DEFAULT_SERVER
    = "https://123.123.123.123:443/Wsp";
    // = "https://123.123.123.123:2048";
    public final static String SOAP_ACTION
    = "http://mycompany.com/Inquiry";
    public static void main(String[] args) {
              String server = DEFAULT_SERVER ;
              String input1 = "123";
              String input2 = "hello";
              try {
              URL u = new URL(server);
              URLConnection uc = u.openConnection();
              HttpURLConnection connection = (HttpURLConnection) uc;
              connection.setDoOutput(true);
              connection.setDoInput(true);
              connection.setRequestMethod("POST");
              connection.setRequestProperty("SOAPAction", SOAP_ACTION);
              OutputStream out = connection.getOutputStream();
              Writer wout = new OutputStreamWriter(out);
              wout.write("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
              wout.write("<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:sam=\"http://aglc.com/sampleDp\">\r\n");
              wout.write("<soapenv:Header/>\r\n");
              wout.write("<soapenv:Body>\r\n");
              wout.write("<sam:AcordRequest>\r\n");
              wout.write("<sam:TRANSID>" + input1 + "</sam:TRANSID>\r\n");
              wout.write("<sam:TRANSBODY>" + input2 + "</sam:TRANSBODY>\r\n");
              wout.write("</sam:AcordRequest>\r\n");
              wout.write("</soapenv:Body>\r\n");
              wout.write("</soapenv:Envelope>\r\n");
              wout.flush();
              wout.close();
              String hhResponse ="";
              InputStreamReader isr = new InputStreamReader(connection.getInputStream());
              BufferedReader in = new BufferedReader(isr);
              String inputLine;
              while ((inputLine = in.readLine()) != null){
              //AIGTraceLog.log(componentName,Level.INFO,inputLine);
              hhResponse = hhResponse+inputLine+"\n";
              System.out.println(hhResponse);
              in.close();
              catch (IOException e) {
              System.err.println(e);
              }

    Thanks for the reply. I think I am close, based on your instruction, I did the following but still got the same error.
    C:\Program Files\Java\j2re1.4.2_13>java com.mypack.testdpws.TestDPWS
    javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: Certificate not Trusted
    C:\Program Files\Java\j2re1.4.2_13>keytool -import -alias testDPWS -file TestDpClSsl.crt
    Enter keystore password:
    Enter keystore password: password
    Owner: CN=TestDpClSsl
    Issuer: CN=TestDpClSsl
    Serial number: 2dd2d12e
    Valid from: 12/1/10 4:37 PM until: 12/1/11 4:37 PM
    Certificate fingerprints:
    MD5: 3A:89:FE:76:BC:30:BF:F0:87:31:F5:14:29:07:60:91
    SHA1: 40:71:51:4C:84:BD:08:40:A6:7D:60:A8:A8:04:BA:09:B7:E5:C9:A4
    Trust this certificate? [no]: y
    Certificate was added to keystore
    C:\Program Files\Java\j2re1.4.2_13>java com.mypack.testdpws.TestDPWS
    javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: Certificate not Trusted
    Any idea ? or do I need to add something in the test program ?

  • Doubts about HTTPS requests and Java proxy

    Hello,
    I need help about SSL connections and Java.
    I'm developing a HTTP/S proxy with Java. To test my proxy, I use Firefox. I configure the proxy option in the browser. The proxy works good with HTTP requests, but with HTTPS requests doesn't work and I don't know why.
    I explain the steps that I do for a HTTPS request:
    * The browser sends a CONNECT message to the proxy.
    I check that the proxy receives the CONNECT request correctly.
    * The proxy establish a secure connection with the content server.
    I use an SSLSocket to connect with my content server, and the SSL handshake is succesful.
    * The proxy sends a 200 HTTP response to the client:
    I send
    HTTP/1.0 200 Connection established[CRLF]
    [CRLF]
    to the application client (Firefox)
    * The proxy sends/receive data to/from Firefox/content server
    I have a Socket between Firefox and my proxy, and a SSLSocket between my proxy and my content server. I use two threads to communicate the client and the server.
    Java code:
    //Thead server-->proxy-->application(Firefox)
    ThreadComm tpa = new ThreadComm(bis_serverSSL, bos_app);
    //Thread application(Firefox)-->proxy-->server
    ThreadComm tap = new ThreadComm(bis_app, bos_serverSSL);
    The "tpa" thread reads from the SSLSocket between the proxy and the server and sends data to the Socket between the proxy and Firefox.
    The "tap" thread reads from the Socket between the proxy and Firefox and sends data to the SSLSocket between the proxy and the server.
    This is the class ThreadComm:
    public class ThreadComm extends Thread{
        private BufferedInputStream bis = null;
        private BufferedOutputStream bos = null;
        public ThreadComm(BufferedInputStream bis, BufferedOutputStream bos) {
            this.bis = bis;
            this.bos = bos;
        @Override
        public void run() {
            int b = -1;
            FileOutputStream fos = null;
              do {
                   try {
                        b = bis.read();
                        System.out.print((char) b);
                        fos.write(b);
                        bos.write(b);
                        bos.flush();
                   } catch (Exception ex) {
                        Logger.getLogger(ThreadAplicacionProxy.class.getName()).log(Level.SEVERE, null, ex);
                        //b=-1;
              } while (b != -1);
        }But this doesn't work and I don't know why.      
    I have an Apache server with the mod_ssl enabled as content server, I can send requests (with Firefox) to the port 80(HTTP request) and 443(HTTPS request) without use my proxy and it works. If I use my proxy, HTTP request works but with HTTPS request doesn't work, I look the log of Apache and I see:
    [Tue Apr 27 17:32:03 2010] [info] Initial (No.1) HTTPS request received for child 62 (server localhost:443)
    [Tue Apr 27 17:32:03 2010] [error] [client 127.0.0.1] Invalid method in request \x80\x7f\x01\x03\x01
    [Tue Apr 27 17:32:03 2010] [debug] ssl_engine_kernel.c(1770): OpenSSL: Write: SSL negotiation finished successfully
    [Tue Apr 27 17:32:03 2010] [info] [client 127.0.0.1] Connection closed to child 62 with standard shutdown (server localhost:443)
    Why it say? Invalid method in request \x80\x7f\x01\x03\x01 , my proxy sends the data that the Firefox sends.
    I think than I have follow the explanations of [1] but doesn't work, I have problems in implementation in Java but I don't know where.
    I appreciate any suggestions.
    Thanks for your time.
    [1] http://www.web-cache.com/Writings/Internet-Drafts/draft-luotonen-web-proxy-tunneling-01.txt

    ejp, I have checked the socket between the proxy and server and ... You are right! , I was using the port 80 instead of the 443 (incredible mistake!, I'm sorry). I was convinced that I was using the port 443... Well, is a little step, but I still have not won the war :)
    If I see the log files of Apache, We can see that something goes wrong.
    localhost-access.log
    >
    127.0.0.1 - - [04/May/2010:17:44:48 +0200] "\x 80\x 7f\x01\x03\x01" 501 219
    >
    localhost-error.log
    >
    [Tue May 04 17:44:48 2010] [info] Initial (No.1) HTTPS request received for child 63 (server localhost:443)
    [Tue May 04 17:44:48 2010] [error] [client 127.0.0.1] Invalid method in request \x80\x7f\x01\x03\x01
    [Tue May 04 17:44:48 2010] [debug] ssl_engine_kernel.c(1770): OpenSSL: Write: SSL negotiation finished successfully
    [Tue May 04 17:44:48 2010] [info] [client 127.0.0.1] Connection closed to child 63 with standard shutdown (server localhost:443)
    >
    I think that this happens because Apache receives the data without decrypt, this is the reason because in the log we can see the "Invalid method in request \x80\x7f\x01\x03\x01". This supposition is true?
    ejp, you say that the "Termination is quite tricky." I have changed my code following yours suggestions (using the join and the shutdownOutput) but the threads don't die.
    I explain you what I do:
    (in time 1)
    I launch the thread (threadFirefoxToApache) that reads data from Firefox and sends to Apache.
    I launch the thread (threadApacheToFirefox) that reads data from Apache and sends to Firefox.
    (in time 2)
    threadFirefoxToApache sends the firts data to the server.
    threadApacheToFirefox is waiting that the server says something.
    (in time 3)
    threadFirefoxToApache is waiting that Firefox says something.
    threadApacheToFirefox sends data to Firefox.
    (in time 4)
    threadFirefoxToApache is waiting that Firefox says something.
    threadApacheToFirefox is waiting that Firefox says something.
    and they are waiting... and never finish.
    In time 2, these first data are encrypted. The server receives these data and It doesn't understand. In time 3, the server sends a HTTP response "501 Method Not Implemented", here there is a problem because this data must be encrypt. According to the documentation that I read, the proxy cannot "understand" this data but I can "understand" this data. What's happen?
    Firefox encrypt the data and send to the proxy. This It's correct.
    The proxy encrypt the data another time, because I use the SSLSocket to send the data to the server. Then the server receives the data encrypted two times, when decrypt the data gets the data encrypted one time. And this is the reason why the server doesn't understand the data that sends Firefox. It's correct? May be.
    Then If I want that the server receives the data encrypted one time I need to use the socketToServer, It's correct?
    I will supposed that yes. If I use the socketToServer, the proxy doesn't understand nothing, because the data received from the socketToServer are encrypted (I only see simbols), but the Apache log says that there is a problem with the version? (If I use the socketToServer the threads die)
    >
    [Tue May 04 19:55:42 2010] [debug] ssl_engine_kernel.c(1760): OpenSSL: Loop: SSLv3 read finished A
    [Tue May 04 19:55:42 2010] [debug] ssl_engine_kernel.c(1760): OpenSSL: Loop: SSLv3 write change cipher spec A
    [Tue May 04 19:55:42 2010] [debug] ssl_engine_kernel.c(1760): OpenSSL: Loop: SSLv3 write finished A
    [Tue May 04 19:55:42 2010] [debug] ssl_engine_kernel.c(1760): OpenSSL: Loop: SSLv3 flush data
    [Tue May 04 19:55:42 2010] [debug] ssl_engine_kernel.c(1756): OpenSSL: Handshake: done
    [Tue May 04 19:55:42 2010] [info] Connection: Client IP: 127.0.0.1, Protocol: TLSv1, Cipher: RC4-MD5 (128/128 bits)
    [Tue May 04 19:55:42 2010] [debug] ssl_engine_io.c(1817): OpenSSL: read 5/5 bytes from BIO#29bd910 [mem: 29ea0a8] (BIO dump follows)
    [Tue May 04 19:55:42 2010] [debug] ssl_engine_io.c(1750): -------------------------------------------------------------------------
    [Tue May 04 19:55:42 2010] [debug] ssl_engine_io.c(1789): | 0000: 80 7f 01 03 .... |
    [Tue May 04 19:55:42 2010] [debug] ssl_engine_io.c(1793): | 0005 - <SPACES/NULS>
    [Tue May 04 19:55:42 2010] [debug] ssl_engine_io.c(1795): ------------------------------------------------------------------------
    [Tue May 04 19:55:42 2010] [debug] ssl_engine_kernel.c(1770): OpenSSL: Write: SSL negotiation finished successfully
    [Tue May 04 19:55:42 2010] [info] [client 127.0.0.1] SSL library error 1 reading data
    [Tue May 04 19:55:42 2010] [info] SSL Library Error: 336130315 error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number
    [Tue May 04 19:55:42 2010] [debug] ssl_engine_kernel.c(1770): OpenSSL: Write: SSL negotiation finished successfully
    [Tue May 04 19:55:42 2010] [info] [client 127.0.0.1] Connection closed to child 63 with standard shutdown (server localhost:443)
    >
    What option is the correct? I need use the SSLSocketToServer or socketToServer to send/read the data to/from the server?. Use the SSLSocket has sense because the data travel in a secure socket, but use the Socket also has sense because the data are encrypted and they are protected by this encription. It's complicated...

  • Is there a restriction on length of Http request posted to a Iplanet Web Server ?

    I am submitting an Http Request by POST method to my server. The request will be received and forwarded by Iplanet Web Server to a clustered Weblogic environment, which will then be handled by Java Servlets. The problem I am facing is that when the length of the request shoots up to around 2000 bytes, NES doesn't receive and forward the request to Weblogic. There is no fixed cut-off for the length, it keeps fluctuating.
    I observed the following after hitting the server hundreds of times with Http Requests that vary in length.
    1) If length of Request is below 1500 bytes, request always goes through successfully.
    2) In a range of 1500 bytes to 2000 bytes, request fails most of the times. (Around 80 %)
    3) Requests with length above 2000K invariably fail, though it just worked for a 2.4K request on one occasion (out of some 100 hits)
    Note that by "length of request", I mean the data I post through Http Request (I just have a single parameter in Http request having the literal "XML" as key and a well formed XML document as value. That is equivalent to submitting a HTML form just having a text area called "XML" containing a XML document. )
    I presume that the length of actual Http Request is slightly greater than that of XML (probably by around 100 bytes).
    My Iplanet documentation says that the upper limit on the length of a POST Http Request is 64 K, which is way above the value (2-3 K) at which I am facing the problem.

    Hi Ganesh
    Did you check the HTTP Persistent timeout of your server? Check the value which has been set up by default. Try increasing the timeout value and try again.
    follow these steps it might solve your problem:
    (1)Goto Web Server Administration Server, select the server you want to manage.
    (2)Select Preference >> Perfomance Tuning.
    (3)set HTTP Persistent Connection Timeout to your choice (eg 180 sec for three minutes)(note : if you are posting large amount of data or file increase the value accordingly)
    (4) Apply changes and restart the server.
    *Setting the timeout to a lower value, however, may    prevent the transfer of large files as timeout does not refer to the time that the connection has been idle. For example, if you are using a 2400 baud modem, and the request timeout is set to 180 seconds, then the maximum file size that can be transferred before   the connection is closed is 432000 bits (2400 multiplied by 180)
    If this doesnot solve your problem notify me
    regards
    T.Raghulan
    [email protected]

Maybe you are looking for

  • Recovery of lost printers after Archive and Install

    Hi, I just finished an Archive and Install of Leopard, and I discovered that one of the side-effects of doing this is that my printers are all gone. I sort of expected this, and I have a full system backup of the system I rebuilt, so if all else fail

  • Windows 8.1 Pro will not let me join to domain!

    Hi There, I have purchased a new computer for the company I work for and along with it a copy of Windows 8.1 Pro. The computer is an HP Envy. I inserted the Windows 8.1 Pro DVD that we bought separately and installed it.  it never asked me for a prod

  • Epress website not working correctly in Internet E...

    I have been reading newspapers at www.epress.fi for some time without a problem on my lumia 1020. After I installed the Lumia Cyan update reading is not possible anymore. I usually read: Vasabladet and Hufvudstadsbladet. After the update it does open

  • Changing the pulse width of a counter on-the-fly - ?

    I'm seeing strange behavior when trying to change the pulse width of a counter while it is running continuously.  Using the property node I can set the DAQmx Channel Properties "Low Time" and "High Time" when the values are changed by the user (see a

  • Manual Weighted Function Issue

    Hi Experts, SRM 7 Extended Classic Scenario I am creating a RFX (doc. type BIDX) using the role of a Strategic Purchaser. There is one item in the RFX. Also, there is a header level question of type "Text". This header level question has manual valua