Tim-  

Thanks for responding.  I need to learn to write these messages a little
more clearly.

Basically, I downloaded the JSSE stuff from Sun and tweaked the J2sdkee1.2.1
to allow me access to the SSL routines as per Sun's instructions.  I
compiled the Java class and executed it (see below).  It runs, so I know
it's not the code that has the problem.

When I bring it into Orion as a class instantiated by a <jsp:usebean> tag, I
then get the error message.

So I'm thinking I need to apply the JSSE stuff to Orion in some way, and I
can find no information on how to do that...
-- 

-Geoff Marshall, Director of Development

.......................................................
t e r r a s c o p e                      (415) 951-4944
54 Mint Street, Suite 110         direct (415) 625-0349
San Francisco, CA  94103             fax (415) 625-0306
.......................................................

import java.io.*;
import java.net.*;
import java.util.*;
import javax.servlet.http.*;
import java.text.*;

// Take a credit card transaction and interact with the authorization
// company.  Get an authorization.  Parse return. Store it in the database.
Handle errors.
// decide which page to display.
// call this with all the parameters on the url...
public class AuthBean {
    // authorization object
    // consists of information regarding requested transaction
    // and response from that transaction.
    private String authURL;
    
    public AuthBean() {
        
System.setProperty("java.protocol.handler.pkgs","com.sun.net.ssl.internal.ww
w.protocol");
        this.authURL = "https://www.verisign.com/"
    }
    
    public void setGateway(String gateway) {
        this.authURL = gateway;
    }
    
    public String authorize(String parms) throws Exception {
        URL gateway = new URL(this.authURL + "?" + parms);
        BufferedReader in = new BufferedReader(new
InputStreamReader(gateway.openStream()));

        String inputLine=null, authorization="";

        while ((inputLine = in.readLine()) != null)
            authorization = authorization + inputLine;

        in.close();
        return authorization;
    }
    
    public static void main(String args[]) {
        AuthBean ab = new AuthBean();
        
        try {
            System.out.println(ab.authorize("test"));
        } catch(Exception e) {
            System.out.println("EXCEPTION:" + e);
        }
    }        
}


Reply via email to