This discussion is archived
0 Replies Latest reply: May 14, 2011 12:25 AM by Gauravv RSS

Intermittent Connection while connecting to https securePay in iStore

Gauravv Expert
Currently Being Moderated

We are facing a strange issue in iStore in DMZ

We are using the following coding in a jsp to connect to securePay website over https protocol and sending a xml message to get the response back.

          String PaymentUrl = "";
          String SecurePayXml = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"+
                    "<TxnList count='1'>"+
                         "<Txn ID='1'>"+
          System.setProperty("proxySet", "true");
System.out.println(" Setting Proxy ");     
     System.setProperty("http.auth.ntlm.domain", "");
     //For SSL - HTTPS
     System.setProperty("https.proxyHost", "");
     System.setProperty("https.proxyPort", "8080");
     System.setProperty("java.protocol.handler.pkgs", "");
     Security.addProvider(new ;
System.out.println(" Setting Proxy Ports");     

System.out.println("Removed HTTP Proxy Port settings");
          URL url = new URL(PaymentUrl);
     URLConnection conn = url.openConnection();
     System.out.println(" Getting Connection "+conn);     

     System.out.println("printing before sending==========================");

     OutputStreamWriter wr = new OutputStreamWriter(conn.getOutputStream());
System.out.println("getting outputStream");

System.out.println("Getting Response");
     // Get the response
     BufferedReader rd = new BufferedReader(new InputStreamReader(conn.getInputStream()));
     String line;
System.out.println("Got Response");

     while ((line = rd.readLine()) != null) {
          System.out.println("x10asecurePaySync.jsp Line " + line);
     System.out.println("RESPONSE ==========================");
catch(Exception e)

The same coding if we execute through command prompt we are able to get response but when used in iStore in DMZ
then we get the response intermittently after boncing apache a number of times.

Please let us know any pointers on it as it has become a major show stopper for the application to Go Live.

Any help will be highly appreciated.



  • Correct Answers - 10 points
  • Helpful Answers - 5 points