|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #75325 SOAP-ERROR: Encoding: External reference ''
Submitted: 2017-10-06 04:40 UTC Modified: -
Avg. Score:4.0 ± 0.8
Reproduced:3 of 3 (100.0%)
Same Version:1 (33.3%)
Same OS:0 (0.0%)
From: peter_liang at vtech dot com Assigned:
Status: Open Package: SOAP related
PHP Version: 7.0.24 OS: CentOS 7.3
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: peter_liang at vtech dot com
New email:
PHP Version: OS:


 [2017-10-06 04:40 UTC] peter_liang at vtech dot com
I have a webservice which was created by Java, when I use SoapClient to invoke it, it throws a SoapFault exception which says:
SOAP-ERROR: Encoding: External reference ''.

However, $soap->__getLastRequest() and $soap->__getLastResponse() return the correct XML - the same as I did using SoapUI.

Here is the request and response XMLs for references.

1) Request XML.
<ns1:checkEligibility><caller-id>XXXXX</caller-id><cust-key>1234456</cust-key><device-serial-num/><package id="12345-54321" productId="prod12345-54321"/><package id="54321-12345" productId="prod54321-12345"/></ns1:checkEligibility>

2) Response XML
<package status="1" href="" checksum="" name="" id="12345-54321"/><result description="This package is not defined in CRM" reason="checkout.undefined.package" status="block"/>

<package-eligibility><package status="1" href="" checksum="" name="" id="54321-12345"/><result description="This package is not defined in CRM." reason="checkout.undefined.package" status="block"/></package-eligibility></ns2:checkEligibilityResponse>

Not sure why the SoapFault exception still throws even request and response are correct.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2017-10-06 06:38 UTC] peter_liang at vtech dot com
Seems the issue has existed since PHP 5.2.
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Thu Jul 09 01:01:31 2020 UTC