Bug #74984 [NEW]: [Client] SOAP-ERROR: Encoding: object has no XXX property
From: peter_liang at vtech dot com
Operating system: CentOS 7.3
PHP version: 7.0.21
Package: SOAP related
Bug Type: Bug
Bug description:[Client] SOAP-ERROR: Encoding: object has no XXX property
Description:
------------
When I call a webservice, it works on Java and SoapUI, fails in PHP.
Java & SoapUI return a list, PHP return a stdClass with nothing.
// SoapUI
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:man="#namespace#">
<soapenv:Header/>
<soapenv:Body>
<man:fetchCustomerDevices>
<caller-id>#called-id#</caller-id>
<customer-id>#customer-id#</customer-id>
</man:fetchCustomerDevices>
</soapenv:Body>
</soapenv:Envelope>
// Java
service.fetchCustomerDevices(
#called-id#,
new BigInteger(#customer-id#),
null,
false);
// PHP
$arguments =
array(
'caller-id' => '#called-id#',
'customer-id' => #customer-id#,
'device-serial' => null,
'sendEmail' => false
);
$soapClient = new \SoapClient($wsdl, null);
$result = $soapClient->fetchCustomerDevices($arguments);
--
Edit bug report at https://bugs.php.net/bug.php?id=74984&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=74984&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=74984&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=74984&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=74984&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=74984&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=74984&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=74984&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=74984&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=74984&r=support
Expected behavior: https://bugs.php.net/fix.php?id=74984&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=74984&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=74984&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=74984&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=74984&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=74984&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=74984&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=74984&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=74984&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=74984&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=74984&r=mysqlcfg
Thread (2 messages)
- peter_liang at vtech dot com