note 123942 added to soapvar.soapvar
| From: | sergio-eom at gmail dot com | Date: | Fri, 14 Jun 2019 02:47:37 +0000 |
| Subject: | note 123942 added to soapvar.soapvar | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-211255@lists.php.net to get a copy of this message | ||
Example Parameters ArrayMultidimencional
try {
// Set ClienteSOAP
$ws = new \SoapClient($this->getWSUrl()
, [
// 'trace' => true,
'encoding' => 'utf-8',
'connection_timeout' => '10',
'cache_wsdl' => WSDL_CACHE_MEMORY,
]);
// Get Parametros
$parametersArray = $this->getParametersToEnviarSolicitudTextXml();
// Format
$parm = array();
$subparm = array();
$parm[] = new SoapVar($parametersArray['token'], XSD_STRING, null, null,
'token');
$parm[] = new SoapVar($parametersArray['usuario'], XSD_STRING, null, null,
'usuario');
$subparm[] = new SoapVar($parametersArray['archivo']['fileType'],
XSD_STRING, null, null, 'fileType');
$subparm[] = new SoapVar($parametersArray['archivo']['nombre'],
XSD_STRING, null, null, 'nombre');
$subparm[] = new SoapVar($parametersArray['archivo']['xml'],
XSD_STRING, null, null, 'xml');
$parm[] = new SoapVar($subparm, SOAP_ENC_OBJECT, null, null, 'archivo');
$resp = new SoapVar($parm, SOAP_ENC_OBJECT);
// Get datos WS Senasa
$data = json_decode(json_encode($ws->generarSolicitud($resp)->return), true);
} catch (SoapFault $e) {
$data = array();
throw new Exception($e->getMessage());
} finally {
return $data;
}
----
Server IP: 208.43.231.9
Probable Submitter: 82.199.157.34 (proxied: 190.246.192.188)
----
Manual Page -- http://php.net/manual/en/soapvar.soapvar.php
Edit -- https://master.php.net/note/edit/123942
Del: integrated -- https://master.php.net/note/delete/123942/integrated
Del: useless -- https://master.php.net/note/delete/123942/useless
Del: bad code -- https://master.php.net/note/delete/123942/bad+code
Del: spam -- https://master.php.net/note/delete/123942/spam
Del: non-english -- https://master.php.net/note/delete/123942/non-english
Del: in docs -- https://master.php.net/note/delete/123942/in+docs
Del: other reasons-- https://master.php.net/note/delete/123942
Reject -- https://master.php.net/note/reject/123942
Search -- https://master.php.net/manage/user-notes.php