|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #77481 SoapClient not pulling in all namespaces to soapEnvelope
Submitted: 2019-01-17 17:37 UTC Modified: -
From: kevin at icscomp dot com Assigned:
Status: Open Package: SOAP related
PHP Version: 7.3.1 OS:
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2019-01-17 17:37 UTC] kevin at icscomp dot com
When making a connection to a Soap Web Service (WSDL-mode), in which the WSDL is using two .XSD schema imports, both with different namespaces, the PHP soapClient doesn't add the second namespace into the Soap Request, specifically it does not add them to the <SoapEnvelope> section of that request.

Pulling up the same endpoint in SoapUI it works properly, but PHP receives an error as it's missing the additional namespaces.

SoapUI generates this:


Where PHP generates this:


As you see the above PHP generated header leaves out the second namespace entirely.

Expected result:
PHP's request should contain both namespaces based off of the WSDL as below within the SoapEnvelope:



Add a Patch

Pull Requests

Add a Pull Request

PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Thu Oct 01 13:01:23 2020 UTC