473,396 Members | 1,608 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Problem Securing Web Services in PHP

I'm trying to get https to work for Web Services in PHP. I've
installed PHP 5.0.5 with the following configuration line:

../configure --with-mysql=/usr/local/mysql \
--with-apxs=/usr/local/apache/bin/apxs \
--with-gd=/usr/local/src/ \
--with-gd --with-freetype-dir=/usr \
--enable-gd-native-ttf \
--enable-gd-imgstrttf \
--with-jpeg-dir=/usr/lib \
--with-png-dir=/usr/lib \
--with-zlib \
--with-lib-xml \
--with-lib-xsl \
--enable-soap \
--with-open-ssl \
--with-curl=/usr/local/bin/curl \
--with-curlwrappers

I'm able to open https streams with fopen, I've even connected to WSDLs
with fopen and https. I'm able to open and use non-https web services
with the SoapClient. I am unable to open any https web services with
SoapClient. For example, trying to run this script:
http://playground.jwscripts.com/php5...words-api.phps results in
a fatal exception on my server. Unfortunately I'm not at liberty to
divulge the URL for the server. But, here is the (doctored) output:

SoapFault exception: [HTTP] Could not connect to host in
/usr/local/apache/sites/website.com/htdocs/soap/soaptestscript.php:39
Stack trace:
#0
/usr/local/apache/sites/website.com/htdocs/soap/soaptestscript.php(39):
SoapClient->__doRequest('__soapCall('estimateKeyword...', Array, NULL,
Array)
#2 {main}

Does anyone have any thoughts on what the problem may be?

Oct 10 '05 #1
1 1740
I was able to fix the issue, but I have no idea why. By configuring
PHP this way it works now:

../configure --with-mysql=/usr/local/mysql --enable-soap
--with-apxs=/usr/local/apache/bin/apxs --enable-trans-sid
--enable-track-vars --with-openssl=/usr/local/openssl

I tried the previous configure with the full path to openssl and it
still didn't work, so I know that isn't it. Can anyone tell me why
this would be?

Oct 10 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: James | last post by:
What's the best way of securing online databases and web services? At present I am using a database password, which of course is not hard-coded into the web service, but this means re-submitting it...
11
by: Wm. Scott Miller | last post by:
Hello all! We are building applications here and have hashing algorithms to secure secrets (e.g passwords) by producing one way hashes. Now, I've read alot and I've followed most of the advice...
1
by: Greg | last post by:
I am trying to lock down my web services. I have added WSE 2.0 to do custom authentication, I have removed HTTP-Get and HTTP-post in the web.config, but I don't want the myservice.asmx?WSDL or...
1
by: The Fox | last post by:
How to prevent user to add web reference to my web services? Can I add password to web services so that only the users who know the password can add a web reference? Thanks in advance.
1
by: Mark Goosen | last post by:
Hi ive installed wse 2.0 SP3 and was running throught the demo downlaoded on the Securing the Username Token with WSE 2.0 page the Securing the Username Token with WSE 2.0. Im spose to change...
1
by: boonlee | last post by:
my web services are on a webserver and my concern is that if someone who has a valid domains login to my web server, and know how to call up this web services, which will make him the ability to...
4
by: KJ | last post by:
Hello All, I have to secure my first real B2B web service. Could you please provide some guidance as to which method of security I should use. One caveat is that we will not be using SSL on the...
4
by: =?Utf-8?B?aGlsZXlq?= | last post by:
Hi, I'm developing a web service that needs to communicate with a custom application on an intranet. There is also a configuration utility which may be run on a different server machine for...
5
by: VictorG | last post by:
Hello, I am trying to secure a webservice using WSE 3.0 and the turnkey usernameForCertificateSecurity profile. I am passing a valid username token, and on the server I have overridden the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.