import com.cvs.*; import javax.xml.rpc.handler.*; import javax.xml.namespace.*; import java.util.*; public class PSClient { public static void main(String[] args) { try { System.out.println("1: "+ System.getProperty("javax.xml.soap.MessageFactory")); System.out.println("2: "+ System.getProperty("javax.xml.rpc.ServiceFactory")); // System.setProperty("javax.xml.soap.MessageFactory", "com.sun.xml.messaging.saaj.soap.MessageFactoryImpl"); // System.setProperty("javax.xml.soap.MessageFactory", "weblogic.webservice.core.soap.MessageFactoryImpl"); // System.setProperty( "javax.xml.rpc.ServiceFactory", "weblogic.webservice.core.rpc.ServiceFactoryImpl"); //String url = "http://sunpsdw1.cvs.com:8085/PSIGW/HttpListeningConnector"; //String port = "DEPTSoap"; System.out.println("Start main()"); DEPTCIService_Impl ws = new DEPTCIService_Impl(); com.cvs.DEPTSoap deptSOAP = ws.getDEPTSoap(); /* QName portQName = new QName("http://sunpsdw1.cvs.com:8085/PSIGW/HttpListeningConnector", "DEPTSoap"); // handler code start HandlerRegistry reg = ws.getHandlerRegistry(); List li = new ArrayList(); li.add(new HandlerInfo(PSClientHandler.class, null,null)); reg.setHandlerChain(portQName, li); // hendler code ends */ // .getHandlerChain(portQName).add(hInfo); System.out.println("befor GET"); // System.out.println("OUTPUT " + deptSOAP.get__CompIntfc__DEPT()); com.cvs.DEPT_TBL[] deptTbl = deptSOAP.get__CompIntfc__DEPT("CVSUS", "99431"); System.out.println("Got the results from PeopleSoft: " + deptTbl); } catch (Exception ex) { ex.printStackTrace(); } } }