Bug #31050 [Com]: SOAP class will not parse WSDL file located on a secure HTTPS connection

2010-09-16 Thread zhb1208 at hotmail dot com
Edit report at http://bugs.php.net/bug.php?id=31050&edit=1

 ID: 31050
 Comment by: zhb1208 at hotmail dot com
 Reported by:dylanwoster at mac dot com
 Summary:SOAP class will not parse WSDL file located on a
 secure HTTPS connection
 Status: No Feedback
 Type:   Bug
 Package:SOAP related
 Operating System:   Mac OS X 10.3.6
 PHP Version:5.0.2
 Assigned To:dmitry
 Block user comment: N

 New Comment:

resolve:

I found the problem was related to linux configuration. 



The firewall is enabled on my server: policy type is targeted, enforcing
current is checked and HTTPD scripts to connect to the network were not
allowed.



linux:

$setsebool -P httpd_can_network_connect on 



I checked it and it is working now.


Previous Comments:

[2010-09-14 12:24:53] zhb1208 at hotmail dot com

SOAP-ERROR: Parsing WSDL: Couldn't load from
'http://192.168.0.14:8080/rpc/soap/jirasoapservice-v2?wsdl' : failed to
load external entity
"http://192.168.0.14:8080/rpc/soap/jirasoapservice-v2?wsdl";


[2009-03-05 12:13:40] ykohut at parallels dot com

I have the same bug on:

# cat /etc/redhat-release

Red Hat Enterprise Linux Server release 5.2 (Tikanga)

# uname -p

i686

# /hsphere/shared/php5/bin/php-cli --version

PHP 5.2.9 (cli) (built: Mar  5 2009 01:52:37)

Copyright (c) 1997-2009 The PHP Group

Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies

with the ionCube PHP Loader v3.1.32, Copyright (c) 2002-2007, by
ionCube Ltd., and

with Zend Extension Manager v1.2.2, Copyright (c) 2003-2007, by Zend
Technologies

with Zend Optimizer v3.3.0, Copyright (c) 1998-2007, by Zend
Technologies



The SOAP is loaded as external extension via corresponded .ini file:

#cat php.d/soap.ini

; Enable soap extension module

extension=soap.so



The extension is successfully loaded, which is reported php_info():

soap

Soap Client enabled

Soap Server enabled



Directive   Local Value Master Value

soap.wsdl_cache 1   1

soap.wsdl_cache_dir /tmp/tmp

soap.wsdl_cache_enabled 1   1

soap.wsdl_cache_limit   5   5

soap.wsdl_cache_ttl 86400   86400



and with # php-cli -i:

# /hsphere/shared/php5/bin/php-cli -i|grep soap

Configure Command =>  './configure'  '--localstatedir=/var/hsphere/php'
'--with-bz2=/hsphere/shared' '--enable-ctype' '--enable-dba'
'--enable-ftp' '--with-gettext=/hsphere/shared' '--enable-mbstring=all'
'--with-gd' '--with-mhash=/hsphere/shared'
'--with-mcrypt=/hsphere/shared' '--with-openssl=/usr'
'--enable-overload' '--enable-posix' '--enable-session'
'--enable-sockets' '--enable-standard' '--enable-tokenizer'
'--with-xml=/hsphere/shared' '--with-xsl=/hsphere/shared'
'--with-zip=/hsphere/shared' '--with-zlib=/hsphere/shared'
'--with-zlib-dir=/hsphere/shared' '--with-freetype-dir=/hsphere/shared'
'--with-png-dir=/hsphere/shared' '--with-jpeg-dir=/hsphere/shared'
'--with-expat-dir=/hsphere/shared' '--with-iconv-dir=/hsphere/shared'
'--with-libxml-dir=/hsphere/shared' '--enable-gd-native-ttf'
'--with-ttf' '--enable-mbstr-enc-trans'
'--with-expat-dir=/hsphere/shared' '--with-xslt-sablot=/hsphere/shared'
'--with-gnu-ld' '--with-curl=shared,/hsphere/shared'
'--with-curlwrappers' '--with-dom=shared,/hsphere/shared'
'--with-dom-xslt=/hsphere/shared' '--with-dom-exslt=/hsphere/shared'
'--with-dom=shared,/hsphere/shared'
'--with-fileinfo=shared,/hsphere/shared'
'--with-gmp=shared,/hsphere/shared'
'--with-iconv=shared,/hsphere/shared'
'--with-imap=shared,/hsphere/shared' '--with-imap-ssl=shared,/usr'
'--with-mcal=shared,/hsphere/shared' '--with-mysql=shared,/usr'
'--with-mysqli=shared' '--with-pgsql=shared,/usr' '--with-sqlite=shared'
'--enable-sqlite-utf8' '--with-unixODBC=shared,/hsphere/shared'
'--with-xmlrpc=shared' '--enable-htscanner' '--enable-track-vars'
'--enable-trans-sid' '--enable-memory-limit'
'--enable-force-cgi-redirect' '--enable-fastcgi'
'--with-config-file-path=/hsphere/local/config/httpd/php5'
'--with-config-file-scan-dir=/hsphere/local/config/httpd/php5/php.d'
'--enable-magic-quotes'
'--with-pear=/hsphere/shared/apache/libexec/p

Bug #31050 [Com]: SOAP class will not parse WSDL file located on a secure HTTPS connection

2010-09-14 Thread zhb1208 at hotmail dot com
Edit report at http://bugs.php.net/bug.php?id=31050&edit=1

 ID: 31050
 Comment by: zhb1208 at hotmail dot com
 Reported by:dylanwoster at mac dot com
 Summary:SOAP class will not parse WSDL file located on a
 secure HTTPS connection
 Status: No Feedback
 Type:   Bug
 Package:SOAP related
 Operating System:   Mac OS X 10.3.6
 PHP Version:5.0.2
 Assigned To:dmitry
 Block user comment: N

 New Comment:

SOAP-ERROR: Parsing WSDL: Couldn't load from
'http://192.168.0.14:8080/rpc/soap/jirasoapservice-v2?wsdl' : failed to
load external entity
"http://192.168.0.14:8080/rpc/soap/jirasoapservice-v2?wsdl";


Previous Comments:

[2009-03-05 12:13:40] ykohut at parallels dot com

I have the same bug on:

# cat /etc/redhat-release

Red Hat Enterprise Linux Server release 5.2 (Tikanga)

# uname -p

i686

# /hsphere/shared/php5/bin/php-cli --version

PHP 5.2.9 (cli) (built: Mar  5 2009 01:52:37)

Copyright (c) 1997-2009 The PHP Group

Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies

with the ionCube PHP Loader v3.1.32, Copyright (c) 2002-2007, by
ionCube Ltd., and

with Zend Extension Manager v1.2.2, Copyright (c) 2003-2007, by Zend
Technologies

with Zend Optimizer v3.3.0, Copyright (c) 1998-2007, by Zend
Technologies



The SOAP is loaded as external extension via corresponded .ini file:

#cat php.d/soap.ini

; Enable soap extension module

extension=soap.so



The extension is successfully loaded, which is reported php_info():

soap

Soap Client enabled

Soap Server enabled



Directive   Local Value Master Value

soap.wsdl_cache 1   1

soap.wsdl_cache_dir /tmp/tmp

soap.wsdl_cache_enabled 1   1

soap.wsdl_cache_limit   5   5

soap.wsdl_cache_ttl 86400   86400



and with # php-cli -i:

# /hsphere/shared/php5/bin/php-cli -i|grep soap

Configure Command =>  './configure'  '--localstatedir=/var/hsphere/php'
'--with-bz2=/hsphere/shared' '--enable-ctype' '--enable-dba'
'--enable-ftp' '--with-gettext=/hsphere/shared' '--enable-mbstring=all'
'--with-gd' '--with-mhash=/hsphere/shared'
'--with-mcrypt=/hsphere/shared' '--with-openssl=/usr'
'--enable-overload' '--enable-posix' '--enable-session'
'--enable-sockets' '--enable-standard' '--enable-tokenizer'
'--with-xml=/hsphere/shared' '--with-xsl=/hsphere/shared'
'--with-zip=/hsphere/shared' '--with-zlib=/hsphere/shared'
'--with-zlib-dir=/hsphere/shared' '--with-freetype-dir=/hsphere/shared'
'--with-png-dir=/hsphere/shared' '--with-jpeg-dir=/hsphere/shared'
'--with-expat-dir=/hsphere/shared' '--with-iconv-dir=/hsphere/shared'
'--with-libxml-dir=/hsphere/shared' '--enable-gd-native-ttf'
'--with-ttf' '--enable-mbstr-enc-trans'
'--with-expat-dir=/hsphere/shared' '--with-xslt-sablot=/hsphere/shared'
'--with-gnu-ld' '--with-curl=shared,/hsphere/shared'
'--with-curlwrappers' '--with-dom=shared,/hsphere/shared'
'--with-dom-xslt=/hsphere/shared' '--with-dom-exslt=/hsphere/shared'
'--with-dom=shared,/hsphere/shared'
'--with-fileinfo=shared,/hsphere/shared'
'--with-gmp=shared,/hsphere/shared'
'--with-iconv=shared,/hsphere/shared'
'--with-imap=shared,/hsphere/shared' '--with-imap-ssl=shared,/usr'
'--with-mcal=shared,/hsphere/shared' '--with-mysql=shared,/usr'
'--with-mysqli=shared' '--with-pgsql=shared,/usr' '--with-sqlite=shared'
'--enable-sqlite-utf8' '--with-unixODBC=shared,/hsphere/shared'
'--with-xmlrpc=shared' '--enable-htscanner' '--enable-track-vars'
'--enable-trans-sid' '--enable-memory-limit'
'--enable-force-cgi-redirect' '--enable-fastcgi'
'--with-config-file-path=/hsphere/local/config/httpd/php5'
'--with-config-file-scan-dir=/hsphere/local/config/httpd/php5/php.d'
'--enable-magic-quotes'
'--with-pear=/hsphere/shared/apache/libexec/php5ext/php'
'--with-mime-magic=/hsphere/local/config/httpd/magic' '--with-inifile'
'--with-flatfile' '--enable-pdo=shared' '--with-pdo-sqlite=shared'
'--with-pdo-mysql=shared' '--with-pdo-pgsql=shared'
'--enable-soap=shared' '--prefix=/hsphere/shared/php5'
'--with-apxs=/hsphere/shared/apache/bin/apxs' '--enable-cli'

/hsphere/l