|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #36657 PHP SOAP SSL Problem
Submitted: 2006-03-08 20:16 UTC Modified: 2006-03-10 14:22 UTC
From: gkrajci at arescorporation dot com Assigned:
Status: Not a bug Package: SOAP related
PHP Version: 5.1.2 OS: Windows 2003 Server
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: gkrajci at arescorporation dot com
New email:
PHP Version: OS:


 [2006-03-08 20:16 UTC] gkrajci at arescorporation dot com
I am trying to establish a PHP SOAP SSL connection from our development server to a Java application. When I perform this SOAP call over HTTP I have no problem, and when I perform this SOAP call over HTTPS I have a problem. 

I tested the PHP SOAP SSL connection on both PHP Version 5.1.2 and Zend Core for Oracle (PHP Version 5.0.5) with no success on either.

I had one of our sys admins monitor the traffic, and PHP always connects over port 80 (HTTP) and not SSL (HTTPS).

Reproduce code:
Windows 2003 Server and PHP Version 5.1.2

ESWGCERTIFICATE points to the PEM file C:/OpenSSL/bin/PEM/eswg.pem

$context["ssl"]["local_cert"] = ESWGCERTIFICATE;
$stream_context = stream_context_create($context);

$soap_client_url = "https://[domain]/ws/api/Session.wsdl";
$cz_session = new SoapClient( $soap_client_url, 
                  array(    "trace" => true, 
                            "exceptions" => true, 
                            "proxy_host" => PROXYHOST, 
                            "proxy_port" => PROXYPORT,
                            "stream_context" => $stream_context,
                            "local_cert" => ESWGCERTIFICATE

Expected result:
The same information as received when I call the same function over HTTP.

Actual result:
SOAP Fault:
faultstring: This site is configured to only accept requests that use the SSL protocol.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2006-03-10 12:25 UTC]
Does Session.wsdl point to https or http web service?
 [2006-03-10 12:34 UTC] gkrajci at arescorporation dot com
In the code below, the WSDL is 
 [2006-03-10 12:59 UTC]
The content of Session.wsdl will determine where the service is located. Please look into that file and see if it's using https or http.
 [2006-03-10 13:04 UTC] gkrajci at arescorporation dot com
All URIs in the WSDL point to HTTP
 [2006-03-10 14:22 UTC]
Then PHP does exactly what is expected, trues to connect via http.
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Mon Jan 30 00:05:55 2023 UTC