php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #68975 Somewhat misleading description
Submitted: 2015-02-02 17:20 UTC Modified: 2016-11-30 18:44 UTC
From: tbernard at qcsupply dot com Assigned:
Status: Open Package: SOAP related
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: tbernard at qcsupply dot com
New email:
PHP Version: OS:

 

 [2015-02-02 17:20 UTC] tbernard at qcsupply dot com
Description:
------------
---
From manual page: http://www.php.net/soapclient.dorequest
---
The documentation indicates __doRequest can be used to implement custom transport layers et al.  However I think it's important to note that this is only for the purpose of CALLING functions. Fetching the WSDL which is done in the constructor does not reference __doRequest and thus will not use whatever authentication, transport protocol, etc is contained therein.  To fetch the WSDL a custom stream_context has to be setup instead.

Took me quite a while to figure this "gotcha" out as a first-time SOAPClient user.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-11-30 18:44 UTC] cmb@php.net
-Package: Documentation problem +Package: SOAP related
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 12:01:31 2024 UTC