Bug #75325 [NEW]: SOAP-ERROR: Encoding: External reference ''
| From: | peter_liang at vtech dot com | Date: | Fri, 06 Oct 2017 04:41:02 +0000 |
| Subject: | Bug #75325 [NEW]: SOAP-ERROR: Encoding: External reference '' | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-211543@lists.php.net to get a copy of this message | ||
From: peter_liang at vtech dot com
Operating system: CentOS 7.3
PHP version: 7.0.24
Package: SOAP related
Bug Type: Bug
Bug description:SOAP-ERROR: Encoding: External reference ''
Description:
------------
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
<ns2:checkEligibilityResponse><package-eligibility>
<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-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.
--
Edit bug report at https://bugs.php.net/bug.php?id=75325&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=75325&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=75325&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=75325&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=75325&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=75325&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=75325&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=75325&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=75325&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=75325&r=support
Expected behavior: https://bugs.php.net/fix.php?id=75325&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=75325&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=75325&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=75325&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=75325&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=75325&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=75325&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=75325&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=75325&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=75325&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=75325&r=mysqlcfg