Hi Cyrille Le Clerc - JDK: 1.4_01 - Tomcat 5.0:28 - Axis 1.3 With the tcp-mon this is the message: <?xml version="1.0" encoding="ISO-8859-1"?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soapenv:Body> <soapenv:Fault> <faultcode>soapenv:Server.userException</faultcode> <faultstring>java.lang.reflect.InvocationTargetException</faultstring> <detail> <ns1:hostname xmlns:ns1="http://xml.apache.org/axis/">avisortech02</ns1:hostname> </detail> </soapenv:Fault> </soapenv:Body> </soapenv:Envelope> In the tomcat console no show me nothing..... I have this client for consume the web service secure with the ibm jars public class StubClient { private static String PSEURL = "https://desarrollo.pse.com.co/psewebservices/mainservices.asmx"; public StubClient() { try{ initProviders(); } catch(Exception e){ e.printStackTrace(); } } private static void initProviders() throws Exception { System.setProperty("javax.net.ssl.trustStore","E:\\key\\AvisortechOfic.db"); System.setProperty("javax.net.ssl.keyStorePassword","pkalmacen"); System.setProperty("java.protocol.handler.pkgs","com.sun.net.ssl.internal.www.protocol"); Provider[] providers = Security.getProviders(); for(int i=0;i<providers.length;i++) System.out.println(i+" - "+providers[i].getClass().toString()); Object fact = SSLSocketFactory.getDefault(); System.out.println("Default provider = "+fact.getClass().toString()); if(!fact.getClass().toString().equals("class com.sun.net.ssl.internal.ssl.SSLSocketFactoryImpl") ) throw new Exception("SSL no disponíble"); } public ArrayOfGetBankListResponseType[] getBankList(GetBankListRequestType request) { ArrayOfGetBankListResponseType[] bank = null; try { MainServicesImplLocator loc = new MainServicesImplLocator(); MainServicesImplSoapStub cli = (MainServicesImplSoapStub)loc.getMainServicesImplSoap( new URL(PSEURL) ); MessageHeader header = new MessageHeader(); header.setTo("to 123"); header.setFrom("from 123"); header.setRepresentingParty("repr 123"); cli.setMessageHeader( header ); GetbankListInformationType gbl_request=new GetbankListInformationType(); gbl_request.setEntityCode("98658"); GetBankListResponseInformationType[] gbl_response=cli.getBankList(gbl_request); bank = new ArrayOfGetBankListResponseType[gbl_response.length]; for(int i=0; i<gbl_response.length;i++) { bank[i] = new ArrayOfGetBankListResponseType(); bank[i].setFinancialInstitutionCode(gbl_response[i].getFinancialInstitutionCode()); bank[i].setFinancialInstitutionName(gbl_response[i].getFinancialInstitutionName()); System.out.println(" BankID="+gbl_response[i].getFinancialInstitutionCode()+" BankName="+gbl_response[i].getFinancialInstitutionName()); } header = cli.getMessageHeader(); System.out.println("GetBankList called"); return bank; } catch (Exception e) { System.out.println(e.getMessage()); return bank; } } } In the red line stop when I done the debug with eclipse and in this line show me the message java.lang.reflect.InvocationTargetException and stop teh process......but I run the client as JavaAplication and I can consume the service. any idea...... Thanks. Nicolás G. Rico --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] |
- Re: Simple Question Axis Nicolas Guaneme
- Re: Simple Question Axis Cyrille Le Clerc
- Re: Simple Question Axis Nicolas Guaneme
- Re: Simple Question Axis Cyrille Le Clerc
- Re: Simple Question Axis Nicolas Guaneme