RE: RE: Axis C++ SSL problem
I have tried that way too. The problem is that in the Call.cpp things are hardcoded. Axis will always look into [AXISCPP_DEPLOY]\axiscpp.conf for the key Channel_HTTP_SSL. If it doesn't file that key you cannot use SSL. NOTE: AXISCPP_DEPLOY - environment variable My axiscpp.conf: Channel_HTTP_SSL:C:\myprojects\axis-c-1-5-win32\bin\HTTPSSLChannel.dll -Original Message- From: huagang [mailto:[EMAIL PROTECTED] Sent: 24 mai 2005 03:51 To: Apache AXIS C User List Subject: Re: RE: Axis C++ SSL problem I guess you should use the other constructor, StockQuoteService(const char* pchEndpointUri, AXIS_PROTOCOL_TYPE eProtocol=APTHTTP1_1); - huagang {/--\} [EMAIL PROTECTED] ( (oo) ) 2005-05-24 62125151-6226 === 2005-05-23 20:35:04 === is anyone there who can give me a clue Please _ From: Popa Horia [mailto:[EMAIL PROTECTED] Sent: 23 mai 2005 10:37 To: 'axis-c-user@ws.apache.org' Subject: RE: Axis C++ SSL problem I have to mention that i have user Axis 1.5 and Axis 1.6 20 May nightly build _ From: Popa Horia [mailto:[EMAIL PROTECTED] Sent: 21 mai 2005 10:09 To: 'axis-c-user@ws.apache.org' Subject: Axis C++ SSL problem Hi there, I have a Java Axis server and i'm trying to connect with a stub written in C++. It works fine on http but it failes on https. I see when I run the program in debug mode that the HttpSSLChannel is never loaded. The application failes at this line in the Stub: if (AXIS_SUCCESS != m_pCall-initialize(CPP_DOC_PROVIDER)) return pReturn; My Tomcat server is behind Apache 1.3.1 and i'm using MOD_JK to make those applications talk to each other. My guess is that the request never leaves my client. To prove this I have used a network sniffer and indeed, the client dies before any request is sent to the server. Maybe I don't have all the DDLs ?? I have installed openssl The client runs on Windows. Any help is appeciated. thanks AEROSPACEINFORMATIONCO., LTD. virus-free and secure email = = = = = = = = = = = = = = = = = = = = AEROSPACEINFORMATIONCO., LTD. virus-free and secure email
RE: Axis C++ SSL problem
It got, thank you. Here is the ISSUE: i'm creating an installer with InstallShield. InstallShield decompress the files in a temporary directory. Now I have to set the environment variable AXISCPP_DEPLOY to point to the directory where Axis can find axiscpp.conf. This make things a little harder. It would be nice if youcould specify with an API call the HTTPS DLL. To make things clear: AXIS works with SSL but you have to set it in a very unusual way. Thanks From: Fred Preston [mailto:[EMAIL PROTECTED] Sent: 24 mai 2005 15:36To: axis-c-user@ws.apache.orgSubject: Fw: Axis C++ SSL problem Hi Popa, I don't know if this message got through... Regards,Fred Preston.- Forwarded by Fred Preston/UK/IBM on 05/24/2005 01:33 PM - Fred Preston 05/24/2005 10:55 AM To: axis-c-user@ws.apache.org cc: From: Fred Preston/UK/[EMAIL PROTECTED] Subject: Axis C++ SSL problemHi Popa, There could be several reasons why SSL is not working for you... The SSL channel library is only loaded when it is declared in the axiscpp.conf file. Check that your axiscpp.conf file contains the following line:- Channel_HTTP_SSL:inst_dir\bin\HTTPGSKitChannel.dll When inst_dir is the directory where you have installed Axis. You do not mention what type of exception is caught by your application. You should have a try...catch block around the web services code. Here is an example of the type of exception handling you should be using... try { WebServicews( pszEndpoint); cout "WebService test returns " ws.test( 0) endl; } catch( SoapFaultException sfe) { // Catch any SOAP fault cout "SoapFaultException: " sfe.getFaultCode() " " sfe.what() endl; } catch( AxisException e) { // Catch an AXIS exception cout "AxisException: " e.getExceptionCode() " " e.what() endl; } catch( exception e) { // Catch a general exception cout "Unknown Exception: " e.what() endl; } catch( ...) { // Catch any other exception cout "Unspecified Exception: " endl; } Try these first and see how you get on... It could be the problem lies elsewhere, but any exception thrown will help to narrow the search area :-) Regards,Fred Preston.is anyone there who can give me a clue Please _ From: Popa Horia [mailto:[EMAIL PROTECTED] Sent: 23 mai 2005 10:37To: 'axis-c-user@ws.apache.org'Subject: RE: Axis C++ SSL problemI have to mention that i have user Axis 1.5 and Axis 1.6 20 May nightlybuild _ From: Popa Horia [mailto:[EMAIL PROTECTED] Sent: 21 mai 2005 10:09To: 'axis-c-user@ws.apache.org'Subject: Axis C++ SSL problem Hi there, I have a Java Axis server and i'm trying to connect with a stubwritten in C++. It works fine on http but it failes on https.I see when I run the program in debug mode that the HttpSSLChannel is neverloaded. The application failes at this line in the Stub: if (AXIS_SUCCESS !=m_pCall-initialize(CPP_DOC_PROVIDER)) return pReturn; My Tomcat server is behind Apache 1.3.1 and i'm using MOD_JK to makethose applications talk to each other. My guess is that the request neverleaves my client. To prove this I have used a network sniffer and indeed,the client dies before any request is sent to the server. Maybe I don't haveall the DDLs ?? I have installed openssl The client runs on Windows. Any help is appeciated. thanks AEROSPACEINFORMATIONCO., LTD. virus-free and secure email
RE: Axis C++ SSL problem
Hi Popa, This is something we are looking into (i.e. being able to set configuration information from the client application), but unfortunately, there are no commands at present to do this. Thus, you are stuck with having to configure Axis through the axiscpp.conf file :-(. If at all possible, could you elaborate on the unusual steps you have taken to get SSL working (in your e-mail you say, AXIS works with SSL but you have to set it in a very unusual way.)? Regards, Fred Preston. Popa Horia [EMAIL PROTECTED] 05/24/2005 02:22 PM Please respond to Apache AXIS C User List To: 'Apache AXIS C User List' axis-c-user@ws.apache.org cc: Subject: RE: Axis C++ SSL problem It got, thank you. Here is the ISSUE: i'm creating an installer with InstallShield. InstallShield decompress the files in a temporary directory. Now I have to set the environment variable AXISCPP_DEPLOY to point to the directory where Axis can find axiscpp.conf. This make things a little harder. It would be nice if you could specify with an API call the HTTPS DLL. To make things clear: AXIS works with SSL but you have to set it in a very unusual way. Thanks From: Fred Preston [mailto:[EMAIL PROTECTED] Sent: 24 mai 2005 15:36 To: axis-c-user@ws.apache.org Subject: Fw: Axis C++ SSL problem Hi Popa, I don't know if this message got through... Regards, Fred Preston. - Forwarded by Fred Preston/UK/IBM on 05/24/2005 01:33 PM - Fred Preston 05/24/2005 10:55 AM To:axis-c-user@ws.apache.org cc: From:Fred Preston/UK/[EMAIL PROTECTED] Subject:Axis C++ SSL problem Hi Popa, There could be several reasons why SSL is not working for you... The SSL channel library is only loaded when it is declared in the axiscpp.conf file. Check that your axiscpp.conf file contains the following line:- Channel_HTTP_SSL:inst_dir\bin\HTTPGSKitChannel.dll When inst_dir is the directory where you have installed Axis. You do not mention what type of exception is caught by your application. You should have a try...catch block around the web services code. Here is an example of the type of exception handling you should be using... try { WebServicews( pszEndpoint); cout WebService test returns ws.test( 0) endl; } catch( SoapFaultException sfe) { // Catch any SOAP fault cout SoapFaultException: sfe.getFaultCode() sfe.what() endl; } catch( AxisException e) { // Catch an AXIS exception cout AxisException: e.getExceptionCode() e.what() endl; } catch( exception e) { // Catch a general exception cout Unknown Exception: e.what() endl; } catch( ...) { // Catch any other exception cout Unspecified Exception: endl; } Try these first and see how you get on... It could be the problem lies elsewhere, but any exception thrown will help to narrow the search area :-) Regards, Fred Preston. is anyone there who can give me a clue Please _ From: Popa Horia [mailto:[EMAIL PROTECTED] Sent: 23 mai 2005 10:37 To: 'axis-c-user@ws.apache.org' Subject: RE: Axis C++ SSL problem I have to mention that i have user Axis 1.5 and Axis 1.6 20 May nightly build _ From: Popa Horia [mailto:[EMAIL PROTECTED] Sent: 21 mai 2005 10:09 To: 'axis-c-user@ws.apache.org' Subject: Axis C++ SSL problem Hi there, I have a Java Axis server and i'm trying to connect with a stub written in C++. It works fine on http but it failes on https. I see when I run the program in debug mode that the HttpSSLChannel is never loaded. The application failes at this line in the Stub: if (AXIS_SUCCESS != m_pCall-initialize(CPP_DOC_PROVIDER)) return pReturn; My Tomcat server is behind Apache 1.3.1 and i'm using MOD_JK to make those applications talk to each other. My guess is that the request never leaves my client. To prove this I have used a network sniffer and indeed, the client dies before any request is sent to the server. Maybe I don't have all the DDLs ?? I have installed openssl The client runs on Windows. Any help is appeciated. thanks AEROSPACEãINFORMATIONãCO., LTD. virus-free and secure email
RE: Axis C++ SSL problem
By unusual way I ment: create the conf fileand the environment variable.It wasn't so easy for me to figure this out. It wasn't easy because I didn't use the conf file and without looking into the code i would never figure out how to do it. Still this doesn't solve me the issue of changing the environment for the AxisClient.dll: - I run the installer - I set the environment variable to point to the temp directory - I generate the conf file in the temp directory - Make a call to the Webservice. To set the environment variable I use SetEnvironmentVariable .The problem is that it seems like the AxisClient DLL doesn't see this variable. I know that each process gets a copy of the environment from the parent process. I don't know why this isn't working for DLLs. Any ideas ? Axis uses genenv call from C++ Runtime to read the AXISCPP_DEPLOY variable. From: Fred Preston [mailto:[EMAIL PROTECTED] Sent: 24 mai 2005 17:50To: Apache AXIS C User ListSubject: RE: Axis C++ SSL problem Hi Popa, This is something we are looking into (i.e. being able to set configuration information from the client application), but unfortunately, there are no commands at present to do this. Thus, you are stuck with having to configure Axis through the axiscpp.conf file :-(. If at all possible, could you elaborate on the unusual steps you have taken to get SSL working (in your e-mail you say, "AXIS works with SSL but you have to set it in a very unusual way.")? Regards,Fred Preston. Popa Horia [EMAIL PROTECTED] 05/24/2005 02:22 PM Please respond to "Apache AXIS C User List" To: "'Apache AXIS C User List'" axis-c-user@ws.apache.org cc: Subject: RE: Axis C++ SSL problem It got, thank you. Here is the ISSUE: i'm creating an installer with InstallShield. InstallShield decompress the files in a temporary directory. Now I have to set the environment variable AXISCPP_DEPLOY to point to the directory where Axis can find axiscpp.conf. This make things a little harder. It would be nice if you could specify with an API call the HTTPS DLL. To make things clear: AXIS works with SSL but you have to set it in a very unusual way. Thanks From: Fred Preston [mailto:[EMAIL PROTECTED] Sent: 24 mai 2005 15:36To: axis-c-user@ws.apache.orgSubject: Fw: Axis C++ SSL problemHi Popa, I don't know if this message got through... Regards,Fred Preston.- Forwarded by Fred Preston/UK/IBM on 05/24/2005 01:33 PM - Fred Preston 05/24/2005 10:55 AM To: axis-c-user@ws.apache.org cc: From: Fred Preston/UK/[EMAIL PROTECTED]Subject: Axis C++ SSL problem Hi Popa,There could be several reasons why SSL is not working for you... The SSL channel library is only loaded when it is declared in the axiscpp.conf file. Check that your axiscpp.conf file contains the following line:- Channel_HTTP_SSL:inst_dir\bin\HTTPGSKitChannel.dll When inst_dir is the directory where you have installed Axis. You do not mention what type of exception is caught by your application. You should have a try...catch block around the web services code. Here is an example of the type of exception handling you should be using... try {WebServicews( pszEndpoint);cout "WebService test returns " ws.test( 0) endl; } catch( SoapFaultException sfe) {// Catch any SOAP faultcout "SoapFaultException: " sfe.getFaultCode() " " sfe.what() endl; } catch( AxisException e) { // Catch an AXIS exception cout "AxisException: " e.getExceptionCode() " " e.what() endl; } catch( exception e) { // Catch a general exception cout "Unknown Exception: " e.what() endl; } catch( ...) { // Catch any other exception cout "Unspecified Exception: " endl; } Try these first and see how you get on... It could be the problem lies elsewhere, but any exception thrown will help to narrow the search area :-) Regards,Fred Preston.is anyone there who can give me a clue Please _ From: Popa Horia [mailto:[EMAIL PROTECTED] Sent: 23 mai 2005 10:37To: 'axis-c-user@ws.apache.org'Subject: RE: Axis C++ SSL problemI have to mention that i have user Axis 1.5 and Axis 1.6 20 May nightlybuild _ From: Popa Horia [mailto:[EMAIL PROTECTED] Sent: 21 mai 2005 10:09To: 'axis-c-user@ws.apache.org'Subject: Axis C++ SSL problem Hi there, I have a Java Axis server and i'm trying to connect with a stubwritten in C++. It works fine on http but it failes on https.I see when I run the program in debug mode that the HttpSSLChannel is neverloaded. The application failes at this line in the Stub: if (AXIS_SUCCESS !=m_pCall-initialize(CPP_DOC_PROVIDER)) return pReturn; My Tom
RE: Axis C++ SSL problem
Hi Popa, I'm not familiar with IS, but it may well be that environment variables set whilst the current instance of IS is running will not be 'seen' by IS until it is run again. I know that if you change environment variables whilst running some programs they will not pick up the changes until they are next run (MSVC is definitely one such application). You will have to read the IS manuals to see if there is any information/examples on this subject... Regards, Fred Preston. Popa Horia [EMAIL PROTECTED] 05/24/2005 04:21 PM Please respond to Apache AXIS C User List To: 'Apache AXIS C User List' axis-c-user@ws.apache.org cc: Subject: RE: Axis C++ SSL problem By unusual way I ment: create the conf file and the environment variable. It wasn't so easy for me to figure this out. It wasn't easy because I didn't use the conf file and without looking into the code i would never figure out how to do it. Still this doesn't solve me the issue of changing the environment for the AxisClient.dll: - I run the installer - I set the environment variable to point to the temp directory - I generate the conf file in the temp directory - Make a call to the Webservice. To set the environment variable I use SetEnvironmentVariable .The problem is that it seems like the AxisClient DLL doesn't see this variable. I know that each process gets a copy of the environment from the parent process. I don't know why this isn't working for DLLs. Any ideas ? Axis uses genenv call from C++ Runtime to read the AXISCPP_DEPLOY variable. From: Fred Preston [mailto:[EMAIL PROTECTED] Sent: 24 mai 2005 17:50 To: Apache AXIS C User List Subject: RE: Axis C++ SSL problem Hi Popa, This is something we are looking into (i.e. being able to set configuration information from the client application), but unfortunately, there are no commands at present to do this. Thus, you are stuck with having to configure Axis through the axiscpp.conf file :-(. If at all possible, could you elaborate on the unusual steps you have taken to get SSL working (in your e-mail you say, AXIS works with SSL but you have to set it in a very unusual way.)? Regards, Fred Preston. Popa Horia [EMAIL PROTECTED] 05/24/2005 02:22 PM Please respond to Apache AXIS C User List To:'Apache AXIS C User List' axis-c-user@ws.apache.org cc: Subject:RE: Axis C++ SSL problem It got, thank you. Here is the ISSUE: i'm creating an installer with InstallShield. InstallShield decompress the files in a temporary directory. Now I have to set the environment variable AXISCPP_DEPLOY to point to the directory where Axis can find axiscpp.conf. This make things a little harder. It would be nice if you could specify with an API call the HTTPS DLL. To make things clear: AXIS works with SSL but you have to set it in a very unusual way. Thanks From: Fred Preston [mailto:[EMAIL PROTECTED] Sent: 24 mai 2005 15:36 To: axis-c-user@ws.apache.org Subject: Fw: Axis C++ SSL problem Hi Popa, I don't know if this message got through... Regards, Fred Preston. - Forwarded by Fred Preston/UK/IBM on 05/24/2005 01:33 PM - Fred Preston 05/24/2005 10:55 AM To:axis-c-user@ws.apache.org cc: From:Fred Preston/UK/[EMAIL PROTECTED] Subject:Axis C++ SSL problem Hi Popa, There could be several reasons why SSL is not working for you... The SSL channel library is only loaded when it is declared in the axiscpp.conf file. Check that your axiscpp.conf file contains the following line:- Channel_HTTP_SSL:inst_dir\bin\HTTPGSKitChannel.dll When inst_dir is the directory where you have installed Axis. You do not mention what type of exception is caught by your application. You should have a try...catch block around the web services code. Here is an example of the type of exception handling you should be using... try { WebServicews( pszEndpoint); cout WebService test returns ws.test( 0) endl; } catch( SoapFaultException sfe) { // Catch any SOAP fault cout SoapFaultException: sfe.getFaultCode() sfe.what() endl; } catch( AxisException e) { // Catch an AXIS exception cout AxisException: e.getExceptionCode() e.what() endl; } catch( exception e) { // Catch a general exception cout Unknown Exception: e.what() endl; } catch( ...) { // Catch any other exception cout Unspecified Exception: endl; } Try these first and see how you get on... It could be the problem lies elsewhere, but any exception thrown will help to narrow the search area :-) Regards, Fred Preston. is anyone there who can give me a clue Please _ From: Popa Horia [mailto:[EMAIL PROTECTED] Sent: 23 mai 2005 10:37 To: 'axis-c-user@ws.apache.org' Subject: RE: Axis C++ SSL problem I have to mention that i have user Axis 1.5 and Axis 1.6 20 May nightly build
RE: Axis C++ SSL problem
I have to mention that i have user Axis 1.5 and Axis 1.6 20 May nightly build From: Popa Horia [mailto:[EMAIL PROTECTED] Sent: 21 mai 2005 10:09To: 'axis-c-user@ws.apache.org'Subject: Axis C++ SSL problem Hi there, I have a Java Axis server and i'm trying to connect with a stubwritten in C++. It works fine on http but it failes on https. I see when I run the program in debug mode that the HttpSSLChannel is never loaded. The application failes at this line in the Stub: if (AXIS_SUCCESS != m_pCall-initialize(CPP_DOC_PROVIDER)) return pReturn; My Tomcat server is behind Apache 1.3.1 and i'm using MOD_JK to make those applications talk to each other. My guess is that the request never leaves my client. To prove this I have used a network sniffer and indeed, the client dies before any request is sent to the server. Maybe I don't have all the DDLs ?? I have installed openssl The client runs on Windows. Any help is appeciated. thanks