note 119424 added to class.soapclient

From: Date: Fri, 03 Jun 2016 01:53:51 +0000
Subject: note 119424 added to class.soapclient
Groups: php.notes 
Request: Send a blank email to php-notes+get-205645@lists.php.net to get a copy of this message
If the XML have identities with same name in different levels there is a solution. You don´t have to ever submit a raw XML (this PHP SOAP object don´t allows send a RAW XML), so you have to always translate your XML to a array, like the example below: $originalXML = " <xml> <firstClient> <name>someone</name> <adress>R. 1001</adress> </firstClient> <secondClient> <name>another one</name> <adress></adress> </secondClient> </xml>" //Translate the XML above in a array, like PHP SOAP function requires $myParams = array('firstClient' => array('name' => 'someone', 'adress' => 'R. 1001'), 'secondClient' => array('name' => 'another one', 'adress' => '')); $webService = new SoapClient($someURL); $result = $webService->someWebServiceFunction($myParams); ---- Server IP: 72.52.91.14 Probable Submitter: 201.67.148.23 ---- Manual Page -- http://php.net/manual/en/class.soapclient.php Edit -- https://master.php.net/note/edit/119424 Del: integrated -- https://master.php.net/note/delete/119424/integrated Del: useless -- https://master.php.net/note/delete/119424/useless Del: bad code -- https://master.php.net/note/delete/119424/bad+code Del: spam -- https://master.php.net/note/delete/119424/spam Del: non-english -- https://master.php.net/note/delete/119424/non-english Del: in docs -- https://master.php.net/note/delete/119424/in+docs Del: other reasons-- https://master.php.net/note/delete/119424 Reject -- https://master.php.net/note/reject/119424 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#205645) next »