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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
30 + 24 = ?
Subscribe to this entry?

 
 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2019 The PHP Group
All rights reserved.
Last updated: Thu Jun 20 19:01:26 2019 UTC