php.net |  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: gkrajci at arescorporation dot com
New email:
PHP Version: OS:

 

 [2006-03-08 20:16 UTC] gkrajci at arescorporation dot com
Description:
------------
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:
soapenv:Client
faultstring: This site is configured to only accept requests that use the SSL protocol.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-03-10 12:25 UTC] edink@php.net
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 
https://[domain]/ws/api/Session.wsdl
 [2006-03-10 12:59 UTC] edink@php.net
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] edink@php.net
Then PHP does exactly what is expected, trues to connect via http.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri Mar 14 15:01:30 2025 UTC