Hi,
I am sure wsdl2h was built with openssl but I am still getting above error message from gsoap-2.8.6.zip
Would you please advise what I may did wrong ?
tjyang@t30:~/programming/gsoap-2.8$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=11.10
DISTRIB_CODENAME=oneiric
DISTRIB_DESCRIPTION="Ubuntu 11.10"
tjyang@t30:~/programming/gsoap-2.8$
tjyang@t30:~/programming/gsoap-2.8$ cat configure2.bash
./configure \
--enable-samples \
--enable-debug \
--prefix=/usr/local
tjyang@t30:~/programming/gsoap-2.8$./configure;make;sudo make install
tjyang@t30:~/programming/gsoap-2.8$ bash -x test.bash
+ /usr/local/bin/wsdl2h -d -I /usr/local/share/gsoap/import -t /usr/local/share/gsoap/WS/typemap.dat -c -o a.h 'http\
s://id3check.gb.co.uk/gbportalinternational/aspx/id3check_1b.asmx?WSDL'
** The gSOAP WSDL/Schema processor for C and C++, wsdl2h release 2.8.6
** Copyright (C) 2000-2011 Robert van Engelen, Genivia Inc.
** All Rights Reserved. This product is provided "as is", without any warranty.
** The wsdl2h tool is released under one of the following two licenses:
** GPL or the commercial license by Genivia Inc. Use option -l for details.
Saving a.h
Reading type definitions from type map file '/usr/local/share/gsoap/WS/typemap.dat'
Cannot connect to https site: no SSL support, please rebuild wsdl2h with SSL or download the files and rerun wsdl2h
tjyang@t30:~/programming/gsoap-2.8$ ldd /usr/local/bin/wsdl2h
linux-vdso.so.1 => (0x00007fff59290000)
libssl.so.1.0.0 => /lib/x86_64-linux-gnu/libssl.so.1.0.0 (0x00007fd018988000)
libcrypto.so.1.0.0 => /lib/x86_64-linux-gnu/libcrypto.so.1.0.0 (0x00007fd0185d9000)
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007fd0183c0000)
libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007fd0180b9000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fd017ea3000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fd017b03000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fd0178ff000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fd01767b000)
/lib64/ld-linux-x86-64.so.2 (0x00007fd018bf0000)
tjyang@t30:~/programming/gsoap-2.8$
in wsdl.cpp, looks like code inside "ifdef WITH_OPENSSL" was not reached even it compiled with openssl binding by default in 2.8.6 zip src.
<snipped>
{
#ifdef WITH_OPENSSL
if (!strncmp(loc, "http://", 7) || !strncmp(loc, "https://", 8))
#else
if (!strncmp(loc, "https://", 8))
{ fprintf(stderr, "\nCannot connect to https site: no SSL support, please rebuild wsdl2h with SSL or download the files and rerun wsdl2h\n\
");
exit(1);
}
else if (!strncmp(loc, "http://", 7))
#endif
1. changes, ie, comment out the "else" part of code.
// #ifdef WITH_OPENSSL
if (!strncmp(loc, "http://", 7) || !strncmp(loc, "https://", 8))
//#else
// if (!strncmp(loc, "https://", 8))
// { fprintf(stderr, "\nCannot connect to https site: no SSL support, please rebuild wsdl2h with SSL or download the files and rerun wsdl2h\
\n");
// exit(1);
// }
// else if (!strncmp(loc, "http://", 7))
//#endif
2. successful https connection
tjyang@t30:~/programming/gsoap-2.8/gsoap/wsdl$ ./test.bash
** The gSOAP WSDL/Schema processor for C and C++, wsdl2h release 2.8.6
** Copyright (C) 2000-2011 Robert van Engelen, Genivia Inc.
** All Rights Reserved. This product is provided "as is", without any warranty.
** The wsdl2h tool is released under one of the following two licenses:
** GPL or the commercial license by Genivia Inc. Use option -l for details.
Saving a.h
Reading type definitions from type map file '/usr/local/share/gsoap/WS/typemap.dat'
Connecting to 'https://id3check.gb.co.uk/gbportalinternational/aspx/id3check_1b.asmx?WSDL' to retrieve WSDL/XSD...
Connected, receiving...
Done reading 'https://id3check.gb.co.uk/gbportalinternational/aspx/id3check_1b.asmx?WSDL'
To complete the process, compile with:
> soapcpp2 a.h
tjyang@t30:~/programming/gsoap-2.8/gsoap/wsdl$
The wsdl2h tool is not build with OpenSSL enabled. To do so manually:
cd gsoap2/wsdl
make -f MakefileManual secure
Otherwise, download the WSDL and XSD files and run wsdl2h on these files.