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 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 — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
28 - 12 = ?
Subscribe to this entry?

 
 [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

Add a Patch

Pull Requests

Add a Pull Request

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: Fri Apr 19 22:01:28 2024 UTC