WSCOMUN  2.1.2
Web Services Comunes para PHP/GVHidra
ComposerRegDepartamental.php
1 <?php
2 
4 
5 use \ArrayObject;
6 use \SoapVar;
7 use \Exception;
8 
9 const unbounded = 'unbounded';
10 
11 
12 
20 {
28  protected function array2ObjectTree($array)
29  {
30  if (is_numeric(key($array)))
31  {
32  foreach ($array as $key => $value)
33  {
34  $array[$key] = $this->array_to_objecttree($value);
35  }
36  return $array;
37  }
38  $Object = new \stdClass;
39  foreach ($array as $key => $value)
40  {
41  if (is_array($value))
42  {
43  $Object->$key = $this->array_to_objecttree($value);
44  }
45  else
46  {
47  $Object->$key = $value;
48  }
49  }
50  return $Object;
51  }//Fin array2ObjectTree
52 
60  protected function objectTree2array($obj)
61  {
62  if (is_array($obj) || is_object($obj))
63  {
64  $result = array();
65  foreach ($obj as $key => $value)
66  {
67  $result[$key] = $this->objectTree2array($value);
68  }
69  return $result;
70  }
71  return $obj;
72  }//Fin objectTree2array
73 
74 
75  private function __anyType_SoapVar($childData, $fieldName, $namespace) {
76 //var_dump($childData);
77  if (is_a($childData, 'DateTime')) {
78 //var_dump($childData);
79 //die('DateTime: ' . $fieldName);
80  return new \SoapVar($childData->format(\DateTime::ATOM), XSD_DATETIME, 'dateTime', 'http://www.w3.org/2001/XMLSchema', $fieldName, $namespace);
81  } elseif (is_int($childData)) {
82 //die('Integer: ' . $fieldName);
83  return new \SoapVar($childData, XSD_INTEGER, null, null, $fieldName, $namespace);
84  }
85 
86 //die('Generic: ' . $fieldName);
87  return new \SoapVar($childData, XSD_STRING, 'string', 'http://www.w3.org/2001/XMLSchema', $fieldName, $namespace);
88  }
89 
90  private function __basic_SoapVar($childData, $basicType, $fieldName, $namespace) {
91  switch ($basicType) {
92  case XSD_DATETIME:
93  return new \SoapVar($childData->format(\DateTime::ATOM), $basicType, null, null, $fieldName, $namespace);
94 
95  default:
96  return new \SoapVar($childData, $basicType, null, null, $fieldName, $namespace);
97  }
98  }
99 
100  public function __doChild($parentTag, $value, $fieldName, $type, $namespace, $minOccurs, $maxOccurs)
101  {
102  //echo("__doChild: $type [$fieldName]<br>");
103  $fieldSet = isset($value);
104  if (!$fieldSet) {
105  if ($minOccurs > 0) {
106  throw new \Exception("No se ha encontrado el subcampo obligatorio '" . $fieldName . '"');
107  } else {
108  return true;
109  }
110  }
111 
112  $vChildData = $value;
113  if ($maxOccurs == 1) {
114  $vChildData = array( $value );
115  } else {
116  if ($maxOccurs != 'unbounded') {
117  if ($maxOccurs > sizeof($vChildData)) {
118  throw new \Exception("El campo '" . $fieldName . '" no tiene tantas ocurrencias como se esperaban');
119  }
120  } else {
121 // var_dump($vChildData);die;
122  }
123  }
124 
125 //var_dump(array_keys($vChildData));
126  for ($iIter=0; $iIter < sizeof($vChildData); $iIter++) {
127  $childData = $vChildData[$iIter];
128 
129  if ((($minOccurs > 0) && $fieldSet) || $fieldSet) {
130  if (is_int($type) && $type != SOAP_ENC_OBJECT) {
131 
132  $basicType = $type;
133 //echo("Basic: $type | $basicType [$fieldName]<br>");
134  if ($basicType !== XSD_ANYTYPE) {
135  $childSOAP = $this->__basic_SoapVar($childData, $basicType, $fieldName, $namespace);
136  } else {
137  $childSOAP = $this->__anyType_SoapVar($childData, $fieldName, $namespace);
138  }
139  $parentTag->append( $childSOAP );
140 // return true;
141 
142  } else { //if (isset($this->$funcName)) {
143  $childSOAP = $childData->toSoap($fieldName, $namespace);
144  $parentTag->append( $childSOAP );
145 // return true;
146  }
147  } else {
148  return false;
149  }
150 
151  }
152 
153  // TODO: HACER EL MULTIAPARICION!!!
154  /*
155  var_dump($parentTag);
156  var_dump($vData);
157  var_dump($fieldName);
158  var_dump($type);
159  var_dump($namespace);
160  var_dump($minOccurs);
161  var_dump($maxOccurs);
162 
163  die("FAIL!!!");
164  */
165 
166  return true;
167  }
168 
169 
170 
171  static public function is_assoc($array) {
172  foreach(array_keys($array) as $key) {
173  if (!is_int($key)) return true;
174  }
175  return false;
176  }
177 
178  static public function endsWith($haystack, $needle) {
179  // search forward starting from end minus needle length characters
180  return $needle === "" || (($temp = strlen($haystack) - strlen($needle)) >= 0 && strpos($haystack, $needle, $temp) !== false);
181  }
182 }
183 
184 
185 
186 
187 
188 
189 
190 
191 
192 
193 
194 
195 class ErrorInfoType extends SoapObject {
196  // name="codigoError" type="101"[101] minOccurs="1" maxOccurs="1" nillable="false"
197  private $_codigoError = null;
198  private $_hasCodigoError = false;
199  public function setCodigoError($value) {
200  $this->_codigoError = $value;
201  $this->_hasCodigoError = ($value !== null);
202  }
203  public function hasCodigoError() {
204  return $this->_hasCodigoError;
205  }
206  public function getCodigoError() {
207  return $this->_codigoError;
208  }
209 
210  // name="descripcionError" type="101"[101] minOccurs="1" maxOccurs="1" nillable="false"
211  private $_descripcionError = null;
212  private $_hasDescripcionError = false;
213  public function setDescripcionError($value) {
214  $this->_descripcionError = $value;
215  $this->_hasDescripcionError = ($value !== null);
216  }
217  public function hasDescripcionError() {
218  return $this->_hasDescripcionError;
219  }
220  public function getDescripcionError() {
221  return $this->_descripcionError;
222  }
223 
224 
225  static public function fromSoap($vData) {
226  $newItem = new ErrorInfoType();
227  if (!isset($vData['codigoError'])) {
228  throw new Exception('El parametro codigoError es obligatorio');
229  }
230  if (isset($vData['codigoError'])) {
231  $newItem->setCodigoError($vData['codigoError']);
232  }
233  if (!isset($vData['descripcionError'])) {
234  throw new Exception('El parametro descripcionError es obligatorio');
235  }
236  if (isset($vData['descripcionError'])) {
237  $newItem->setDescripcionError($vData['descripcionError']);
238  }
239 
240  return $newItem;
241  }
242  public function toSoap($fieldName, $namespace) {
243  $myLevel = new ArrayObject();
244 
245  $this->__doChild($myLevel, $this->_codigoError, 'codigoError', 101, $namespace, 1, 1);
246  $this->__doChild($myLevel, $this->_descripcionError, 'descripcionError', 101, $namespace, 1, 1);
247 
248  //return $myLevel;
249  return new SoapVar($myLevel, SOAP_ENC_OBJECT, null, null, $fieldName, $namespace);
250  }
251 }
252 
254  // name="tipoDocumentoIdentificativo" type="101"[101] minOccurs="1" maxOccurs="1" nillable="false"
255  private $_tipoDocumentoIdentificativo = null;
256  private $_hasTipoDocumentoIdentificativo = false;
257  public function setTipoDocumentoIdentificativo($value) {
258  $this->_tipoDocumentoIdentificativo = $value;
259  $this->_hasTipoDocumentoIdentificativo = ($value !== null);
260  }
261  public function hasTipoDocumentoIdentificativo() {
262  return $this->_hasTipoDocumentoIdentificativo;
263  }
264  public function getTipoDocumentoIdentificativo() {
265  return $this->_tipoDocumentoIdentificativo;
266  }
267 
268  // name="numeroDocumentoIdentificativo" type="101"[101] minOccurs="1" maxOccurs="1" nillable="false"
269  private $_numeroDocumentoIdentificativo = null;
270  private $_hasNumeroDocumentoIdentificativo = false;
271  public function setNumeroDocumentoIdentificativo($value) {
272  $this->_numeroDocumentoIdentificativo = $value;
273  $this->_hasNumeroDocumentoIdentificativo = ($value !== null);
274  }
275  public function hasNumeroDocumentoIdentificativo() {
276  return $this->_hasNumeroDocumentoIdentificativo;
277  }
278  public function getNumeroDocumentoIdentificativo() {
279  return $this->_numeroDocumentoIdentificativo;
280  }
281 
282 
283  static public function fromSoap($vData) {
284  $newItem = new DocumentoIdentificativoType();
285  if (!isset($vData['tipoDocumentoIdentificativo'])) {
286  throw new Exception('El parametro tipoDocumentoIdentificativo es obligatorio');
287  }
288  if (isset($vData['tipoDocumentoIdentificativo'])) {
289  $newItem->setTipoDocumentoIdentificativo($vData['tipoDocumentoIdentificativo']);
290  }
291  if (!isset($vData['numeroDocumentoIdentificativo'])) {
292  throw new Exception('El parametro numeroDocumentoIdentificativo es obligatorio');
293  }
294  if (isset($vData['numeroDocumentoIdentificativo'])) {
295  $newItem->setNumeroDocumentoIdentificativo($vData['numeroDocumentoIdentificativo']);
296  }
297 
298  return $newItem;
299  }
300  public function toSoap($fieldName, $namespace) {
301  $myLevel = new ArrayObject();
302 
303  $this->__doChild($myLevel, $this->_tipoDocumentoIdentificativo, 'tipoDocumentoIdentificativo', 101, $namespace, 1, 1);
304  $this->__doChild($myLevel, $this->_numeroDocumentoIdentificativo, 'numeroDocumentoIdentificativo', 101, $namespace, 1, 1);
305 
306  //return $myLevel;
307  return new SoapVar($myLevel, SOAP_ENC_OBJECT, null, null, $fieldName, $namespace);
308  }
309 }
310 
312  // name="registroCreado" type="tns:RegistroCreadoType"[COMPLEXTYPE] minOccurs="1" maxOccurs="unbounded" nillable="false"
313  private $_registroCreado = array();
314  private $_hasRegistroCreado = false;
315  public function replaceArrayRegistroCreado($value) {
316  $this->_registroCreado = $value;
317  $this->_hasRegistroCreado = (isset($this->_registroCreado) && !empty($this->_registroCreado));
318  }
319  public function retrieveArrayRegistroCreado() {
320  return $this->_registroCreado;
321  }
322  public function addRegistroCreado($value) {
323  array_push($this->_registroCreado, $value);
324  $this->_hasRegistroCreado = (isset($this->_registroCreado) && !empty($this->_registroCreado));
325  }
326  public function hasRegistroCreado() {
327  return $this->_hasRegistroCreado;
328  }
329  public function getRegistroCreado($index) {
330  return $this->_registroCreado[$index];
331  }
332  public function countRegistroCreado() {
333  return count($this->_registroCreado);
334  }
335 
336 
337  static public function fromSoap($vData) {
338  $newItem = new RegistrosCreadosType();
339  if (!isset($vData['registroCreado'])) {
340  throw new Exception('El parametro registroCreado es obligatorio');
341  }
342  if (isset($vData['registroCreado']) && !empty($vData['registroCreado'])) {
343  if (SoapObject::is_assoc($vData['registroCreado'])) {
344  // Si es asociativo, lo probable es que nos encontremos ante un array de un solo elemento de forma que directamente se ha introducido el elemento a tratar
345  $newClass = RegistroCreadoType::fromSoap($vData['registroCreado']);
346  $newItem->addRegistroCreado($newClass);
347  } else {
348  foreach ($vData['registroCreado'] as $oVar) {
349  $newClass = RegistroCreadoType::fromSoap($oVar);
350  $newItem->addRegistroCreado($newClass);
351  }
352  }
353  }
354 
355  return $newItem;
356  }
357  public function toSoap($fieldName, $namespace) {
358  $myLevel = new ArrayObject();
359 
360  $this->__doChild($myLevel, $this->_registroCreado, 'registroCreado', SOAP_ENC_OBJECT, $namespace, 1, unbounded);
361 
362  //return $myLevel;
363  return new SoapVar($myLevel, SOAP_ENC_OBJECT, null, null, $fieldName, $namespace);
364  }
365 }
366 
368  // name="resultado" type="102"[102] minOccurs="1" maxOccurs="1" nillable="false"
369  private $_resultado = null;
370  private $_hasResultado = false;
371  public function setResultado($value) {
372  $this->_resultado = $value;
373  $this->_hasResultado = ($value !== null);
374  }
375  public function hasResultado() {
376  return $this->_hasResultado;
377  }
378  public function getResultado() {
379  return $this->_resultado;
380  }
381 
382  // name="destino" type="101"[101] minOccurs="0" maxOccurs="1" nillable="false"
383  private $_destino = null;
384  private $_hasDestino = false;
385  public function setDestino($value) {
386  $this->_destino = $value;
387  $this->_hasDestino = ($value !== null);
388  }
389  public function hasDestino() {
390  return $this->_hasDestino;
391  }
392  public function getDestino() {
393  return $this->_destino;
394  }
395 
396  // name="codigoRegistro" type="101"[101] minOccurs="0" maxOccurs="1" nillable="false"
397  private $_codigoRegistro = null;
398  private $_hasCodigoRegistro = false;
399  public function setCodigoRegistro($value) {
400  $this->_codigoRegistro = $value;
401  $this->_hasCodigoRegistro = ($value !== null);
402  }
403  public function hasCodigoRegistro() {
404  return $this->_hasCodigoRegistro;
405  }
406  public function getCodigoRegistro() {
407  return $this->_codigoRegistro;
408  }
409 
410  // name="fechaRegistro" type="101"[101] minOccurs="0" maxOccurs="1" nillable="false"
411  private $_fechaRegistro = null;
412  private $_hasFechaRegistro = false;
413  public function setFechaRegistro($value) {
414  $this->_fechaRegistro = $value;
415  $this->_hasFechaRegistro = ($value !== null);
416  }
417  public function hasFechaRegistro() {
418  return $this->_hasFechaRegistro;
419  }
420  public function getFechaRegistro() {
421  return $this->_fechaRegistro;
422  }
423 
424  // name="error" type="tns:ErrorInfoType"[COMPLEXTYPE] minOccurs="0" maxOccurs="1" nillable="false"
425  private $_error = null;
426  private $_hasError = false;
427  public function setError($value) {
428  $this->_error = $value;
429  $this->_hasError = ($value !== null);
430  }
431  public function hasError() {
432  return $this->_hasError;
433  }
434  public function getError() {
435  return $this->_error;
436  }
437 
438 
439  static public function fromSoap($vData) {
440  $newItem = new RegistroCreadoType();
441  if (!isset($vData['resultado'])) {
442  throw new Exception('El parametro resultado es obligatorio');
443  }
444  if (isset($vData['resultado'])) {
445  $newItem->setResultado($vData['resultado']);
446  }
447  if (isset($vData['destino'])) {
448  $newItem->setDestino($vData['destino']);
449  }
450  if (isset($vData['codigoRegistro'])) {
451  $newItem->setCodigoRegistro($vData['codigoRegistro']);
452  }
453  if (isset($vData['fechaRegistro'])) {
454  $newItem->setFechaRegistro($vData['fechaRegistro']);
455  }
456  if (isset($vData['error'])) {
457  $newClass = ErrorInfoType::fromSoap($vData['error']);
458  $newItem->setError($newClass);
459  }
460 
461  return $newItem;
462  }
463  public function toSoap($fieldName, $namespace) {
464  $myLevel = new ArrayObject();
465 
466  $this->__doChild($myLevel, $this->_resultado, 'resultado', 102, $namespace, 1, 1);
467  $this->__doChild($myLevel, $this->_destino, 'destino', 101, $namespace, 0, 1);
468  $this->__doChild($myLevel, $this->_codigoRegistro, 'codigoRegistro', 101, $namespace, 0, 1);
469  $this->__doChild($myLevel, $this->_fechaRegistro, 'fechaRegistro', 101, $namespace, 0, 1);
470  $this->__doChild($myLevel, $this->_error, 'error', SOAP_ENC_OBJECT, $namespace, 0, 1);
471 
472  //return $myLevel;
473  return new SoapVar($myLevel, SOAP_ENC_OBJECT, null, null, $fieldName, $namespace);
474  }
475 }
476 
478  // name="codigoRegistro" type="101"[101] minOccurs="1" maxOccurs="1" nillable="false"
479  private $_codigoRegistro = null;
480  private $_hasCodigoRegistro = false;
481  public function setCodigoRegistro($value) {
482  $this->_codigoRegistro = $value;
483  $this->_hasCodigoRegistro = ($value !== null);
484  }
485  public function hasCodigoRegistro() {
486  return $this->_hasCodigoRegistro;
487  }
488  public function getCodigoRegistro() {
489  return $this->_codigoRegistro;
490  }
491 
492  // name="fechaRegistro" type="101"[101] minOccurs="1" maxOccurs="1" nillable="false"
493  private $_fechaRegistro = null;
494  private $_hasFechaRegistro = false;
495  public function setFechaRegistro($value) {
496  $this->_fechaRegistro = $value;
497  $this->_hasFechaRegistro = ($value !== null);
498  }
499  public function hasFechaRegistro() {
500  return $this->_hasFechaRegistro;
501  }
502  public function getFechaRegistro() {
503  return $this->_fechaRegistro;
504  }
505 
506 
507  static public function fromSoap($vData) {
508  $newItem = new RegistroDepartamentalCodigoType();
509  if (!isset($vData['codigoRegistro'])) {
510  throw new Exception('El parametro codigoRegistro es obligatorio');
511  }
512  if (isset($vData['codigoRegistro'])) {
513  $newItem->setCodigoRegistro($vData['codigoRegistro']);
514  }
515  if (!isset($vData['fechaRegistro'])) {
516  throw new Exception('El parametro fechaRegistro es obligatorio');
517  }
518  if (isset($vData['fechaRegistro'])) {
519  $newItem->setFechaRegistro($vData['fechaRegistro']);
520  }
521 
522  return $newItem;
523  }
524  public function toSoap($fieldName, $namespace) {
525  $myLevel = new ArrayObject();
526 
527  $this->__doChild($myLevel, $this->_codigoRegistro, 'codigoRegistro', 101, $namespace, 1, 1);
528  $this->__doChild($myLevel, $this->_fechaRegistro, 'fechaRegistro', 101, $namespace, 1, 1);
529 
530  //return $myLevel;
531  return new SoapVar($myLevel, SOAP_ENC_OBJECT, null, null, $fieldName, $namespace);
532  }
533 }
534 
535 class HistoricoType extends SoapObject {
536  // name="registros" type="tns:RegistroDescendenteType"[COMPLEXTYPE] minOccurs="1" maxOccurs="1" nillable="false"
537  private $_registros = null;
538  private $_hasRegistros = false;
539  public function setRegistros($value) {
540  $this->_registros = $value;
541  $this->_hasRegistros = ($value !== null);
542  }
543  public function hasRegistros() {
544  return $this->_hasRegistros;
545  }
546  public function getRegistros() {
547  return $this->_registros;
548  }
549 
550 
551  static public function fromSoap($vData) {
552  $newItem = new HistoricoType();
553  if (!isset($vData['registros'])) {
554  throw new Exception('El parametro registros es obligatorio');
555  }
556  if (isset($vData['registros'])) {
557  $newClass = RegistroDescendenteType::fromSoap($vData['registros']);
558  $newItem->setRegistros($newClass);
559  }
560 
561  return $newItem;
562  }
563  public function toSoap($fieldName, $namespace) {
564  $myLevel = new ArrayObject();
565 
566  $this->__doChild($myLevel, $this->_registros, 'registros', SOAP_ENC_OBJECT, $namespace, 1, 1);
567 
568  //return $myLevel;
569  return new SoapVar($myLevel, SOAP_ENC_OBJECT, null, null, $fieldName, $namespace);
570  }
571 }
572 
574  // name="codigoRegistro" type="101"[101] minOccurs="1" maxOccurs="1" nillable="false"
575  private $_codigoRegistro = null;
576  private $_hasCodigoRegistro = false;
577  public function setCodigoRegistro($value) {
578  $this->_codigoRegistro = $value;
579  $this->_hasCodigoRegistro = ($value !== null);
580  }
581  public function hasCodigoRegistro() {
582  return $this->_hasCodigoRegistro;
583  }
584  public function getCodigoRegistro() {
585  return $this->_codigoRegistro;
586  }
587 
588  // name="fechaRegistro" type="101"[101] minOccurs="1" maxOccurs="1" nillable="false"
589  private $_fechaRegistro = null;
590  private $_hasFechaRegistro = false;
591  public function setFechaRegistro($value) {
592  $this->_fechaRegistro = $value;
593  $this->_hasFechaRegistro = ($value !== null);
594  }
595  public function hasFechaRegistro() {
596  return $this->_hasFechaRegistro;
597  }
598  public function getFechaRegistro() {
599  return $this->_fechaRegistro;
600  }
601 
602  // name="tipoRegistro" type="101"[101] minOccurs="1" maxOccurs="1" nillable="false"
603  private $_tipoRegistro = null;
604  private $_hasTipoRegistro = false;
605  public function setTipoRegistro($value) {
606  $this->_tipoRegistro = $value;
607  $this->_hasTipoRegistro = ($value !== null);
608  }
609  public function hasTipoRegistro() {
610  return $this->_hasTipoRegistro;
611  }
612  public function getTipoRegistro() {
613  return $this->_tipoRegistro;
614  }
615 
616  // name="registroDescendente" type="tns:RegistroDescendenteType"[COMPLEXTYPE] minOccurs="0" maxOccurs="unbounded" nillable="false"
617  private $_registroDescendente = array();
618  private $_hasRegistroDescendente = false;
619  public function replaceArrayRegistroDescendente($value) {
620  $this->_registroDescendente = $value;
621  $this->_hasRegistroDescendente = (isset($this->_registroDescendente) && !empty($this->_registroDescendente));
622  }
623  public function retrieveArrayRegistroDescendente() {
624  return $this->_registroDescendente;
625  }
626  public function addRegistroDescendente($value) {
627  array_push($this->_registroDescendente, $value);
628  $this->_hasRegistroDescendente = (isset($this->_registroDescendente) && !empty($this->_registroDescendente));
629  }
630  public function hasRegistroDescendente() {
631  return $this->_hasRegistroDescendente;
632  }
633  public function getRegistroDescendente($index) {
634  return $this->_registroDescendente[$index];
635  }
636  public function countRegistroDescendente() {
637  return count($this->_registroDescendente);
638  }
639 
640 
641  static public function fromSoap($vData) {
642  $newItem = new RegistroDescendenteType();
643  if (!isset($vData['codigoRegistro'])) {
644  throw new Exception('El parametro codigoRegistro es obligatorio');
645  }
646  if (isset($vData['codigoRegistro'])) {
647  $newItem->setCodigoRegistro($vData['codigoRegistro']);
648  }
649  if (!isset($vData['fechaRegistro'])) {
650  throw new Exception('El parametro fechaRegistro es obligatorio');
651  }
652  if (isset($vData['fechaRegistro'])) {
653  $newItem->setFechaRegistro($vData['fechaRegistro']);
654  }
655  if (!isset($vData['tipoRegistro'])) {
656  throw new Exception('El parametro tipoRegistro es obligatorio');
657  }
658  if (isset($vData['tipoRegistro'])) {
659  $newItem->setTipoRegistro($vData['tipoRegistro']);
660  }
661  if (isset($vData['registroDescendente']) && !empty($vData['registroDescendente'])) {
662  if (SoapObject::is_assoc($vData['registroDescendente'])) {
663  // Si es asociativo, lo probable es que nos encontremos ante un array de un solo elemento de forma que directamente se ha introducido el elemento a tratar
664  $newClass = RegistroDescendenteType::fromSoap($vData['registroDescendente']);
665  $newItem->addRegistroDescendente($newClass);
666  } else {
667  foreach ($vData['registroDescendente'] as $oVar) {
668  $newClass = RegistroDescendenteType::fromSoap($oVar);
669  $newItem->addRegistroDescendente($newClass);
670  }
671  }
672  }
673 
674  return $newItem;
675  }
676  public function toSoap($fieldName, $namespace) {
677  $myLevel = new ArrayObject();
678 
679  $this->__doChild($myLevel, $this->_codigoRegistro, 'codigoRegistro', 101, $namespace, 1, 1);
680  $this->__doChild($myLevel, $this->_fechaRegistro, 'fechaRegistro', 101, $namespace, 1, 1);
681  $this->__doChild($myLevel, $this->_tipoRegistro, 'tipoRegistro', 101, $namespace, 1, 1);
682  $this->__doChild($myLevel, $this->_registroDescendente, 'registroDescendente', SOAP_ENC_OBJECT, $namespace, 0, unbounded);
683 
684  //return $myLevel;
685  return new SoapVar($myLevel, SOAP_ENC_OBJECT, null, null, $fieldName, $namespace);
686  }
687 }
688 
690  // name="direccion" type="101"[101] minOccurs="0" maxOccurs="1" nillable="false"
691  private $_direccion = null;
692  private $_hasDireccion = false;
693  public function setDireccion($value) {
694  $this->_direccion = $value;
695  $this->_hasDireccion = ($value !== null);
696  }
697  public function hasDireccion() {
698  return $this->_hasDireccion;
699  }
700  public function getDireccion() {
701  return $this->_direccion;
702  }
703 
704  // name="codigoPostal" type="101"[101] minOccurs="0" maxOccurs="1" nillable="false"
705  private $_codigoPostal = null;
706  private $_hasCodigoPostal = false;
707  public function setCodigoPostal($value) {
708  $this->_codigoPostal = $value;
709  $this->_hasCodigoPostal = ($value !== null);
710  }
711  public function hasCodigoPostal() {
712  return $this->_hasCodigoPostal;
713  }
714  public function getCodigoPostal() {
715  return $this->_codigoPostal;
716  }
717 
718  // name="codigoProvincia" type="101"[101] minOccurs="0" maxOccurs="1" nillable="false"
719  private $_codigoProvincia = null;
720  private $_hasCodigoProvincia = false;
721  public function setCodigoProvincia($value) {
722  $this->_codigoProvincia = $value;
723  $this->_hasCodigoProvincia = ($value !== null);
724  }
725  public function hasCodigoProvincia() {
726  return $this->_hasCodigoProvincia;
727  }
728  public function getCodigoProvincia() {
729  return $this->_codigoProvincia;
730  }
731 
732  // name="codigoMunicipio" type="101"[101] minOccurs="0" maxOccurs="1" nillable="false"
733  private $_codigoMunicipio = null;
734  private $_hasCodigoMunicipio = false;
735  public function setCodigoMunicipio($value) {
736  $this->_codigoMunicipio = $value;
737  $this->_hasCodigoMunicipio = ($value !== null);
738  }
739  public function hasCodigoMunicipio() {
740  return $this->_hasCodigoMunicipio;
741  }
742  public function getCodigoMunicipio() {
743  return $this->_codigoMunicipio;
744  }
745 
746  // name="descripcionMunicipio" type="101"[101] minOccurs="0" maxOccurs="1" nillable="false"
747  private $_descripcionMunicipio = null;
748  private $_hasDescripcionMunicipio = false;
749  public function setDescripcionMunicipio($value) {
750  $this->_descripcionMunicipio = $value;
751  $this->_hasDescripcionMunicipio = ($value !== null);
752  }
753  public function hasDescripcionMunicipio() {
754  return $this->_hasDescripcionMunicipio;
755  }
756  public function getDescripcionMunicipio() {
757  return $this->_descripcionMunicipio;
758  }
759 
760  // name="codigoPoblacion" type="101"[101] minOccurs="0" maxOccurs="1" nillable="false"
761  private $_codigoPoblacion = null;
762  private $_hasCodigoPoblacion = false;
763  public function setCodigoPoblacion($value) {
764  $this->_codigoPoblacion = $value;
765  $this->_hasCodigoPoblacion = ($value !== null);
766  }
767  public function hasCodigoPoblacion() {
768  return $this->_hasCodigoPoblacion;
769  }
770  public function getCodigoPoblacion() {
771  return $this->_codigoPoblacion;
772  }
773 
774  // name="pais" type="101"[101] minOccurs="0" maxOccurs="1" nillable="false"
775  private $_pais = null;
776  private $_hasPais = false;
777  public function setPais($value) {
778  $this->_pais = $value;
779  $this->_hasPais = ($value !== null);
780  }
781  public function hasPais() {
782  return $this->_hasPais;
783  }
784  public function getPais() {
785  return $this->_pais;
786  }
787 
788  // name="telefono" type="101"[101] minOccurs="0" maxOccurs="1" nillable="false"
789  private $_telefono = null;
790  private $_hasTelefono = false;
791  public function setTelefono($value) {
792  $this->_telefono = $value;
793  $this->_hasTelefono = ($value !== null);
794  }
795  public function hasTelefono() {
796  return $this->_hasTelefono;
797  }
798  public function getTelefono() {
799  return $this->_telefono;
800  }
801 
802  // name="fax" type="101"[101] minOccurs="0" maxOccurs="1" nillable="false"
803  private $_fax = null;
804  private $_hasFax = false;
805  public function setFax($value) {
806  $this->_fax = $value;
807  $this->_hasFax = ($value !== null);
808  }
809  public function hasFax() {
810  return $this->_hasFax;
811  }
812  public function getFax() {
813  return $this->_fax;
814  }
815 
816 
817  static public function fromSoap($vData) {
818  $newItem = new DatosDomicilioType();
819  if (isset($vData['direccion'])) {
820  $newItem->setDireccion($vData['direccion']);
821  }
822  if (isset($vData['codigoPostal'])) {
823  $newItem->setCodigoPostal($vData['codigoPostal']);
824  }
825  if (isset($vData['codigoProvincia'])) {
826  $newItem->setCodigoProvincia($vData['codigoProvincia']);
827  }
828  if (isset($vData['codigoMunicipio'])) {
829  $newItem->setCodigoMunicipio($vData['codigoMunicipio']);
830  }
831  if (isset($vData['descripcionMunicipio'])) {
832  $newItem->setDescripcionMunicipio($vData['descripcionMunicipio']);
833  }
834  if (isset($vData['codigoPoblacion'])) {
835  $newItem->setCodigoPoblacion($vData['codigoPoblacion']);
836  }
837  if (isset($vData['pais'])) {
838  $newItem->setPais($vData['pais']);
839  }
840  if (isset($vData['telefono'])) {
841  $newItem->setTelefono($vData['telefono']);
842  }
843  if (isset($vData['fax'])) {
844  $newItem->setFax($vData['fax']);
845  }
846 
847  return $newItem;
848  }
849  public function toSoap($fieldName, $namespace) {
850  $myLevel = new ArrayObject();
851 
852  $this->__doChild($myLevel, $this->_direccion, 'direccion', 101, $namespace, 0, 1);
853  $this->__doChild($myLevel, $this->_codigoPostal, 'codigoPostal', 101, $namespace, 0, 1);
854  $this->__doChild($myLevel, $this->_codigoProvincia, 'codigoProvincia', 101, $namespace, 0, 1);
855  $this->__doChild($myLevel, $this->_codigoMunicipio, 'codigoMunicipio', 101, $namespace, 0, 1);
856  $this->__doChild($myLevel, $this->_descripcionMunicipio, 'descripcionMunicipio', 101, $namespace, 0, 1);
857  $this->__doChild($myLevel, $this->_codigoPoblacion, 'codigoPoblacion', 101, $namespace, 0, 1);
858  $this->__doChild($myLevel, $this->_pais, 'pais', 101, $namespace, 0, 1);
859  $this->__doChild($myLevel, $this->_telefono, 'telefono', 101, $namespace, 0, 1);
860  $this->__doChild($myLevel, $this->_fax, 'fax', 101, $namespace, 0, 1);
861 
862  //return $myLevel;
863  return new SoapVar($myLevel, SOAP_ENC_OBJECT, null, null, $fieldName, $namespace);
864  }
865 }
866 
868  // name="documentoIdentificativo" type="tns:DocumentoIdentificativoType"[COMPLEXTYPE] minOccurs="1" maxOccurs="1" nillable="false"
869  private $_documentoIdentificativo = null;
870  private $_hasDocumentoIdentificativo = false;
871  public function setDocumentoIdentificativo($value) {
872  $this->_documentoIdentificativo = $value;
873  $this->_hasDocumentoIdentificativo = ($value !== null);
874  }
875  public function hasDocumentoIdentificativo() {
876  return $this->_hasDocumentoIdentificativo;
877  }
878  public function getDocumentoIdentificativo() {
879  return $this->_documentoIdentificativo;
880  }
881 
882  // name="nombreApellidos" type="101"[101] minOccurs="0" maxOccurs="1" nillable="false"
883  private $_nombreApellidos = null;
884  private $_hasNombreApellidos = false;
885  public function setNombreApellidos($value) {
886  $this->_nombreApellidos = $value;
887  $this->_hasNombreApellidos = ($value !== null);
888  }
889  public function hasNombreApellidos() {
890  return $this->_hasNombreApellidos;
891  }
892  public function getNombreApellidos() {
893  return $this->_nombreApellidos;
894  }
895 
896  // name="nombre" type="101"[101] minOccurs="0" maxOccurs="1" nillable="false"
897  private $_nombre = null;
898  private $_hasNombre = false;
899  public function setNombre($value) {
900  $this->_nombre = $value;
901  $this->_hasNombre = ($value !== null);
902  }
903  public function hasNombre() {
904  return $this->_hasNombre;
905  }
906  public function getNombre() {
907  return $this->_nombre;
908  }
909 
910  // name="apellido1" type="101"[101] minOccurs="0" maxOccurs="1" nillable="false"
911  private $_apellido1 = null;
912  private $_hasApellido1 = false;
913  public function setApellido1($value) {
914  $this->_apellido1 = $value;
915  $this->_hasApellido1 = ($value !== null);
916  }
917  public function hasApellido1() {
918  return $this->_hasApellido1;
919  }
920  public function getApellido1() {
921  return $this->_apellido1;
922  }
923 
924  // name="apellido2" type="101"[101] minOccurs="0" maxOccurs="1" nillable="false"
925  private $_apellido2 = null;
926  private $_hasApellido2 = false;
927  public function setApellido2($value) {
928  $this->_apellido2 = $value;
929  $this->_hasApellido2 = ($value !== null);
930  }
931  public function hasApellido2() {
932  return $this->_hasApellido2;
933  }
934  public function getApellido2() {
935  return $this->_apellido2;
936  }
937 
938  // name="domicilio" type="tns:DatosDomicilioType"[COMPLEXTYPE] minOccurs="0" maxOccurs="1" nillable="false"
939  private $_domicilio = null;
940  private $_hasDomicilio = false;
941  public function setDomicilio($value) {
942  $this->_domicilio = $value;
943  $this->_hasDomicilio = ($value !== null);
944  }
945  public function hasDomicilio() {
946  return $this->_hasDomicilio;
947  }
948  public function getDomicilio() {
949  return $this->_domicilio;
950  }
951 
952 
953  static public function fromSoap($vData) {
954  $newItem = new DatosIdentificativosType();
955  if (!isset($vData['documentoIdentificativo'])) {
956  throw new Exception('El parametro documentoIdentificativo es obligatorio');
957  }
958  if (isset($vData['documentoIdentificativo'])) {
959  $newClass = DocumentoIdentificativoType::fromSoap($vData['documentoIdentificativo']);
960  $newItem->setDocumentoIdentificativo($newClass);
961  }
962  if (isset($vData['nombreApellidos'])) {
963  $newItem->setNombreApellidos($vData['nombreApellidos']);
964  }
965  if (isset($vData['nombre'])) {
966  $newItem->setNombre($vData['nombre']);
967  }
968  if (isset($vData['apellido1'])) {
969  $newItem->setApellido1($vData['apellido1']);
970  }
971  if (isset($vData['apellido2'])) {
972  $newItem->setApellido2($vData['apellido2']);
973  }
974  if (isset($vData['domicilio'])) {
975  $newClass = DatosDomicilioType::fromSoap($vData['domicilio']);
976  $newItem->setDomicilio($newClass);
977  }
978 
979  return $newItem;
980  }
981  public function toSoap($fieldName, $namespace) {
982  $myLevel = new ArrayObject();
983 
984  $this->__doChild($myLevel, $this->_documentoIdentificativo, 'documentoIdentificativo', SOAP_ENC_OBJECT, $namespace, 1, 1);
985  $this->__doChild($myLevel, $this->_nombreApellidos, 'nombreApellidos', 101, $namespace, 0, 1);
986  $this->__doChild($myLevel, $this->_nombre, 'nombre', 101, $namespace, 0, 1);
987  $this->__doChild($myLevel, $this->_apellido1, 'apellido1', 101, $namespace, 0, 1);
988  $this->__doChild($myLevel, $this->_apellido2, 'apellido2', 101, $namespace, 0, 1);
989  $this->__doChild($myLevel, $this->_domicilio, 'domicilio', SOAP_ENC_OBJECT, $namespace, 0, 1);
990 
991  //return $myLevel;
992  return new SoapVar($myLevel, SOAP_ENC_OBJECT, null, null, $fieldName, $namespace);
993  }
994 }
995 
996 class DestinoType extends SoapObject {
997  // name="organismoDestino" type="101"[101] minOccurs="1" maxOccurs="1" nillable="false"
998  private $_organismoDestino = null;
999  private $_hasOrganismoDestino = false;
1000  public function setOrganismoDestino($value) {
1001  $this->_organismoDestino = $value;
1002  $this->_hasOrganismoDestino = ($value !== null);
1003  }
1004  public function hasOrganismoDestino() {
1005  return $this->_hasOrganismoDestino;
1006  }
1007  public function getOrganismoDestino() {
1008  return $this->_organismoDestino;
1009  }
1010 
1011  // name="unidadDestino" type="101"[101] minOccurs="1" maxOccurs="1" nillable="false"
1012  private $_unidadDestino = null;
1013  private $_hasUnidadDestino = false;
1014  public function setUnidadDestino($value) {
1015  $this->_unidadDestino = $value;
1016  $this->_hasUnidadDestino = ($value !== null);
1017  }
1018  public function hasUnidadDestino() {
1019  return $this->_hasUnidadDestino;
1020  }
1021  public function getUnidadDestino() {
1022  return $this->_unidadDestino;
1023  }
1024 
1025 
1026  static public function fromSoap($vData) {
1027  $newItem = new DestinoType();
1028  if (!isset($vData['organismoDestino'])) {
1029  throw new Exception('El parametro organismoDestino es obligatorio');
1030  }
1031  if (isset($vData['organismoDestino'])) {
1032  $newItem->setOrganismoDestino($vData['organismoDestino']);
1033  }
1034  if (!isset($vData['unidadDestino'])) {
1035  throw new Exception('El parametro unidadDestino es obligatorio');
1036  }
1037  if (isset($vData['unidadDestino'])) {
1038  $newItem->setUnidadDestino($vData['unidadDestino']);
1039  }
1040 
1041  return $newItem;
1042  }
1043  public function toSoap($fieldName, $namespace) {
1044  $myLevel = new ArrayObject();
1045 
1046  $this->__doChild($myLevel, $this->_organismoDestino, 'organismoDestino', 101, $namespace, 1, 1);
1047  $this->__doChild($myLevel, $this->_unidadDestino, 'unidadDestino', 101, $namespace, 1, 1);
1048 
1049  //return $myLevel;
1050  return new SoapVar($myLevel, SOAP_ENC_OBJECT, null, null, $fieldName, $namespace);
1051  }
1052 }
1053 
1054 class DestinosType extends SoapObject {
1055  // name="destino" type="101"[101] minOccurs="1" maxOccurs="unbounded" nillable="false"
1056  private $_destino = array();
1057  private $_hasDestino = false;
1058  public function replaceArrayDestino($value) {
1059  $this->_destino = $value;
1060  $this->_hasDestino = (isset($this->_destino) && !empty($this->_destino));
1061  }
1062  public function retrieveArrayDestino() {
1063  return $this->_destino;
1064  }
1065  public function addDestino($value) {
1066  array_push($this->_destino, $value);
1067  $this->_hasDestino = (isset($this->_destino) && !empty($this->_destino));
1068  }
1069  public function hasDestino() {
1070  return $this->_hasDestino;
1071  }
1072  public function getDestino($index) {
1073  return $this->_destino[$index];
1074  }
1075  public function countDestino() {
1076  return count($this->_destino);
1077  }
1078 
1079 
1080  static public function fromSoap($vData) {
1081  $newItem = new DestinosType();
1082  if (!isset($vData['destino'])) {
1083  throw new Exception('El parametro destino es obligatorio');
1084  }
1085  if (is_array($vData['destino'])) {
1086  if (isset($vData['destino']) && !empty($vData['destino'])) {
1087  if (SoapObject::is_assoc($vData['destino'])) {
1088  // Si es asociativo, lo probable es que nos encontremos ante un array de un solo elemento de forma que directamente se ha introducido el elemento a tratar
1089  $newItem->addDestino($vData['destino']);
1090  } else {
1091  $newItem->replaceAllDestino($vData['destino']);
1092  }
1093  }
1094  } else {
1095  $newItem->addDestino($vData['destino']);
1096  }
1097 
1098  return $newItem;
1099  }
1100  public function toSoap($fieldName, $namespace) {
1101  $myLevel = new ArrayObject();
1102 
1103  $this->__doChild($myLevel, $this->_destino, 'destino', 101, $namespace, 1, unbounded);
1104 
1105  //return $myLevel;
1106  return new SoapVar($myLevel, SOAP_ENC_OBJECT, null, null, $fieldName, $namespace);
1107  }
1108 }
1109 
1111  // name="organismo" type="101"[101] minOccurs="1" maxOccurs="1" nillable="false"
1112  private $_organismo = null;
1113  private $_hasOrganismo = false;
1114  public function setOrganismo($value) {
1115  $this->_organismo = $value;
1116  $this->_hasOrganismo = ($value !== null);
1117  }
1118  public function hasOrganismo() {
1119  return $this->_hasOrganismo;
1120  }
1121  public function getOrganismo() {
1122  return $this->_organismo;
1123  }
1124 
1125  // name="unidadRegistral" type="101"[101] minOccurs="1" maxOccurs="1" nillable="false"
1126  private $_unidadRegistral = null;
1127  private $_hasUnidadRegistral = false;
1128  public function setUnidadRegistral($value) {
1129  $this->_unidadRegistral = $value;
1130  $this->_hasUnidadRegistral = ($value !== null);
1131  }
1132  public function hasUnidadRegistral() {
1133  return $this->_hasUnidadRegistral;
1134  }
1135  public function getUnidadRegistral() {
1136  return $this->_unidadRegistral;
1137  }
1138 
1139  // name="anyo" type="101"[101] minOccurs="1" maxOccurs="1" nillable="false"
1140  private $_anyo = null;
1141  private $_hasAnyo = false;
1142  public function setAnyo($value) {
1143  $this->_anyo = $value;
1144  $this->_hasAnyo = ($value !== null);
1145  }
1146  public function hasAnyo() {
1147  return $this->_hasAnyo;
1148  }
1149  public function getAnyo() {
1150  return $this->_anyo;
1151  }
1152 
1153  // name="numeroRegistro" type="131"[131] minOccurs="1" maxOccurs="1" nillable="false"
1154  private $_numeroRegistro = null;
1155  private $_hasNumeroRegistro = false;
1156  public function setNumeroRegistro($value) {
1157  $this->_numeroRegistro = $value;
1158  $this->_hasNumeroRegistro = ($value !== null);
1159  }
1160  public function hasNumeroRegistro() {
1161  return $this->_hasNumeroRegistro;
1162  }
1163  public function getNumeroRegistro() {
1164  return $this->_numeroRegistro;
1165  }
1166 
1167 
1168  static public function fromSoap($vData) {
1169  $newItem = new DatosRegistroType();
1170  if (!isset($vData['organismo'])) {
1171  throw new Exception('El parametro organismo es obligatorio');
1172  }
1173  if (isset($vData['organismo'])) {
1174  $newItem->setOrganismo($vData['organismo']);
1175  }
1176  if (!isset($vData['unidadRegistral'])) {
1177  throw new Exception('El parametro unidadRegistral es obligatorio');
1178  }
1179  if (isset($vData['unidadRegistral'])) {
1180  $newItem->setUnidadRegistral($vData['unidadRegistral']);
1181  }
1182  if (!isset($vData['anyo'])) {
1183  throw new Exception('El parametro anyo es obligatorio');
1184  }
1185  if (isset($vData['anyo'])) {
1186  $newItem->setAnyo($vData['anyo']);
1187  }
1188  if (!isset($vData['numeroRegistro'])) {
1189  throw new Exception('El parametro numeroRegistro es obligatorio');
1190  }
1191  if (isset($vData['numeroRegistro'])) {
1192  $newItem->setNumeroRegistro($vData['numeroRegistro']);
1193  }
1194 
1195  return $newItem;
1196  }
1197  public function toSoap($fieldName, $namespace) {
1198  $myLevel = new ArrayObject();
1199 
1200  $this->__doChild($myLevel, $this->_organismo, 'organismo', 101, $namespace, 1, 1);
1201  $this->__doChild($myLevel, $this->_unidadRegistral, 'unidadRegistral', 101, $namespace, 1, 1);
1202  $this->__doChild($myLevel, $this->_anyo, 'anyo', 101, $namespace, 1, 1);
1203  $this->__doChild($myLevel, $this->_numeroRegistro, 'numeroRegistro', 131, $namespace, 1, 1);
1204 
1205  //return $myLevel;
1206  return new SoapVar($myLevel, SOAP_ENC_OBJECT, null, null, $fieldName, $namespace);
1207  }
1208 }
1209 
1211  // name="organismo" type="101"[101] minOccurs="1" maxOccurs="1" nillable="false"
1212  private $_organismo = null;
1213  private $_hasOrganismo = false;
1214  public function setOrganismo($value) {
1215  $this->_organismo = $value;
1216  $this->_hasOrganismo = ($value !== null);
1217  }
1218  public function hasOrganismo() {
1219  return $this->_hasOrganismo;
1220  }
1221  public function getOrganismo() {
1222  return $this->_organismo;
1223  }
1224 
1225  // name="codigoUnidadDepartamental" type="101"[101] minOccurs="1" maxOccurs="1" nillable="false"
1226  private $_codigoUnidadDepartamental = null;
1227  private $_hasCodigoUnidadDepartamental = false;
1228  public function setCodigoUnidadDepartamental($value) {
1229  $this->_codigoUnidadDepartamental = $value;
1230  $this->_hasCodigoUnidadDepartamental = ($value !== null);
1231  }
1232  public function hasCodigoUnidadDepartamental() {
1233  return $this->_hasCodigoUnidadDepartamental;
1234  }
1235  public function getCodigoUnidadDepartamental() {
1236  return $this->_codigoUnidadDepartamental;
1237  }
1238 
1239  // name="anyo" type="101"[101] minOccurs="1" maxOccurs="1" nillable="false"
1240  private $_anyo = null;
1241  private $_hasAnyo = false;
1242  public function setAnyo($value) {
1243  $this->_anyo = $value;
1244  $this->_hasAnyo = ($value !== null);
1245  }
1246  public function hasAnyo() {
1247  return $this->_hasAnyo;
1248  }
1249  public function getAnyo() {
1250  return $this->_anyo;
1251  }
1252 
1253  // name="numeroRegistro" type="131"[131] minOccurs="1" maxOccurs="1" nillable="false"
1254  private $_numeroRegistro = null;
1255  private $_hasNumeroRegistro = false;
1256  public function setNumeroRegistro($value) {
1257  $this->_numeroRegistro = $value;
1258  $this->_hasNumeroRegistro = ($value !== null);
1259  }
1260  public function hasNumeroRegistro() {
1261  return $this->_hasNumeroRegistro;
1262  }
1263  public function getNumeroRegistro() {
1264  return $this->_numeroRegistro;
1265  }
1266 
1267  // name="tipoRegistroDepartamental" type="101"[101] minOccurs="1" maxOccurs="1" nillable="false"
1268  private $_tipoRegistroDepartamental = null;
1269  private $_hasTipoRegistroDepartamental = false;
1270  public function setTipoRegistroDepartamental($value) {
1271  $this->_tipoRegistroDepartamental = $value;
1272  $this->_hasTipoRegistroDepartamental = ($value !== null);
1273  }
1274  public function hasTipoRegistroDepartamental() {
1275  return $this->_hasTipoRegistroDepartamental;
1276  }
1277  public function getTipoRegistroDepartamental() {
1278  return $this->_tipoRegistroDepartamental;
1279  }
1280 
1281 
1282  static public function fromSoap($vData) {
1283  $newItem = new IdentificacionRegistroDepartamentalType();
1284  if (!isset($vData['organismo'])) {
1285  throw new Exception('El parametro organismo es obligatorio');
1286  }
1287  if (isset($vData['organismo'])) {
1288  $newItem->setOrganismo($vData['organismo']);
1289  }
1290  if (!isset($vData['codigoUnidadDepartamental'])) {
1291  throw new Exception('El parametro codigoUnidadDepartamental es obligatorio');
1292  }
1293  if (isset($vData['codigoUnidadDepartamental'])) {
1294  $newItem->setCodigoUnidadDepartamental($vData['codigoUnidadDepartamental']);
1295  }
1296  if (!isset($vData['anyo'])) {
1297  throw new Exception('El parametro anyo es obligatorio');
1298  }
1299  if (isset($vData['anyo'])) {
1300  $newItem->setAnyo($vData['anyo']);
1301  }
1302  if (!isset($vData['numeroRegistro'])) {
1303  throw new Exception('El parametro numeroRegistro es obligatorio');
1304  }
1305  if (isset($vData['numeroRegistro'])) {
1306  $newItem->setNumeroRegistro($vData['numeroRegistro']);
1307  }
1308  if (!isset($vData['tipoRegistroDepartamental'])) {
1309  throw new Exception('El parametro tipoRegistroDepartamental es obligatorio');
1310  }
1311  if (isset($vData['tipoRegistroDepartamental'])) {
1312  $newItem->setTipoRegistroDepartamental($vData['tipoRegistroDepartamental']);
1313  }
1314 
1315  return $newItem;
1316  }
1317  public function toSoap($fieldName, $namespace) {
1318  $myLevel = new ArrayObject();
1319 
1320  $this->__doChild($myLevel, $this->_organismo, 'organismo', 101, $namespace, 1, 1);
1321  $this->__doChild($myLevel, $this->_codigoUnidadDepartamental, 'codigoUnidadDepartamental', 101, $namespace, 1, 1);
1322  $this->__doChild($myLevel, $this->_anyo, 'anyo', 101, $namespace, 1, 1);
1323  $this->__doChild($myLevel, $this->_numeroRegistro, 'numeroRegistro', 131, $namespace, 1, 1);
1324  $this->__doChild($myLevel, $this->_tipoRegistroDepartamental, 'tipoRegistroDepartamental', 101, $namespace, 1, 1);
1325 
1326  //return $myLevel;
1327  return new SoapVar($myLevel, SOAP_ENC_OBJECT, null, null, $fieldName, $namespace);
1328  }
1329 }
1330 
1332  // name="maquina" type="101"[101] minOccurs="0" maxOccurs="1" nillable="false"
1333  private $_maquina = null;
1334  private $_hasMaquina = false;
1335  public function setMaquina($value) {
1336  $this->_maquina = $value;
1337  $this->_hasMaquina = ($value !== null);
1338  }
1339  public function hasMaquina() {
1340  return $this->_hasMaquina;
1341  }
1342  public function getMaquina() {
1343  return $this->_maquina;
1344  }
1345 
1346  // name="numeroReset" type="101"[101] minOccurs="0" maxOccurs="1" nillable="false"
1347  private $_numeroReset = null;
1348  private $_hasNumeroReset = false;
1349  public function setNumeroReset($value) {
1350  $this->_numeroReset = $value;
1351  $this->_hasNumeroReset = ($value !== null);
1352  }
1353  public function hasNumeroReset() {
1354  return $this->_hasNumeroReset;
1355  }
1356  public function getNumeroReset() {
1357  return $this->_numeroReset;
1358  }
1359 
1360  // name="codigoExpediente" type="101"[101] minOccurs="0" maxOccurs="1" nillable="false"
1361  private $_codigoExpediente = null;
1362  private $_hasCodigoExpediente = false;
1363  public function setCodigoExpediente($value) {
1364  $this->_codigoExpediente = $value;
1365  $this->_hasCodigoExpediente = ($value !== null);
1366  }
1367  public function hasCodigoExpediente() {
1368  return $this->_hasCodigoExpediente;
1369  }
1370  public function getCodigoExpediente() {
1371  return $this->_codigoExpediente;
1372  }
1373 
1374 
1375  static public function fromSoap($vData) {
1376  $newItem = new DatosExpedienteType();
1377  if (isset($vData['maquina'])) {
1378  $newItem->setMaquina($vData['maquina']);
1379  }
1380  if (isset($vData['numeroReset'])) {
1381  $newItem->setNumeroReset($vData['numeroReset']);
1382  }
1383  if (isset($vData['codigoExpediente'])) {
1384  $newItem->setCodigoExpediente($vData['codigoExpediente']);
1385  }
1386 
1387  return $newItem;
1388  }
1389  public function toSoap($fieldName, $namespace) {
1390  $myLevel = new ArrayObject();
1391 
1392  $this->__doChild($myLevel, $this->_maquina, 'maquina', 101, $namespace, 0, 1);
1393  $this->__doChild($myLevel, $this->_numeroReset, 'numeroReset', 101, $namespace, 0, 1);
1394  $this->__doChild($myLevel, $this->_codigoExpediente, 'codigoExpediente', 101, $namespace, 0, 1);
1395 
1396  //return $myLevel;
1397  return new SoapVar($myLevel, SOAP_ENC_OBJECT, null, null, $fieldName, $namespace);
1398  }
1399 }
1400 
1401 class DocumentoType extends SoapObject {
1402  // name="codigoNormalizadoDocumento" type="101"[101] minOccurs="0" maxOccurs="1" nillable="false"
1403  private $_codigoNormalizadoDocumento = null;
1404  private $_hasCodigoNormalizadoDocumento = false;
1405  public function setCodigoNormalizadoDocumento($value) {
1406  $this->_codigoNormalizadoDocumento = $value;
1407  $this->_hasCodigoNormalizadoDocumento = ($value !== null);
1408  }
1409  public function hasCodigoNormalizadoDocumento() {
1410  return $this->_hasCodigoNormalizadoDocumento;
1411  }
1412  public function getCodigoNormalizadoDocumento() {
1413  return $this->_codigoNormalizadoDocumento;
1414  }
1415 
1416  // name="descripcionDocumento" type="101"[101] minOccurs="1" maxOccurs="1" nillable="false"
1417  private $_descripcionDocumento = null;
1418  private $_hasDescripcionDocumento = false;
1419  public function setDescripcionDocumento($value) {
1420  $this->_descripcionDocumento = $value;
1421  $this->_hasDescripcionDocumento = ($value !== null);
1422  }
1423  public function hasDescripcionDocumento() {
1424  return $this->_hasDescripcionDocumento;
1425  }
1426  public function getDescripcionDocumento() {
1427  return $this->_descripcionDocumento;
1428  }
1429 
1430  // name="nombreDocumento" type="101"[101] minOccurs="1" maxOccurs="1" nillable="false"
1431  private $_nombreDocumento = null;
1432  private $_hasNombreDocumento = false;
1433  public function setNombreDocumento($value) {
1434  $this->_nombreDocumento = $value;
1435  $this->_hasNombreDocumento = ($value !== null);
1436  }
1437  public function hasNombreDocumento() {
1438  return $this->_hasNombreDocumento;
1439  }
1440  public function getNombreDocumento() {
1441  return $this->_nombreDocumento;
1442  }
1443 
1444  // name="fechaDocumento" type="101"[101] minOccurs="1" maxOccurs="1" nillable="false"
1445  private $_fechaDocumento = null;
1446  private $_hasFechaDocumento = false;
1447  public function setFechaDocumento($value) {
1448  $this->_fechaDocumento = $value;
1449  $this->_hasFechaDocumento = ($value !== null);
1450  }
1451  public function hasFechaDocumento() {
1452  return $this->_hasFechaDocumento;
1453  }
1454  public function getFechaDocumento() {
1455  return $this->_fechaDocumento;
1456  }
1457 
1458  // name="contenido" type="116"[116] minOccurs="1" maxOccurs="1" nillable="false"
1459  private $_contenido = null;
1460  private $_hasContenido = false;
1461  public function setContenido($value) {
1462  $this->_contenido = $value;
1463  $this->_hasContenido = ($value !== null);
1464  }
1465  public function hasContenido() {
1466  return $this->_hasContenido;
1467  }
1468  public function getContenido() {
1469  return $this->_contenido;
1470  }
1471 
1472  // name="hash" type="101"[101] minOccurs="1" maxOccurs="1" nillable="false"
1473  private $_hash = null;
1474  private $_hasHash = false;
1475  public function setHash($value) {
1476  $this->_hash = $value;
1477  $this->_hasHash = ($value !== null);
1478  }
1479  public function hasHash() {
1480  return $this->_hasHash;
1481  }
1482  public function getHash() {
1483  return $this->_hash;
1484  }
1485 
1486 
1487  static public function fromSoap($vData) {
1488  $newItem = new DocumentoType();
1489  if (isset($vData['codigoNormalizadoDocumento'])) {
1490  $newItem->setCodigoNormalizadoDocumento($vData['codigoNormalizadoDocumento']);
1491  }
1492  if (!isset($vData['descripcionDocumento'])) {
1493  throw new Exception('El parametro descripcionDocumento es obligatorio');
1494  }
1495  if (isset($vData['descripcionDocumento'])) {
1496  $newItem->setDescripcionDocumento($vData['descripcionDocumento']);
1497  }
1498  if (!isset($vData['nombreDocumento'])) {
1499  throw new Exception('El parametro nombreDocumento es obligatorio');
1500  }
1501  if (isset($vData['nombreDocumento'])) {
1502  $newItem->setNombreDocumento($vData['nombreDocumento']);
1503  }
1504  if (!isset($vData['fechaDocumento'])) {
1505  throw new Exception('El parametro fechaDocumento es obligatorio');
1506  }
1507  if (isset($vData['fechaDocumento'])) {
1508  $newItem->setFechaDocumento($vData['fechaDocumento']);
1509  }
1510  if (!isset($vData['contenido'])) {
1511  throw new Exception('El parametro contenido es obligatorio');
1512  }
1513  if (isset($vData['contenido'])) {
1514  $newItem->setContenido($vData['contenido']);
1515  }
1516  if (!isset($vData['hash'])) {
1517  throw new Exception('El parametro hash es obligatorio');
1518  }
1519  if (isset($vData['hash'])) {
1520  $newItem->setHash($vData['hash']);
1521  }
1522 
1523  return $newItem;
1524  }
1525  public function toSoap($fieldName, $namespace) {
1526  $myLevel = new ArrayObject();
1527 
1528  $this->__doChild($myLevel, $this->_codigoNormalizadoDocumento, 'codigoNormalizadoDocumento', 101, $namespace, 0, 1);
1529  $this->__doChild($myLevel, $this->_descripcionDocumento, 'descripcionDocumento', 101, $namespace, 1, 1);
1530  $this->__doChild($myLevel, $this->_nombreDocumento, 'nombreDocumento', 101, $namespace, 1, 1);
1531  $this->__doChild($myLevel, $this->_fechaDocumento, 'fechaDocumento', 101, $namespace, 1, 1);
1532  $this->__doChild($myLevel, $this->_contenido, 'contenido', 116, $namespace, 1, 1);
1533  $this->__doChild($myLevel, $this->_hash, 'hash', 101, $namespace, 1, 1);
1534 
1535  //return $myLevel;
1536  return new SoapVar($myLevel, SOAP_ENC_OBJECT, null, null, $fieldName, $namespace);
1537  }
1538 }
1539 
1541  // name="documento" type="tns:DocumentoType"[COMPLEXTYPE] minOccurs="1" maxOccurs="unbounded" nillable="false"
1542  private $_documento = array();
1543  private $_hasDocumento = false;
1544  public function replaceArrayDocumento($value) {
1545  $this->_documento = $value;
1546  $this->_hasDocumento = (isset($this->_documento) && !empty($this->_documento));
1547  }
1548  public function retrieveArrayDocumento() {
1549  return $this->_documento;
1550  }
1551  public function addDocumento($value) {
1552  array_push($this->_documento, $value);
1553  $this->_hasDocumento = (isset($this->_documento) && !empty($this->_documento));
1554  }
1555  public function hasDocumento() {
1556  return $this->_hasDocumento;
1557  }
1558  public function getDocumento($index) {
1559  return $this->_documento[$index];
1560  }
1561  public function countDocumento() {
1562  return count($this->_documento);
1563  }
1564 
1565 
1566  static public function fromSoap($vData) {
1567  $newItem = new DocumentosType();
1568  if (!isset($vData['documento'])) {
1569  throw new Exception('El parametro documento es obligatorio');
1570  }
1571  if (isset($vData['documento']) && !empty($vData['documento'])) {
1572  if (SoapObject::is_assoc($vData['documento'])) {
1573  // Si es asociativo, lo probable es que nos encontremos ante un array de un solo elemento de forma que directamente se ha introducido el elemento a tratar
1574  $newClass = DocumentoType::fromSoap($vData['documento']);
1575  $newItem->addDocumento($newClass);
1576  } else {
1577  foreach ($vData['documento'] as $oVar) {
1578  $newClass = DocumentoType::fromSoap($oVar);
1579  $newItem->addDocumento($newClass);
1580  }
1581  }
1582  }
1583 
1584  return $newItem;
1585  }
1586  public function toSoap($fieldName, $namespace) {
1587  $myLevel = new ArrayObject();
1588 
1589  $this->__doChild($myLevel, $this->_documento, 'documento', SOAP_ENC_OBJECT, $namespace, 1, unbounded);
1590 
1591  //return $myLevel;
1592  return new SoapVar($myLevel, SOAP_ENC_OBJECT, null, null, $fieldName, $namespace);
1593  }
1594 }
1595 
1597  // name="codigoOrganismoUnidadDepartamental" type="101"[101] minOccurs="1" maxOccurs="1" nillable="false"
1598  private $_codigoOrganismoUnidadDepartamental = null;
1599  private $_hasCodigoOrganismoUnidadDepartamental = false;
1600  public function setCodigoOrganismoUnidadDepartamental($value) {
1601  $this->_codigoOrganismoUnidadDepartamental = $value;
1602  $this->_hasCodigoOrganismoUnidadDepartamental = ($value !== null);
1603  }
1604  public function hasCodigoOrganismoUnidadDepartamental() {
1605  return $this->_hasCodigoOrganismoUnidadDepartamental;
1606  }
1607  public function getCodigoOrganismoUnidadDepartamental() {
1608  return $this->_codigoOrganismoUnidadDepartamental;
1609  }
1610 
1611  // name="codigoUnidadDepartamental" type="101"[101] minOccurs="1" maxOccurs="1" nillable="false"
1612  private $_codigoUnidadDepartamental = null;
1613  private $_hasCodigoUnidadDepartamental = false;
1614  public function setCodigoUnidadDepartamental($value) {
1615  $this->_codigoUnidadDepartamental = $value;
1616  $this->_hasCodigoUnidadDepartamental = ($value !== null);
1617  }
1618  public function hasCodigoUnidadDepartamental() {
1619  return $this->_hasCodigoUnidadDepartamental;
1620  }
1621  public function getCodigoUnidadDepartamental() {
1622  return $this->_codigoUnidadDepartamental;
1623  }
1624 
1625  // name="anyo" type="101"[101] minOccurs="1" maxOccurs="1" nillable="false"
1626  private $_anyo = null;
1627  private $_hasAnyo = false;
1628  public function setAnyo($value) {
1629  $this->_anyo = $value;
1630  $this->_hasAnyo = ($value !== null);
1631  }
1632  public function hasAnyo() {
1633  return $this->_hasAnyo;
1634  }
1635  public function getAnyo() {
1636  return $this->_anyo;
1637  }
1638 
1639  // name="numeroRegistro" type="131"[131] minOccurs="1" maxOccurs="1" nillable="false"
1640  private $_numeroRegistro = null;
1641  private $_hasNumeroRegistro = false;
1642  public function setNumeroRegistro($value) {
1643  $this->_numeroRegistro = $value;
1644  $this->_hasNumeroRegistro = ($value !== null);
1645  }
1646  public function hasNumeroRegistro() {
1647  return $this->_hasNumeroRegistro;
1648  }
1649  public function getNumeroRegistro() {
1650  return $this->_numeroRegistro;
1651  }
1652 
1653  // name="fechaRegistro" type="101"[101] minOccurs="0" maxOccurs="1" nillable="false"
1654  private $_fechaRegistro = null;
1655  private $_hasFechaRegistro = false;
1656  public function setFechaRegistro($value) {
1657  $this->_fechaRegistro = $value;
1658  $this->_hasFechaRegistro = ($value !== null);
1659  }
1660  public function hasFechaRegistro() {
1661  return $this->_hasFechaRegistro;
1662  }
1663  public function getFechaRegistro() {
1664  return $this->_fechaRegistro;
1665  }
1666 
1667  // name="anulado" type="102"[102] minOccurs="1" maxOccurs="1" nillable="false"
1668  private $_anulado = null;
1669  private $_hasAnulado = false;
1670  public function setAnulado($value) {
1671  $this->_anulado = $value;
1672  $this->_hasAnulado = ($value !== null);
1673  }
1674  public function hasAnulado() {
1675  return $this->_hasAnulado;
1676  }
1677  public function getAnulado() {
1678  return $this->_anulado;
1679  }
1680 
1681  // name="estado" type="101"[101] minOccurs="1" maxOccurs="1" nillable="false"
1682  private $_estado = null;
1683  private $_hasEstado = false;
1684  public function setEstado($value) {
1685  $this->_estado = $value;
1686  $this->_hasEstado = ($value !== null);
1687  }
1688  public function hasEstado() {
1689  return $this->_hasEstado;
1690  }
1691  public function getEstado() {
1692  return $this->_estado;
1693  }
1694 
1695  // name="motivoRechazo" type="101"[101] minOccurs="0" maxOccurs="1" nillable="false"
1696  private $_motivoRechazo = null;
1697  private $_hasMotivoRechazo = false;
1698  public function setMotivoRechazo($value) {
1699  $this->_motivoRechazo = $value;
1700  $this->_hasMotivoRechazo = ($value !== null);
1701  }
1702  public function hasMotivoRechazo() {
1703  return $this->_hasMotivoRechazo;
1704  }
1705  public function getMotivoRechazo() {
1706  return $this->_motivoRechazo;
1707  }
1708 
1709  // name="tipoRegistroDepartamental" type="101"[101] minOccurs="1" maxOccurs="1" nillable="false"
1710  private $_tipoRegistroDepartamental = null;
1711  private $_hasTipoRegistroDepartamental = false;
1712  public function setTipoRegistroDepartamental($value) {
1713  $this->_tipoRegistroDepartamental = $value;
1714  $this->_hasTipoRegistroDepartamental = ($value !== null);
1715  }
1716  public function hasTipoRegistroDepartamental() {
1717  return $this->_hasTipoRegistroDepartamental;
1718  }
1719  public function getTipoRegistroDepartamental() {
1720  return $this->_tipoRegistroDepartamental;
1721  }
1722 
1723  // name="codigoAsuntoHabitual" type="101"[101] minOccurs="0" maxOccurs="1" nillable="false"
1724  private $_codigoAsuntoHabitual = null;
1725  private $_hasCodigoAsuntoHabitual = false;
1726  public function setCodigoAsuntoHabitual($value) {
1727  $this->_codigoAsuntoHabitual = $value;
1728  $this->_hasCodigoAsuntoHabitual = ($value !== null);
1729  }
1730  public function hasCodigoAsuntoHabitual() {
1731  return $this->_hasCodigoAsuntoHabitual;
1732  }
1733  public function getCodigoAsuntoHabitual() {
1734  return $this->_codigoAsuntoHabitual;
1735  }
1736 
1737  // name="asunto" type="101"[101] minOccurs="1" maxOccurs="1" nillable="false"
1738  private $_asunto = null;
1739  private $_hasAsunto = false;
1740  public function setAsunto($value) {
1741  $this->_asunto = $value;
1742  $this->_hasAsunto = ($value !== null);
1743  }
1744  public function hasAsunto() {
1745  return $this->_hasAsunto;
1746  }
1747  public function getAsunto() {
1748  return $this->_asunto;
1749  }
1750 
1751  // name="observacionesDepartamentales" type="101"[101] minOccurs="0" maxOccurs="1" nillable="false"
1752  private $_observacionesDepartamentales = null;
1753  private $_hasObservacionesDepartamentales = false;
1754  public function setObservacionesDepartamentales($value) {
1755  $this->_observacionesDepartamentales = $value;
1756  $this->_hasObservacionesDepartamentales = ($value !== null);
1757  }
1758  public function hasObservacionesDepartamentales() {
1759  return $this->_hasObservacionesDepartamentales;
1760  }
1761  public function getObservacionesDepartamentales() {
1762  return $this->_observacionesDepartamentales;
1763  }
1764 
1765  // name="observacionesGenerales" type="101"[101] minOccurs="0" maxOccurs="1" nillable="false"
1766  private $_observacionesGenerales = null;
1767  private $_hasObservacionesGenerales = false;
1768  public function setObservacionesGenerales($value) {
1769  $this->_observacionesGenerales = $value;
1770  $this->_hasObservacionesGenerales = ($value !== null);
1771  }
1772  public function hasObservacionesGenerales() {
1773  return $this->_hasObservacionesGenerales;
1774  }
1775  public function getObservacionesGenerales() {
1776  return $this->_observacionesGenerales;
1777  }
1778 
1779  // name="datosIdentificativos" type="tns:DatosIdentificativosType"[COMPLEXTYPE] minOccurs="1" maxOccurs="1" nillable="false"
1780  private $_datosIdentificativos = null;
1781  private $_hasDatosIdentificativos = false;
1782  public function setDatosIdentificativos($value) {
1783  $this->_datosIdentificativos = $value;
1784  $this->_hasDatosIdentificativos = ($value !== null);
1785  }
1786  public function hasDatosIdentificativos() {
1787  return $this->_hasDatosIdentificativos;
1788  }
1789  public function getDatosIdentificativos() {
1790  return $this->_datosIdentificativos;
1791  }
1792 
1793  // name="destinos" type="tns:DestinosType"[COMPLEXTYPE] minOccurs="0" maxOccurs="1" nillable="false"
1794  private $_destinos = null;
1795  private $_hasDestinos = false;
1796  public function setDestinos($value) {
1797  $this->_destinos = $value;
1798  $this->_hasDestinos = ($value !== null);
1799  }
1800  public function hasDestinos() {
1801  return $this->_hasDestinos;
1802  }
1803  public function getDestinos() {
1804  return $this->_destinos;
1805  }
1806 
1807  // name="datosRegistroDepartamentalAsociado" type="tns:IdentificacionRegistroDepartamentalType"[COMPLEXTYPE] minOccurs="0" maxOccurs="1" nillable="false"
1808  private $_datosRegistroDepartamentalAsociado = null;
1809  private $_hasDatosRegistroDepartamentalAsociado = false;
1810  public function setDatosRegistroDepartamentalAsociado($value) {
1811  $this->_datosRegistroDepartamentalAsociado = $value;
1812  $this->_hasDatosRegistroDepartamentalAsociado = ($value !== null);
1813  }
1814  public function hasDatosRegistroDepartamentalAsociado() {
1815  return $this->_hasDatosRegistroDepartamentalAsociado;
1816  }
1817  public function getDatosRegistroDepartamentalAsociado() {
1818  return $this->_datosRegistroDepartamentalAsociado;
1819  }
1820 
1821  // name="datosRegistroGeneralEntrada" type="tns:DatosRegistroType"[COMPLEXTYPE] minOccurs="0" maxOccurs="1" nillable="false"
1822  private $_datosRegistroGeneralEntrada = null;
1823  private $_hasDatosRegistroGeneralEntrada = false;
1824  public function setDatosRegistroGeneralEntrada($value) {
1825  $this->_datosRegistroGeneralEntrada = $value;
1826  $this->_hasDatosRegistroGeneralEntrada = ($value !== null);
1827  }
1828  public function hasDatosRegistroGeneralEntrada() {
1829  return $this->_hasDatosRegistroGeneralEntrada;
1830  }
1831  public function getDatosRegistroGeneralEntrada() {
1832  return $this->_datosRegistroGeneralEntrada;
1833  }
1834 
1835  // name="datosRegistroGeneralSalida" type="tns:DatosRegistroType"[COMPLEXTYPE] minOccurs="0" maxOccurs="1" nillable="false"
1836  private $_datosRegistroGeneralSalida = null;
1837  private $_hasDatosRegistroGeneralSalida = false;
1838  public function setDatosRegistroGeneralSalida($value) {
1839  $this->_datosRegistroGeneralSalida = $value;
1840  $this->_hasDatosRegistroGeneralSalida = ($value !== null);
1841  }
1842  public function hasDatosRegistroGeneralSalida() {
1843  return $this->_hasDatosRegistroGeneralSalida;
1844  }
1845  public function getDatosRegistroGeneralSalida() {
1846  return $this->_datosRegistroGeneralSalida;
1847  }
1848 
1849  // name="otraUnidadDeProcedencia" type="101"[101] minOccurs="0" maxOccurs="1" nillable="false"
1850  private $_otraUnidadDeProcedencia = null;
1851  private $_hasOtraUnidadDeProcedencia = false;
1852  public function setOtraUnidadDeProcedencia($value) {
1853  $this->_otraUnidadDeProcedencia = $value;
1854  $this->_hasOtraUnidadDeProcedencia = ($value !== null);
1855  }
1856  public function hasOtraUnidadDeProcedencia() {
1857  return $this->_hasOtraUnidadDeProcedencia;
1858  }
1859  public function getOtraUnidadDeProcedencia() {
1860  return $this->_otraUnidadDeProcedencia;
1861  }
1862 
1863  // name="descripcionOtraUnidadDeProcedencia" type="101"[101] minOccurs="0" maxOccurs="1" nillable="false"
1864  private $_descripcionOtraUnidadDeProcedencia = null;
1865  private $_hasDescripcionOtraUnidadDeProcedencia = false;
1866  public function setDescripcionOtraUnidadDeProcedencia($value) {
1867  $this->_descripcionOtraUnidadDeProcedencia = $value;
1868  $this->_hasDescripcionOtraUnidadDeProcedencia = ($value !== null);
1869  }
1870  public function hasDescripcionOtraUnidadDeProcedencia() {
1871  return $this->_hasDescripcionOtraUnidadDeProcedencia;
1872  }
1873  public function getDescripcionOtraUnidadDeProcedencia() {
1874  return $this->_descripcionOtraUnidadDeProcedencia;
1875  }
1876 
1877  // name="datosRegistroDepartamentalOrigen" type="tns:IdentificacionRegistroDepartamentalType"[COMPLEXTYPE] minOccurs="0" maxOccurs="1" nillable="false"
1878  private $_datosRegistroDepartamentalOrigen = null;
1879  private $_hasDatosRegistroDepartamentalOrigen = false;
1880  public function setDatosRegistroDepartamentalOrigen($value) {
1881  $this->_datosRegistroDepartamentalOrigen = $value;
1882  $this->_hasDatosRegistroDepartamentalOrigen = ($value !== null);
1883  }
1884  public function hasDatosRegistroDepartamentalOrigen() {
1885  return $this->_hasDatosRegistroDepartamentalOrigen;
1886  }
1887  public function getDatosRegistroDepartamentalOrigen() {
1888  return $this->_datosRegistroDepartamentalOrigen;
1889  }
1890 
1891  // name="tipoTransporte" type="101"[101] minOccurs="0" maxOccurs="1" nillable="false"
1892  private $_tipoTransporte = null;
1893  private $_hasTipoTransporte = false;
1894  public function setTipoTransporte($value) {
1895  $this->_tipoTransporte = $value;
1896  $this->_hasTipoTransporte = ($value !== null);
1897  }
1898  public function hasTipoTransporte() {
1899  return $this->_hasTipoTransporte;
1900  }
1901  public function getTipoTransporte() {
1902  return $this->_tipoTransporte;
1903  }
1904 
1905  // name="datosExpediente" type="tns:DatosExpedienteType"[COMPLEXTYPE] minOccurs="0" maxOccurs="1" nillable="false"
1906  private $_datosExpediente = null;
1907  private $_hasDatosExpediente = false;
1908  public function setDatosExpediente($value) {
1909  $this->_datosExpediente = $value;
1910  $this->_hasDatosExpediente = ($value !== null);
1911  }
1912  public function hasDatosExpediente() {
1913  return $this->_hasDatosExpediente;
1914  }
1915  public function getDatosExpediente() {
1916  return $this->_datosExpediente;
1917  }
1918 
1919  // name="documentos" type="tns:DocumentosType"[COMPLEXTYPE] minOccurs="0" maxOccurs="1" nillable="false"
1920  private $_documentos = null;
1921  private $_hasDocumentos = false;
1922  public function setDocumentos($value) {
1923  $this->_documentos = $value;
1924  $this->_hasDocumentos = ($value !== null);
1925  }
1926  public function hasDocumentos() {
1927  return $this->_hasDocumentos;
1928  }
1929  public function getDocumentos() {
1930  return $this->_documentos;
1931  }
1932 
1933 
1934  static public function fromSoap($vData) {
1935  $newItem = new DatosRegistroDepartamentalType();
1936  if (!isset($vData['codigoOrganismoUnidadDepartamental'])) {
1937  throw new Exception('El parametro codigoOrganismoUnidadDepartamental es obligatorio');
1938  }
1939  if (isset($vData['codigoOrganismoUnidadDepartamental'])) {
1940  $newItem->setCodigoOrganismoUnidadDepartamental($vData['codigoOrganismoUnidadDepartamental']);
1941  }
1942  if (!isset($vData['codigoUnidadDepartamental'])) {
1943  throw new Exception('El parametro codigoUnidadDepartamental es obligatorio');
1944  }
1945  if (isset($vData['codigoUnidadDepartamental'])) {
1946  $newItem->setCodigoUnidadDepartamental($vData['codigoUnidadDepartamental']);
1947  }
1948  if (!isset($vData['anyo'])) {
1949  throw new Exception('El parametro anyo es obligatorio');
1950  }
1951  if (isset($vData['anyo'])) {
1952  $newItem->setAnyo($vData['anyo']);
1953  }
1954  if (!isset($vData['numeroRegistro'])) {
1955  throw new Exception('El parametro numeroRegistro es obligatorio');
1956  }
1957  if (isset($vData['numeroRegistro'])) {
1958  $newItem->setNumeroRegistro($vData['numeroRegistro']);
1959  }
1960  if (isset($vData['fechaRegistro'])) {
1961  $newItem->setFechaRegistro($vData['fechaRegistro']);
1962  }
1963  if (!isset($vData['anulado'])) {
1964  throw new Exception('El parametro anulado es obligatorio');
1965  }
1966  if (isset($vData['anulado'])) {
1967  $newItem->setAnulado($vData['anulado']);
1968  }
1969  if (!isset($vData['estado'])) {
1970  throw new Exception('El parametro estado es obligatorio');
1971  }
1972  if (isset($vData['estado'])) {
1973  $newItem->setEstado($vData['estado']);
1974  }
1975  if (isset($vData['motivoRechazo'])) {
1976  $newItem->setMotivoRechazo($vData['motivoRechazo']);
1977  }
1978  if (!isset($vData['tipoRegistroDepartamental'])) {
1979  throw new Exception('El parametro tipoRegistroDepartamental es obligatorio');
1980  }
1981  if (isset($vData['tipoRegistroDepartamental'])) {
1982  $newItem->setTipoRegistroDepartamental($vData['tipoRegistroDepartamental']);
1983  }
1984  if (isset($vData['codigoAsuntoHabitual'])) {
1985  $newItem->setCodigoAsuntoHabitual($vData['codigoAsuntoHabitual']);
1986  }
1987  if (!isset($vData['asunto'])) {
1988  throw new Exception('El parametro asunto es obligatorio');
1989  }
1990  if (isset($vData['asunto'])) {
1991  $newItem->setAsunto($vData['asunto']);
1992  }
1993  if (isset($vData['observacionesDepartamentales'])) {
1994  $newItem->setObservacionesDepartamentales($vData['observacionesDepartamentales']);
1995  }
1996  if (isset($vData['observacionesGenerales'])) {
1997  $newItem->setObservacionesGenerales($vData['observacionesGenerales']);
1998  }
1999  if (!isset($vData['datosIdentificativos'])) {
2000  throw new Exception('El parametro datosIdentificativos es obligatorio');
2001  }
2002  if (isset($vData['datosIdentificativos'])) {
2003  $newClass = DatosIdentificativosType::fromSoap($vData['datosIdentificativos']);
2004  $newItem->setDatosIdentificativos($newClass);
2005  }
2006  if (isset($vData['destinos'])) {
2007  $newClass = DestinosType::fromSoap($vData['destinos']);
2008  $newItem->setDestinos($newClass);
2009  }
2010  if (isset($vData['datosRegistroDepartamentalAsociado'])) {
2011  $newClass = IdentificacionRegistroDepartamentalType::fromSoap($vData['datosRegistroDepartamentalAsociado']);
2012  $newItem->setDatosRegistroDepartamentalAsociado($newClass);
2013  }
2014  if (isset($vData['datosRegistroGeneralEntrada'])) {
2015  $newClass = DatosRegistroType::fromSoap($vData['datosRegistroGeneralEntrada']);
2016  $newItem->setDatosRegistroGeneralEntrada($newClass);
2017  }
2018  if (isset($vData['datosRegistroGeneralSalida'])) {
2019  $newClass = DatosRegistroType::fromSoap($vData['datosRegistroGeneralSalida']);
2020  $newItem->setDatosRegistroGeneralSalida($newClass);
2021  }
2022  if (isset($vData['otraUnidadDeProcedencia'])) {
2023  $newItem->setOtraUnidadDeProcedencia($vData['otraUnidadDeProcedencia']);
2024  }
2025  if (isset($vData['descripcionOtraUnidadDeProcedencia'])) {
2026  $newItem->setDescripcionOtraUnidadDeProcedencia($vData['descripcionOtraUnidadDeProcedencia']);
2027  }
2028  if (isset($vData['datosRegistroDepartamentalOrigen'])) {
2029  $newClass = IdentificacionRegistroDepartamentalType::fromSoap($vData['datosRegistroDepartamentalOrigen']);
2030  $newItem->setDatosRegistroDepartamentalOrigen($newClass);
2031  }
2032  if (isset($vData['tipoTransporte'])) {
2033  $newItem->setTipoTransporte($vData['tipoTransporte']);
2034  }
2035  if (isset($vData['datosExpediente'])) {
2036  $newClass = DatosExpedienteType::fromSoap($vData['datosExpediente']);
2037  $newItem->setDatosExpediente($newClass);
2038  }
2039  if (isset($vData['documentos'])) {
2040  $newClass = DocumentosType::fromSoap($vData['documentos']);
2041  $newItem->setDocumentos($newClass);
2042  }
2043 
2044  return $newItem;
2045  }
2046  public function toSoap($fieldName, $namespace) {
2047  $myLevel = new ArrayObject();
2048 
2049  $this->__doChild($myLevel, $this->_codigoOrganismoUnidadDepartamental, 'codigoOrganismoUnidadDepartamental', 101, $namespace, 1, 1);
2050  $this->__doChild($myLevel, $this->_codigoUnidadDepartamental, 'codigoUnidadDepartamental', 101, $namespace, 1, 1);
2051  $this->__doChild($myLevel, $this->_anyo, 'anyo', 101, $namespace, 1, 1);
2052  $this->__doChild($myLevel, $this->_numeroRegistro, 'numeroRegistro', 131, $namespace, 1, 1);
2053  $this->__doChild($myLevel, $this->_fechaRegistro, 'fechaRegistro', 101, $namespace, 0, 1);
2054  $this->__doChild($myLevel, $this->_anulado, 'anulado', 102, $namespace, 1, 1);
2055  $this->__doChild($myLevel, $this->_estado, 'estado', 101, $namespace, 1, 1);
2056  $this->__doChild($myLevel, $this->_motivoRechazo, 'motivoRechazo', 101, $namespace, 0, 1);
2057  $this->__doChild($myLevel, $this->_tipoRegistroDepartamental, 'tipoRegistroDepartamental', 101, $namespace, 1, 1);
2058  $this->__doChild($myLevel, $this->_codigoAsuntoHabitual, 'codigoAsuntoHabitual', 101, $namespace, 0, 1);
2059  $this->__doChild($myLevel, $this->_asunto, 'asunto', 101, $namespace, 1, 1);
2060  $this->__doChild($myLevel, $this->_observacionesDepartamentales, 'observacionesDepartamentales', 101, $namespace, 0, 1);
2061  $this->__doChild($myLevel, $this->_observacionesGenerales, 'observacionesGenerales', 101, $namespace, 0, 1);
2062  $this->__doChild($myLevel, $this->_datosIdentificativos, 'datosIdentificativos', SOAP_ENC_OBJECT, $namespace, 1, 1);
2063  $this->__doChild($myLevel, $this->_destinos, 'destinos', SOAP_ENC_OBJECT, $namespace, 0, 1);
2064  $this->__doChild($myLevel, $this->_datosRegistroDepartamentalAsociado, 'datosRegistroDepartamentalAsociado', SOAP_ENC_OBJECT, $namespace, 0, 1);
2065  $this->__doChild($myLevel, $this->_datosRegistroGeneralEntrada, 'datosRegistroGeneralEntrada', SOAP_ENC_OBJECT, $namespace, 0, 1);
2066  $this->__doChild($myLevel, $this->_datosRegistroGeneralSalida, 'datosRegistroGeneralSalida', SOAP_ENC_OBJECT, $namespace, 0, 1);
2067  $this->__doChild($myLevel, $this->_otraUnidadDeProcedencia, 'otraUnidadDeProcedencia', 101, $namespace, 0, 1);
2068  $this->__doChild($myLevel, $this->_descripcionOtraUnidadDeProcedencia, 'descripcionOtraUnidadDeProcedencia', 101, $namespace, 0, 1);
2069  $this->__doChild($myLevel, $this->_datosRegistroDepartamentalOrigen, 'datosRegistroDepartamentalOrigen', SOAP_ENC_OBJECT, $namespace, 0, 1);
2070  $this->__doChild($myLevel, $this->_tipoTransporte, 'tipoTransporte', 101, $namespace, 0, 1);
2071  $this->__doChild($myLevel, $this->_datosExpediente, 'datosExpediente', SOAP_ENC_OBJECT, $namespace, 0, 1);
2072  $this->__doChild($myLevel, $this->_documentos, 'documentos', SOAP_ENC_OBJECT, $namespace, 0, 1);
2073 
2074  //return $myLevel;
2075  return new SoapVar($myLevel, SOAP_ENC_OBJECT, null, null, $fieldName, $namespace);
2076  }
2077 }
2078 
2080  // name="codigoOrganismoUnidadDepartamental" type="101"[101] minOccurs="1" maxOccurs="1" nillable="false"
2081  private $_codigoOrganismoUnidadDepartamental = null;
2082  private $_hasCodigoOrganismoUnidadDepartamental = false;
2083  public function setCodigoOrganismoUnidadDepartamental($value) {
2084  $this->_codigoOrganismoUnidadDepartamental = $value;
2085  $this->_hasCodigoOrganismoUnidadDepartamental = ($value !== null);
2086  }
2087  public function hasCodigoOrganismoUnidadDepartamental() {
2088  return $this->_hasCodigoOrganismoUnidadDepartamental;
2089  }
2090  public function getCodigoOrganismoUnidadDepartamental() {
2091  return $this->_codigoOrganismoUnidadDepartamental;
2092  }
2093 
2094  // name="codigoUnidadDepartamental" type="101"[101] minOccurs="1" maxOccurs="1" nillable="false"
2095  private $_codigoUnidadDepartamental = null;
2096  private $_hasCodigoUnidadDepartamental = false;
2097  public function setCodigoUnidadDepartamental($value) {
2098  $this->_codigoUnidadDepartamental = $value;
2099  $this->_hasCodigoUnidadDepartamental = ($value !== null);
2100  }
2101  public function hasCodigoUnidadDepartamental() {
2102  return $this->_hasCodigoUnidadDepartamental;
2103  }
2104  public function getCodigoUnidadDepartamental() {
2105  return $this->_codigoUnidadDepartamental;
2106  }
2107 
2108  // name="tipoRegistroDepartamental" type="101"[101] minOccurs="1" maxOccurs="1" nillable="false"
2109  private $_tipoRegistroDepartamental = null;
2110  private $_hasTipoRegistroDepartamental = false;
2111  public function setTipoRegistroDepartamental($value) {
2112  $this->_tipoRegistroDepartamental = $value;
2113  $this->_hasTipoRegistroDepartamental = ($value !== null);
2114  }
2115  public function hasTipoRegistroDepartamental() {
2116  return $this->_hasTipoRegistroDepartamental;
2117  }
2118  public function getTipoRegistroDepartamental() {
2119  return $this->_tipoRegistroDepartamental;
2120  }
2121 
2122  // name="codigoAsuntoHabitual" type="101"[101] minOccurs="0" maxOccurs="1" nillable="false"
2123  private $_codigoAsuntoHabitual = null;
2124  private $_hasCodigoAsuntoHabitual = false;
2125  public function setCodigoAsuntoHabitual($value) {
2126  $this->_codigoAsuntoHabitual = $value;
2127  $this->_hasCodigoAsuntoHabitual = ($value !== null);
2128  }
2129  public function hasCodigoAsuntoHabitual() {
2130  return $this->_hasCodigoAsuntoHabitual;
2131  }
2132  public function getCodigoAsuntoHabitual() {
2133  return $this->_codigoAsuntoHabitual;
2134  }
2135 
2136  // name="asunto" type="101"[101] minOccurs="1" maxOccurs="1" nillable="false"
2137  private $_asunto = null;
2138  private $_hasAsunto = false;
2139  public function setAsunto($value) {
2140  $this->_asunto = $value;
2141  $this->_hasAsunto = ($value !== null);
2142  }
2143  public function hasAsunto() {
2144  return $this->_hasAsunto;
2145  }
2146  public function getAsunto() {
2147  return $this->_asunto;
2148  }
2149 
2150  // name="observacionesDepartamentales" type="101"[101] minOccurs="0" maxOccurs="1" nillable="false"
2151  private $_observacionesDepartamentales = null;
2152  private $_hasObservacionesDepartamentales = false;
2153  public function setObservacionesDepartamentales($value) {
2154  $this->_observacionesDepartamentales = $value;
2155  $this->_hasObservacionesDepartamentales = ($value !== null);
2156  }
2157  public function hasObservacionesDepartamentales() {
2158  return $this->_hasObservacionesDepartamentales;
2159  }
2160  public function getObservacionesDepartamentales() {
2161  return $this->_observacionesDepartamentales;
2162  }
2163 
2164  // name="observacionesGenerales" type="101"[101] minOccurs="0" maxOccurs="1" nillable="false"
2165  private $_observacionesGenerales = null;
2166  private $_hasObservacionesGenerales = false;
2167  public function setObservacionesGenerales($value) {
2168  $this->_observacionesGenerales = $value;
2169  $this->_hasObservacionesGenerales = ($value !== null);
2170  }
2171  public function hasObservacionesGenerales() {
2172  return $this->_hasObservacionesGenerales;
2173  }
2174  public function getObservacionesGenerales() {
2175  return $this->_observacionesGenerales;
2176  }
2177 
2178  // name="datosIdentificativos" type="tns:DatosIdentificativosType"[COMPLEXTYPE] minOccurs="1" maxOccurs="1" nillable="false"
2179  private $_datosIdentificativos = null;
2180  private $_hasDatosIdentificativos = false;
2181  public function setDatosIdentificativos($value) {
2182  $this->_datosIdentificativos = $value;
2183  $this->_hasDatosIdentificativos = ($value !== null);
2184  }
2185  public function hasDatosIdentificativos() {
2186  return $this->_hasDatosIdentificativos;
2187  }
2188  public function getDatosIdentificativos() {
2189  return $this->_datosIdentificativos;
2190  }
2191 
2192  // name="destinos" type="tns:DestinosType"[COMPLEXTYPE] minOccurs="0" maxOccurs="1" nillable="false"
2193  private $_destinos = null;
2194  private $_hasDestinos = false;
2195  public function setDestinos($value) {
2196  $this->_destinos = $value;
2197  $this->_hasDestinos = ($value !== null);
2198  }
2199  public function hasDestinos() {
2200  return $this->_hasDestinos;
2201  }
2202  public function getDestinos() {
2203  return $this->_destinos;
2204  }
2205 
2206  // name="datosRegistroGeneralSalida" type="tns:DatosRegistroType"[COMPLEXTYPE] minOccurs="0" maxOccurs="1" nillable="false"
2207  private $_datosRegistroGeneralSalida = null;
2208  private $_hasDatosRegistroGeneralSalida = false;
2209  public function setDatosRegistroGeneralSalida($value) {
2210  $this->_datosRegistroGeneralSalida = $value;
2211  $this->_hasDatosRegistroGeneralSalida = ($value !== null);
2212  }
2213  public function hasDatosRegistroGeneralSalida() {
2214  return $this->_hasDatosRegistroGeneralSalida;
2215  }
2216  public function getDatosRegistroGeneralSalida() {
2217  return $this->_datosRegistroGeneralSalida;
2218  }
2219 
2220  // name="otraUnidadDeProcedencia" type="101"[101] minOccurs="0" maxOccurs="1" nillable="false"
2221  private $_otraUnidadDeProcedencia = null;
2222  private $_hasOtraUnidadDeProcedencia = false;
2223  public function setOtraUnidadDeProcedencia($value) {
2224  $this->_otraUnidadDeProcedencia = $value;
2225  $this->_hasOtraUnidadDeProcedencia = ($value !== null);
2226  }
2227  public function hasOtraUnidadDeProcedencia() {
2228  return $this->_hasOtraUnidadDeProcedencia;
2229  }
2230  public function getOtraUnidadDeProcedencia() {
2231  return $this->_otraUnidadDeProcedencia;
2232  }
2233 
2234  // name="descripcionOtraUnidadDeProcedencia" type="101"[101] minOccurs="0" maxOccurs="1" nillable="false"
2235  private $_descripcionOtraUnidadDeProcedencia = null;
2236  private $_hasDescripcionOtraUnidadDeProcedencia = false;
2237  public function setDescripcionOtraUnidadDeProcedencia($value) {
2238  $this->_descripcionOtraUnidadDeProcedencia = $value;
2239  $this->_hasDescripcionOtraUnidadDeProcedencia = ($value !== null);
2240  }
2241  public function hasDescripcionOtraUnidadDeProcedencia() {
2242  return $this->_hasDescripcionOtraUnidadDeProcedencia;
2243  }
2244  public function getDescripcionOtraUnidadDeProcedencia() {
2245  return $this->_descripcionOtraUnidadDeProcedencia;
2246  }
2247 
2248  // name="datosRegistroDepartamentalOrigen" type="tns:IdentificacionRegistroDepartamentalType"[COMPLEXTYPE] minOccurs="0" maxOccurs="1" nillable="false"
2249  private $_datosRegistroDepartamentalOrigen = null;
2250  private $_hasDatosRegistroDepartamentalOrigen = false;
2251  public function setDatosRegistroDepartamentalOrigen($value) {
2252  $this->_datosRegistroDepartamentalOrigen = $value;
2253  $this->_hasDatosRegistroDepartamentalOrigen = ($value !== null);
2254  }
2255  public function hasDatosRegistroDepartamentalOrigen() {
2256  return $this->_hasDatosRegistroDepartamentalOrigen;
2257  }
2258  public function getDatosRegistroDepartamentalOrigen() {
2259  return $this->_datosRegistroDepartamentalOrigen;
2260  }
2261 
2262  // name="tipoTransporte" type="101"[101] minOccurs="0" maxOccurs="1" nillable="false"
2263  private $_tipoTransporte = null;
2264  private $_hasTipoTransporte = false;
2265  public function setTipoTransporte($value) {
2266  $this->_tipoTransporte = $value;
2267  $this->_hasTipoTransporte = ($value !== null);
2268  }
2269  public function hasTipoTransporte() {
2270  return $this->_hasTipoTransporte;
2271  }
2272  public function getTipoTransporte() {
2273  return $this->_tipoTransporte;
2274  }
2275 
2276  // name="datosExpediente" type="tns:DatosExpedienteType"[COMPLEXTYPE] minOccurs="0" maxOccurs="1" nillable="false"
2277  private $_datosExpediente = null;
2278  private $_hasDatosExpediente = false;
2279  public function setDatosExpediente($value) {
2280  $this->_datosExpediente = $value;
2281  $this->_hasDatosExpediente = ($value !== null);
2282  }
2283  public function hasDatosExpediente() {
2284  return $this->_hasDatosExpediente;
2285  }
2286  public function getDatosExpediente() {
2287  return $this->_datosExpediente;
2288  }
2289 
2290  // name="documentos" type="tns:DocumentosType"[COMPLEXTYPE] minOccurs="0" maxOccurs="1" nillable="false"
2291  private $_documentos = null;
2292  private $_hasDocumentos = false;
2293  public function setDocumentos($value) {
2294  $this->_documentos = $value;
2295  $this->_hasDocumentos = ($value !== null);
2296  }
2297  public function hasDocumentos() {
2298  return $this->_hasDocumentos;
2299  }
2300  public function getDocumentos() {
2301  return $this->_documentos;
2302  }
2303 
2304 
2305  static public function fromSoap($vData) {
2306  $newItem = new creacionRegistroDepartamental();
2307  if (!isset($vData['codigoOrganismoUnidadDepartamental'])) {
2308  throw new Exception('El parametro codigoOrganismoUnidadDepartamental es obligatorio');
2309  }
2310  if (isset($vData['codigoOrganismoUnidadDepartamental'])) {
2311  $newItem->setCodigoOrganismoUnidadDepartamental($vData['codigoOrganismoUnidadDepartamental']);
2312  }
2313  if (!isset($vData['codigoUnidadDepartamental'])) {
2314  throw new Exception('El parametro codigoUnidadDepartamental es obligatorio');
2315  }
2316  if (isset($vData['codigoUnidadDepartamental'])) {
2317  $newItem->setCodigoUnidadDepartamental($vData['codigoUnidadDepartamental']);
2318  }
2319  if (!isset($vData['tipoRegistroDepartamental'])) {
2320  throw new Exception('El parametro tipoRegistroDepartamental es obligatorio');
2321  }
2322  if (isset($vData['tipoRegistroDepartamental'])) {
2323  $newItem->setTipoRegistroDepartamental($vData['tipoRegistroDepartamental']);
2324  }
2325  if (isset($vData['codigoAsuntoHabitual'])) {
2326  $newItem->setCodigoAsuntoHabitual($vData['codigoAsuntoHabitual']);
2327  }
2328  if (!isset($vData['asunto'])) {
2329  throw new Exception('El parametro asunto es obligatorio');
2330  }
2331  if (isset($vData['asunto'])) {
2332  $newItem->setAsunto($vData['asunto']);
2333  }
2334  if (isset($vData['observacionesDepartamentales'])) {
2335  $newItem->setObservacionesDepartamentales($vData['observacionesDepartamentales']);
2336  }
2337  if (isset($vData['observacionesGenerales'])) {
2338  $newItem->setObservacionesGenerales($vData['observacionesGenerales']);
2339  }
2340  if (!isset($vData['datosIdentificativos'])) {
2341  throw new Exception('El parametro datosIdentificativos es obligatorio');
2342  }
2343  if (isset($vData['datosIdentificativos'])) {
2344  $newClass = DatosIdentificativosType::fromSoap($vData['datosIdentificativos']);
2345  $newItem->setDatosIdentificativos($newClass);
2346  }
2347  if (isset($vData['destinos'])) {
2348  $newClass = DestinosType::fromSoap($vData['destinos']);
2349  $newItem->setDestinos($newClass);
2350  }
2351  if (isset($vData['datosRegistroGeneralSalida'])) {
2352  $newClass = DatosRegistroType::fromSoap($vData['datosRegistroGeneralSalida']);
2353  $newItem->setDatosRegistroGeneralSalida($newClass);
2354  }
2355  if (isset($vData['otraUnidadDeProcedencia'])) {
2356  $newItem->setOtraUnidadDeProcedencia($vData['otraUnidadDeProcedencia']);
2357  }
2358  if (isset($vData['descripcionOtraUnidadDeProcedencia'])) {
2359  $newItem->setDescripcionOtraUnidadDeProcedencia($vData['descripcionOtraUnidadDeProcedencia']);
2360  }
2361  if (isset($vData['datosRegistroDepartamentalOrigen'])) {
2362  $newClass = IdentificacionRegistroDepartamentalType::fromSoap($vData['datosRegistroDepartamentalOrigen']);
2363  $newItem->setDatosRegistroDepartamentalOrigen($newClass);
2364  }
2365  if (isset($vData['tipoTransporte'])) {
2366  $newItem->setTipoTransporte($vData['tipoTransporte']);
2367  }
2368  if (isset($vData['datosExpediente'])) {
2369  $newClass = DatosExpedienteType::fromSoap($vData['datosExpediente']);
2370  $newItem->setDatosExpediente($newClass);
2371  }
2372  if (isset($vData['documentos'])) {
2373  $newClass = DocumentosType::fromSoap($vData['documentos']);
2374  $newItem->setDocumentos($newClass);
2375  }
2376 
2377  return $newItem;
2378  }
2379  public function toSoap($fieldName, $namespace) {
2380  $myLevel = new ArrayObject();
2381 
2382  $this->__doChild($myLevel, $this->_codigoOrganismoUnidadDepartamental, 'codigoOrganismoUnidadDepartamental', 101, $namespace, 1, 1);
2383  $this->__doChild($myLevel, $this->_codigoUnidadDepartamental, 'codigoUnidadDepartamental', 101, $namespace, 1, 1);
2384  $this->__doChild($myLevel, $this->_tipoRegistroDepartamental, 'tipoRegistroDepartamental', 101, $namespace, 1, 1);
2385  $this->__doChild($myLevel, $this->_codigoAsuntoHabitual, 'codigoAsuntoHabitual', 101, $namespace, 0, 1);
2386  $this->__doChild($myLevel, $this->_asunto, 'asunto', 101, $namespace, 1, 1);
2387  $this->__doChild($myLevel, $this->_observacionesDepartamentales, 'observacionesDepartamentales', 101, $namespace, 0, 1);
2388  $this->__doChild($myLevel, $this->_observacionesGenerales, 'observacionesGenerales', 101, $namespace, 0, 1);
2389  $this->__doChild($myLevel, $this->_datosIdentificativos, 'datosIdentificativos', SOAP_ENC_OBJECT, $namespace, 1, 1);
2390  $this->__doChild($myLevel, $this->_destinos, 'destinos', SOAP_ENC_OBJECT, $namespace, 0, 1);
2391  $this->__doChild($myLevel, $this->_datosRegistroGeneralSalida, 'datosRegistroGeneralSalida', SOAP_ENC_OBJECT, $namespace, 0, 1);
2392  $this->__doChild($myLevel, $this->_otraUnidadDeProcedencia, 'otraUnidadDeProcedencia', 101, $namespace, 0, 1);
2393  $this->__doChild($myLevel, $this->_descripcionOtraUnidadDeProcedencia, 'descripcionOtraUnidadDeProcedencia', 101, $namespace, 0, 1);
2394  $this->__doChild($myLevel, $this->_datosRegistroDepartamentalOrigen, 'datosRegistroDepartamentalOrigen', SOAP_ENC_OBJECT, $namespace, 0, 1);
2395  $this->__doChild($myLevel, $this->_tipoTransporte, 'tipoTransporte', 101, $namespace, 0, 1);
2396  $this->__doChild($myLevel, $this->_datosExpediente, 'datosExpediente', SOAP_ENC_OBJECT, $namespace, 0, 1);
2397  $this->__doChild($myLevel, $this->_documentos, 'documentos', SOAP_ENC_OBJECT, $namespace, 0, 1);
2398 
2399  //return $myLevel;
2400  return new SoapVar($myLevel, SOAP_ENC_OBJECT, null, null, $fieldName, $namespace);
2401  }
2402 }
2403 
2405  // name="resultado" type="102"[102] minOccurs="1" maxOccurs="1" nillable="false"
2406  private $_resultado = null;
2407  private $_hasResultado = false;
2408  public function setResultado($value) {
2409  $this->_resultado = $value;
2410  $this->_hasResultado = ($value !== null);
2411  }
2412  public function hasResultado() {
2413  return $this->_hasResultado;
2414  }
2415  public function getResultado() {
2416  return $this->_resultado;
2417  }
2418 
2419  // name="registrosCreados" type="tns:RegistrosCreadosType"[COMPLEXTYPE] minOccurs="0" maxOccurs="1" nillable="false"
2420  private $_registrosCreados = null;
2421  private $_hasRegistrosCreados = false;
2422  public function setRegistrosCreados($value) {
2423  $this->_registrosCreados = $value;
2424  $this->_hasRegistrosCreados = ($value !== null);
2425  }
2426  public function hasRegistrosCreados() {
2427  return $this->_hasRegistrosCreados;
2428  }
2429  public function getRegistrosCreados() {
2430  return $this->_registrosCreados;
2431  }
2432 
2433  // name="error" type="tns:ErrorInfoType"[COMPLEXTYPE] minOccurs="0" maxOccurs="1" nillable="false"
2434  private $_error = null;
2435  private $_hasError = false;
2436  public function setError($value) {
2437  $this->_error = $value;
2438  $this->_hasError = ($value !== null);
2439  }
2440  public function hasError() {
2441  return $this->_hasError;
2442  }
2443  public function getError() {
2444  return $this->_error;
2445  }
2446 
2447 
2448  static public function fromSoap($vData) {
2449  $newItem = new creacionRegistroDepartamentalResponse();
2450  if (!isset($vData['resultado'])) {
2451  throw new Exception('El parametro resultado es obligatorio');
2452  }
2453  if (isset($vData['resultado'])) {
2454  $newItem->setResultado($vData['resultado']);
2455  }
2456  if (isset($vData['registrosCreados'])) {
2457  $newClass = RegistrosCreadosType::fromSoap($vData['registrosCreados']);
2458  $newItem->setRegistrosCreados($newClass);
2459  }
2460  if (isset($vData['error'])) {
2461  $newClass = ErrorInfoType::fromSoap($vData['error']);
2462  $newItem->setError($newClass);
2463  }
2464 
2465  return $newItem;
2466  }
2467  public function toSoap($fieldName, $namespace) {
2468  $myLevel = new ArrayObject();
2469 
2470  $this->__doChild($myLevel, $this->_resultado, 'resultado', 102, $namespace, 1, 1);
2471  $this->__doChild($myLevel, $this->_registrosCreados, 'registrosCreados', SOAP_ENC_OBJECT, $namespace, 0, 1);
2472  $this->__doChild($myLevel, $this->_error, 'error', SOAP_ENC_OBJECT, $namespace, 0, 1);
2473 
2474  //return $myLevel;
2475  return new SoapVar($myLevel, SOAP_ENC_OBJECT, null, null, $fieldName, $namespace);
2476  }
2477 }
2478 
2480  // name="codigoRegistroDepartamental" type="tns:RegistroDepartamentalCodigoType"[COMPLEXTYPE] minOccurs="1" maxOccurs="1" nillable="false"
2481  private $_codigoRegistroDepartamental = null;
2482  private $_hasCodigoRegistroDepartamental = false;
2483  public function setCodigoRegistroDepartamental($value) {
2484  $this->_codigoRegistroDepartamental = $value;
2485  $this->_hasCodigoRegistroDepartamental = ($value !== null);
2486  }
2487  public function hasCodigoRegistroDepartamental() {
2488  return $this->_hasCodigoRegistroDepartamental;
2489  }
2490  public function getCodigoRegistroDepartamental() {
2491  return $this->_codigoRegistroDepartamental;
2492  }
2493 
2494  // name="devolverDocumentos" type="102"[102] minOccurs="1" maxOccurs="1" nillable="false"
2495  private $_devolverDocumentos = null;
2496  private $_hasDevolverDocumentos = false;
2497  public function setDevolverDocumentos($value) {
2498  $this->_devolverDocumentos = $value;
2499  $this->_hasDevolverDocumentos = ($value !== null);
2500  }
2501  public function hasDevolverDocumentos() {
2502  return $this->_hasDevolverDocumentos;
2503  }
2504  public function getDevolverDocumentos() {
2505  return $this->_devolverDocumentos;
2506  }
2507 
2508 
2509  static public function fromSoap($vData) {
2510  $newItem = new consultaRegistroDepartamental();
2511  if (!isset($vData['codigoRegistroDepartamental'])) {
2512  throw new Exception('El parametro codigoRegistroDepartamental es obligatorio');
2513  }
2514  if (isset($vData['codigoRegistroDepartamental'])) {
2515  $newClass = RegistroDepartamentalCodigoType::fromSoap($vData['codigoRegistroDepartamental']);
2516  $newItem->setCodigoRegistroDepartamental($newClass);
2517  }
2518  if (!isset($vData['devolverDocumentos'])) {
2519  throw new Exception('El parametro devolverDocumentos es obligatorio');
2520  }
2521  if (isset($vData['devolverDocumentos'])) {
2522  $newItem->setDevolverDocumentos($vData['devolverDocumentos']);
2523  }
2524 
2525  return $newItem;
2526  }
2527  public function toSoap($fieldName, $namespace) {
2528  $myLevel = new ArrayObject();
2529 
2530  $this->__doChild($myLevel, $this->_codigoRegistroDepartamental, 'codigoRegistroDepartamental', SOAP_ENC_OBJECT, $namespace, 1, 1);
2531  $this->__doChild($myLevel, $this->_devolverDocumentos, 'devolverDocumentos', 102, $namespace, 1, 1);
2532 
2533  //return $myLevel;
2534  return new SoapVar($myLevel, SOAP_ENC_OBJECT, null, null, $fieldName, $namespace);
2535  }
2536 }
2537 
2539  // name="resultado" type="102"[102] minOccurs="1" maxOccurs="1" nillable="false"
2540  private $_resultado = null;
2541  private $_hasResultado = false;
2542  public function setResultado($value) {
2543  $this->_resultado = $value;
2544  $this->_hasResultado = ($value !== null);
2545  }
2546  public function hasResultado() {
2547  return $this->_hasResultado;
2548  }
2549  public function getResultado() {
2550  return $this->_resultado;
2551  }
2552 
2553  // name="datosRegistroDepartamental" type="tns:DatosRegistroDepartamentalType"[COMPLEXTYPE] minOccurs="0" maxOccurs="1" nillable="false"
2554  private $_datosRegistroDepartamental = null;
2555  private $_hasDatosRegistroDepartamental = false;
2556  public function setDatosRegistroDepartamental($value) {
2557  $this->_datosRegistroDepartamental = $value;
2558  $this->_hasDatosRegistroDepartamental = ($value !== null);
2559  }
2560  public function hasDatosRegistroDepartamental() {
2561  return $this->_hasDatosRegistroDepartamental;
2562  }
2563  public function getDatosRegistroDepartamental() {
2564  return $this->_datosRegistroDepartamental;
2565  }
2566 
2567  // name="error" type="tns:ErrorInfoType"[COMPLEXTYPE] minOccurs="0" maxOccurs="1" nillable="false"
2568  private $_error = null;
2569  private $_hasError = false;
2570  public function setError($value) {
2571  $this->_error = $value;
2572  $this->_hasError = ($value !== null);
2573  }
2574  public function hasError() {
2575  return $this->_hasError;
2576  }
2577  public function getError() {
2578  return $this->_error;
2579  }
2580 
2581 
2582  static public function fromSoap($vData) {
2583  $newItem = new consultaRegistroDepartamentalResponse();
2584  if (!isset($vData['resultado'])) {
2585  throw new Exception('El parametro resultado es obligatorio');
2586  }
2587  if (isset($vData['resultado'])) {
2588  $newItem->setResultado($vData['resultado']);
2589  }
2590  if (isset($vData['datosRegistroDepartamental'])) {
2591  $newClass = DatosRegistroDepartamentalType::fromSoap($vData['datosRegistroDepartamental']);
2592  $newItem->setDatosRegistroDepartamental($newClass);
2593  }
2594  if (isset($vData['error'])) {
2595  $newClass = ErrorInfoType::fromSoap($vData['error']);
2596  $newItem->setError($newClass);
2597  }
2598 
2599  return $newItem;
2600  }
2601  public function toSoap($fieldName, $namespace) {
2602  $myLevel = new ArrayObject();
2603 
2604  $this->__doChild($myLevel, $this->_resultado, 'resultado', 102, $namespace, 1, 1);
2605  $this->__doChild($myLevel, $this->_datosRegistroDepartamental, 'datosRegistroDepartamental', SOAP_ENC_OBJECT, $namespace, 0, 1);
2606  $this->__doChild($myLevel, $this->_error, 'error', SOAP_ENC_OBJECT, $namespace, 0, 1);
2607 
2608  //return $myLevel;
2609  return new SoapVar($myLevel, SOAP_ENC_OBJECT, null, null, $fieldName, $namespace);
2610  }
2611 }
2612 
2614  // name="codigoRegistroDepartamental" type="tns:RegistroDepartamentalCodigoType"[COMPLEXTYPE] minOccurs="1" maxOccurs="1" nillable="false"
2615  private $_codigoRegistroDepartamental = null;
2616  private $_hasCodigoRegistroDepartamental = false;
2617  public function setCodigoRegistroDepartamental($value) {
2618  $this->_codigoRegistroDepartamental = $value;
2619  $this->_hasCodigoRegistroDepartamental = ($value !== null);
2620  }
2621  public function hasCodigoRegistroDepartamental() {
2622  return $this->_hasCodigoRegistroDepartamental;
2623  }
2624  public function getCodigoRegistroDepartamental() {
2625  return $this->_codigoRegistroDepartamental;
2626  }
2627 
2628 
2629  static public function fromSoap($vData) {
2630  $newItem = new consultaHistorico();
2631  if (!isset($vData['codigoRegistroDepartamental'])) {
2632  throw new Exception('El parametro codigoRegistroDepartamental es obligatorio');
2633  }
2634  if (isset($vData['codigoRegistroDepartamental'])) {
2635  $newClass = RegistroDepartamentalCodigoType::fromSoap($vData['codigoRegistroDepartamental']);
2636  $newItem->setCodigoRegistroDepartamental($newClass);
2637  }
2638 
2639  return $newItem;
2640  }
2641  public function toSoap($fieldName, $namespace) {
2642  $myLevel = new ArrayObject();
2643 
2644  $this->__doChild($myLevel, $this->_codigoRegistroDepartamental, 'codigoRegistroDepartamental', SOAP_ENC_OBJECT, $namespace, 1, 1);
2645 
2646  //return $myLevel;
2647  return new SoapVar($myLevel, SOAP_ENC_OBJECT, null, null, $fieldName, $namespace);
2648  }
2649 }
2650 
2652  // name="resultado" type="102"[102] minOccurs="1" maxOccurs="1" nillable="false"
2653  private $_resultado = null;
2654  private $_hasResultado = false;
2655  public function setResultado($value) {
2656  $this->_resultado = $value;
2657  $this->_hasResultado = ($value !== null);
2658  }
2659  public function hasResultado() {
2660  return $this->_hasResultado;
2661  }
2662  public function getResultado() {
2663  return $this->_resultado;
2664  }
2665 
2666  // name="codigoRegistroDepartamentalConsulta" type="tns:RegistroDepartamentalCodigoType"[COMPLEXTYPE] minOccurs="0" maxOccurs="1" nillable="false"
2667  private $_codigoRegistroDepartamentalConsulta = null;
2668  private $_hasCodigoRegistroDepartamentalConsulta = false;
2669  public function setCodigoRegistroDepartamentalConsulta($value) {
2670  $this->_codigoRegistroDepartamentalConsulta = $value;
2671  $this->_hasCodigoRegistroDepartamentalConsulta = ($value !== null);
2672  }
2673  public function hasCodigoRegistroDepartamentalConsulta() {
2674  return $this->_hasCodigoRegistroDepartamentalConsulta;
2675  }
2676  public function getCodigoRegistroDepartamentalConsulta() {
2677  return $this->_codigoRegistroDepartamentalConsulta;
2678  }
2679 
2680  // name="historico" type="tns:HistoricoType"[COMPLEXTYPE] minOccurs="0" maxOccurs="1" nillable="false"
2681  private $_historico = null;
2682  private $_hasHistorico = false;
2683  public function setHistorico($value) {
2684  $this->_historico = $value;
2685  $this->_hasHistorico = ($value !== null);
2686  }
2687  public function hasHistorico() {
2688  return $this->_hasHistorico;
2689  }
2690  public function getHistorico() {
2691  return $this->_historico;
2692  }
2693 
2694  // name="error" type="tns:ErrorInfoType"[COMPLEXTYPE] minOccurs="0" maxOccurs="1" nillable="false"
2695  private $_error = null;
2696  private $_hasError = false;
2697  public function setError($value) {
2698  $this->_error = $value;
2699  $this->_hasError = ($value !== null);
2700  }
2701  public function hasError() {
2702  return $this->_hasError;
2703  }
2704  public function getError() {
2705  return $this->_error;
2706  }
2707 
2708 
2709  static public function fromSoap($vData) {
2710  $newItem = new consultaHistoricoResponse();
2711  if (!isset($vData['resultado'])) {
2712  throw new Exception('El parametro resultado es obligatorio');
2713  }
2714  if (isset($vData['resultado'])) {
2715  $newItem->setResultado($vData['resultado']);
2716  }
2717  if (isset($vData['codigoRegistroDepartamentalConsulta'])) {
2718  $newClass = RegistroDepartamentalCodigoType::fromSoap($vData['codigoRegistroDepartamentalConsulta']);
2719  $newItem->setCodigoRegistroDepartamentalConsulta($newClass);
2720  }
2721  if (isset($vData['historico'])) {
2722  $newClass = HistoricoType::fromSoap($vData['historico']);
2723  $newItem->setHistorico($newClass);
2724  }
2725  if (isset($vData['error'])) {
2726  $newClass = ErrorInfoType::fromSoap($vData['error']);
2727  $newItem->setError($newClass);
2728  }
2729 
2730  return $newItem;
2731  }
2732  public function toSoap($fieldName, $namespace) {
2733  $myLevel = new ArrayObject();
2734 
2735  $this->__doChild($myLevel, $this->_resultado, 'resultado', 102, $namespace, 1, 1);
2736  $this->__doChild($myLevel, $this->_codigoRegistroDepartamentalConsulta, 'codigoRegistroDepartamentalConsulta', SOAP_ENC_OBJECT, $namespace, 0, 1);
2737  $this->__doChild($myLevel, $this->_historico, 'historico', SOAP_ENC_OBJECT, $namespace, 0, 1);
2738  $this->__doChild($myLevel, $this->_error, 'error', SOAP_ENC_OBJECT, $namespace, 0, 1);
2739 
2740  //return $myLevel;
2741  return new SoapVar($myLevel, SOAP_ENC_OBJECT, null, null, $fieldName, $namespace);
2742  }
2743 }
2744 
2745 ?>