|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2017-07-25 03:03 UTC] peter_liang at vtech dot com
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); PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 06 01:00:01 2025 UTC |
I change the PHP SoapUI call as follow, the issue resolves. $arguments = array (); $arguments[] = new SoapVar("#caller-id#",XSD_STRING,null,null, "caller-id"); $arguments[] = new SoapVar(#customer-id#,XSD_INTEGER,null,null, "customer-id"); $soapClient = new \SoapClient(#WSDL#, null); $result = $soapClient->fetchCustomerDevices(new SoapVar($arguments,SOAP_ENC_OBJECT)); Thus I closed the bug.