Transport protocol is unsupported by axis2 (https) on version 1.3.2
Hi,
I'm trying to get my WSF/PHP installation (1.3.2) to communicate over https, port 443.
This is my setup:
$client = new WSClient(
array(
"to" => "https://api.hostname.com/soap/1.5/SomeService",
"useMTOM" => TRUE,
"responseXOP" => TRUE,
"useSOAP" => 1.1,
'style' => SOAP_DOCUMENT,
'encoding' => SOAP_LITERAL,
'CACert'=>"/home/userdir/www/test/cert.pem"));
A call with these settings result in de following errors:
[Tue Aug 12 10:22:44 2008] [error] http_client.c(231) Transport protocol is unsupported by axis2
[Tue Aug 12 10:22:44 2008] [error] http_client.c(232) Invalid Transport Protocol, HTTPS transport not enabled.
[Tue Aug 12 10:22:44 2008] [error] http_client.c(445) client data stream null or socket error for host api.tripolis.com and 443 port
These logs basically tell me that https is not enabled.
This is the https bit of my axis2.xml file:
<transportSender name="http" class="axis2_http_sender">
<parameter name="PROTOCOL" locked="false">HTTP/1.1</parameter>
<!--parameter name="Transfer-Encoding">chunked</parameter-->
<!--parameter name="PROXY" proxy_host="127.0.0.1" proxy_port="8080" locked="true"/-->
</transportSender>
<transportSender name="https" class="axis2_http_sender">
<parameter name="PROTOCOL" locked="false">HTTP/1.1</parameter>
</transportSender>
My PHP install has been compiled with openssl support, so that should not be the problem:
./configure' '--prefix=/usr/local/php-2.0.59_5.2.5_1' '--with-apxs2=/usr/local/httpd-2.0.59_5.2.5_1/bin/apxs' '--enable-memory-limit' '--with-kerberos' '--with-openssl=/usr' '--with-mysql=/usr' '--with-mysql-sock' '--enable-sockets' '--with-gd' '--enable-gd-native-ttf' '--with-ttf' '--with-jpeg-dir=/usr' '--with-png-dir=/usr' '--with-freetype-dir=/usr' '--with-zlib-dir=/usr' '--with-curl' '--with-pspell=/usr' '--enable-ftp' '--with-iconv' '--with-imap' '--with-imap-ssl' '--enable-pcntl' '--enable-soap'
Is there anyone out there who can help me get this problem out of my way?
- Login or register to post comments
- Printer friendly version
- 395 reads











Hi, Your axis2.xml is not
Hi,
Your axis2.xml is not clear, since it is xml it is not displayed, (you have to use < > wild card characters).
Did you have following entries in the xml?
<ransportReceiver name="https" class="axis2_http_receiver">
<parameter name="port" locked="false">6060</parameter>
</transportReceiver>
<transportSender name="https" class="axis2_http_sender">
<parameter name="PROTOCOL" locked="false">HTTP/1.1</parameter>
</transportSender>
Thanks
Dimuthu
I am having exactly the same
I am having exactly the same problem. How did you fix yours?
tom
Hi, Please try configure
Hi,
Please try configure with --enable-openssl option
./configure --enable-openssl
make
make install
Hi Dimuthu,
I tried the suggestion i.e. reconfigured with "openssl" option and then ran "make" and "make install". However I get the same error message:
Warning: file_get_contents() [function.file-get-contents]: SSL: fatal protocol error in /home/touman/wsf130/scripts/dynamic_invocation/wsf_wsdl_util.php on line 1365
This is bizzare. I have checked my apache directory and it seems that "ssl" is available but it is not in the list of modules enabled (see below). Does this make any difference?
FILES IN "MODULES_AVAILABLE" directory
_________________
......
......
/etc/apache2/mods-available/ssl.conf
/etc/apache2/mods-available/ssl.load
......
......
FILES IN "MODULES_ENABLED directory
_______________
/etc/apache2/mods-enabled/alias.load
/etc/apache2/mods-enabled/auth_basic.load
/etc/apache2/mods-enabled/authn_file.load
/etc/apache2/mods-enabled/authz_default.load
/etc/apache2/mods-enabled/authz_groupfile.load
/etc/apache2/mods-enabled/authz_host.load
/etc/apache2/mods-enabled/authz_user.load
/etc/apache2/mods-enabled/autoindex.load
/etc/apache2/mods-enabled/cgi.load
/etc/apache2/mods-enabled/dir.conf
/etc/apache2/mods-enabled/dir.load
/etc/apache2/mods-enabled/env.load
/etc/apache2/mods-enabled/mime.load
/etc/apache2/mods-enabled/negotiation.load
/etc/apache2/mods-enabled/php5.conf
/etc/apache2/mods-enabled/php5.load
/etc/apache2/mods-enabled/rewrite.load
/etc/apache2/mods-enabled/setenvif.load
/etc/apache2/mods-enabled/status.load
thanks
tomcat