Thanks for the reply. I really appreciate it ! I have tried initializing the
library, but still facing same problem.
- Is there anyway to decode the error string "error:00000001::lib(0)
:func(0) :reason(1)", to find out what is actually going wrong ? means what
does reason(1) stands here for ?
- Is a distributable certificate is must for making a https connection ? I
have checked with the server owner, as per the feedback they are not using
any client site certificates & having certificate only on the server side
(which I need not to worry). By the way we are using same web services,
there everything is working fine, this problem which i am facing is only on
mac.
Please let me know if there is anything else which I can check here.
Here is the code which i have written, rest all code is autogenerated by
gsoap. thanks
SSL_load_error_strings(); /* readable error messages */
int value = SSL_library_init();
LicenseManagerHttpBinding licenseService;
licenseService.endpoint = "
https://10.102.48.28:8443/LicenseManager/services/LicenseManager";
_ns1__Checkout ns1__Checkout;
_ns1__CheckoutResponse ns1__CheckoutResponse_;
value = licenseService.__ns1__Checkout(&ns1__Checkout,
&ns1__CheckoutResponse_); // Web Service function call ... which fails as
per the details in below thread.
On Fri, Apr 11, 2008 at 2:19 AM, <[EMAIL PROTECTED]> wrote:
> Hello,
>
> > I am facing some problem when trying to use a https service.
> SSL_connect() is failing
> > with error -1 (in stub code ...generated using gsoap ... code snippet
> below), which
> > means some fatal error occured at the protocol level or connection
> failure occured.
> > Further getting the SSL error code (using SSL_get_error) gives 1 (error
> in SSL library).
> > Error sting is error:00000001::lib(0) :func(0) :reason(1).
> >
> > I am connected to the network & able to browse my service (https://
> > localhost.webserver.net:8443/Version/services/Version?wsdl) in firefox
> without any
> > problems. Can anyone give me some pointers why it can occur ?
> >
> > PS: Before this i tried to use the service using http, that was working
> perfectly fine.
> > Is there anything special needs to be done in order to use the https
> service ? I have
> > build my code with the SSL support.
> >
> > Code sinppet which is causing the problem (from stdsoap2.cpp):
> > /* Try connecting until success or timeout */
> > for (;;)
> > { if ((r = SSL_connect(soap->ssl)) <= 0) ********** returns -1
> > { int err = SSL_get_error(soap->ssl, r); ********* returns 1
> > char *strErr = new char[255];
> > strErr = ERR_error_string(err, strErr); ********* strErr is
> comming as :
> > error:00000001::lib(0) :func(0) :reason(1)
> >
> > if (err != SSL_ERROR_NONE && err != SSL_ERROR_WANT_READ && err !=
> SSL_ERROR_WANT_WRITE)
> > { soap_set_sender_error(soap, soap_ssl_error(soap, r), "SSL
> connect failed in
> > tcp_connect()", SOAP_SSL_ERROR);
> > soap->fclosesocket(soap, fd);
> > return SOAP_INVALID_SOCKET; ********** My program is
> returning from here.
>
> Try to initialize SSL library with SSL_library_init() first.
>
> Best regards,
> --
> Marek Marcola <[EMAIL PROTECTED]>
>
> ______________________________________________________________________
> OpenSSL Project http://www.openssl.org
> User Support Mailing List [email protected]
> Automated List Manager [EMAIL PROTECTED]
>