32 private function pf_doAuth($username, $password, $fieldName, $ns) {
34 $oAux->setUserName($username);
35 $oAux->setPassword($password);
36 $authWS = $oAux->toSoap($fieldName, $ns);
39 $mainWS->append(
new SoapVar($authWS, SOAP_ENC_OBJECT,null,null, $fieldName, $ns));
57 $opcionesClienteWS = array (
58 'soap_version' => SOAP_1_1,
59 'user_agent' =>
'WSSSoapClient',
61 'cache_wsdl' => self::$MYSOAPOP_WSDL_CACHE,
62 'trace' => self::$MYSOAPOP_TRACE
65 $this->
__clienteOn(self::KEYCLIENTE_PF,
true, $opcionesClienteWS);
66 $clienteWS = $this->
__getClient(self::KEYCLIENTE_PF);
69 $mainWS = $this->pf_doAuth($username, $password,
'authentication', self::$NAMESPACE_PF);
70 $mainWS->append(
new SoapVar($documentId, XSD_STRING, null, null,
'documentId', self::$NAMESPACE_PF));
73 $miSoapRQ =
new SoapVar($mainWS, SOAP_ENC_OBJECT,null,null,
'downloadDocument', self::$NAMESPACE_PF);
74 $respuesta = $clienteWS->downloadDocument($miSoapRQ);
76 $vRespuesta = array();
77 if (is_object($respuesta))
86 $mensaje = $e->getMessage();
87 $mensaje = trim(strtolower($mensaje));
90 case 'looks like we got no xml document' :
92 $response = $clienteWS->__getLastResponse();
96 $vRetorno[
'documentB64'] = $vRetorno[
'documentBinary'];
97 $vRetorno[
'documentBinary'] = base64_decode($vRetorno[
'documentBinary']);
101 $this->tratarExcepcionEstandar($e, $clienteWS);
121 $opcionesClienteWS = array (
122 'soap_version' => SOAP_1_1,
123 'user_agent' =>
'WSSSoapClient',
124 'exceptions' =>
true,
125 'cache_wsdl' => self::$MYSOAPOP_WSDL_CACHE,
126 'trace' => self::$MYSOAPOP_TRACE
129 $this->
__clienteOn(self::KEYCLIENTE_PF,
true, $opcionesClienteWS);
130 $clienteWS = $this->
__getClient(self::KEYCLIENTE_PF);
133 $mainWS = $this->pf_doAuth($username, $password,
'authentication', self::$NAMESPACE_PF);
134 $mainWS->append(
new SoapVar($documentId, XSD_STRING, null, null,
'documentId', self::$NAMESPACE_PF));
137 $miSoapRQ =
new SoapVar($mainWS, SOAP_ENC_OBJECT,null,null,
'downloadSign', self::$NAMESPACE_PF);
138 $respuesta = $clienteWS->downloadSign($miSoapRQ);
140 $vRespuesta = array();
141 if (is_object($respuesta))
150 $mensaje = $e->getMessage();
151 $mensaje = trim(strtolower($mensaje));
154 case 'looks like we got no xml document' :
156 $response = $clienteWS->__getLastResponse();
159 if (isset($vRetorno[
'signature']))
161 $vRetorno[
'signature'][
'contentB64'] = $vRetorno[
'signature'][
'content'];
162 $vRetorno[
'signature'][
'content'] = base64_decode($vRetorno[
'signature'][
'content']);
167 $this->tratarExcepcionEstandar($e, $clienteWS);
187 $opcionesClienteWS = array (
188 'soap_version' => SOAP_1_1,
189 'user_agent' =>
'WSSSoapClient',
190 'exceptions' =>
true,
191 'cache_wsdl' => self::$MYSOAPOP_WSDL_CACHE,
192 'trace' => self::$MYSOAPOP_TRACE
195 $this->
__clienteOn(self::KEYCLIENTE_PF,
true, $opcionesClienteWS);
196 $clienteWS = $this->
__getClient(self::KEYCLIENTE_PF);
199 $mainWS = $this->pf_doAuth($username, $password,
'authentication', self::$NAMESPACE_PF);
200 $mainWS->append(
new SoapVar($query, XSD_STRING, null, null,
'query', self::$NAMESPACE_PF));
203 $miSoapRQ =
new SoapVar($mainWS, SOAP_ENC_OBJECT,null,null,
'queryDocumentTypes', self::$NAMESPACE_PF);
204 $respuesta = $clienteWS->queryDocumentTypes($miSoapRQ);
206 $vRespuesta = array();
207 if (is_object($respuesta))
216 $mensaje = $e->getMessage();
217 $mensaje = trim(strtolower($mensaje));
218 if ($mensaje ==
'looks like we got no xml document')
221 $response = $clienteWS->__getLastResponse();
224 $vRetorno = $this->tratarMTOM4PF($response,
true,
"\r\n",
'queryDocumentTypesResponse');
230 $this->tratarExcepcionEstandar($e, $clienteWS);
249 $opcionesClienteWS = array (
250 'soap_version' => SOAP_1_1,
251 'user_agent' =>
'WSSSoapClient',
252 'exceptions' =>
true,
253 'cache_wsdl' => self::$MYSOAPOP_WSDL_CACHE,
254 'trace' => self::$MYSOAPOP_TRACE
257 $this->
__clienteOn(self::KEYCLIENTE_PF,
true, $opcionesClienteWS);
258 $clienteWS = $this->
__getClient(self::KEYCLIENTE_PF);
261 $mainWS = $this->pf_doAuth($username, $password,
'authentication', self::$NAMESPACE_PF);
262 $mainWS->append(
new SoapVar($query, XSD_STRING, null, null,
'query', self::$NAMESPACE_PF));
265 $miSoapRQ =
new SoapVar($mainWS, SOAP_ENC_OBJECT,null,null,
'queryJobs', self::$NAMESPACE_PF);
266 $respuesta = $clienteWS->queryJobs($miSoapRQ);
268 $vRespuesta = array();
269 if (is_object($respuesta))
278 $mensaje = $e->getMessage();
279 $mensaje = trim(strtolower($mensaje));
280 if ($mensaje ==
'looks like we got no xml document')
283 $response = $clienteWS->__getLastResponse();
286 $vRetorno = $this->tratarMTOM4PF($response,
true,
"\r\n",
'queryJobsResponse');
292 $this->tratarExcepcionEstandar($e, $clienteWS);
311 $opcionesClienteWS = array (
312 'soap_version' => SOAP_1_1,
313 'user_agent' =>
'WSSSoapClient',
314 'exceptions' =>
true,
315 'cache_wsdl' => self::$MYSOAPOP_WSDL_CACHE,
316 'trace' => self::$MYSOAPOP_TRACE
319 $this->
__clienteOn(self::KEYCLIENTE_PF,
true, $opcionesClienteWS);
320 $clienteWS = $this->
__getClient(self::KEYCLIENTE_PF);
323 $mainWS = $this->pf_doAuth($username, $password,
'authentication', self::$NAMESPACE_PF);
324 $mainWS->append(
new SoapVar($requestId, XSD_STRING, null, null,
'requestId', self::$NAMESPACE_PF));
327 $miSoapRQ =
new SoapVar($mainWS, SOAP_ENC_OBJECT,null,null,
'queryRequest', self::$NAMESPACE_PF);
328 $respuesta = $clienteWS->queryRequest($miSoapRQ);
330 $vRespuesta = array();
331 if (is_object($respuesta))
340 $mensaje = $e->getMessage();
341 $mensaje = trim(strtolower($mensaje));
342 if ($mensaje ==
'looks like we got no xml document')
345 $response = $clienteWS->__getLastResponse();
348 $vRetorno = $this->tratarMTOM4PF($response,
true,
"\r\n",
'queryRequestResponse');
354 $this->tratarExcepcionEstandar($e, $clienteWS);
373 $opcionesClienteWS = array (
374 'soap_version' => SOAP_1_1,
375 'user_agent' =>
'WSSSoapClient',
376 'exceptions' =>
true,
377 'cache_wsdl' => self::$MYSOAPOP_WSDL_CACHE,
378 'trace' => self::$MYSOAPOP_TRACE
381 $this->
__clienteOn(self::KEYCLIENTE_PF,
true, $opcionesClienteWS);
382 $clienteWS = $this->
__getClient(self::KEYCLIENTE_PF);
385 $mainWS = $this->pf_doAuth($username, $password,
'authentication', self::$NAMESPACE_PF);
386 $mainWS->append(
new SoapVar($query, XSD_STRING, null, null,
'query', self::$NAMESPACE_PF));
389 $miSoapRQ =
new SoapVar($mainWS, SOAP_ENC_OBJECT,null,null,
'queryStates', self::$NAMESPACE_PF);
390 $respuesta = $clienteWS->queryStates($miSoapRQ);
392 $vRespuesta = array();
393 if (is_object($respuesta))
402 $mensaje = $e->getMessage();
403 $mensaje = trim(strtolower($mensaje));
404 if ($mensaje ==
'looks like we got no xml document')
407 $response = $clienteWS->__getLastResponse();
410 $vRetorno = $this->tratarMTOM4PF($response,
true,
"\r\n",
'queryStatesResponse');
416 $this->tratarExcepcionEstandar($e, $clienteWS);
435 $opcionesClienteWS = array (
436 'soap_version' => SOAP_1_1,
437 'user_agent' =>
'WSSSoapClient',
438 'exceptions' =>
true,
439 'cache_wsdl' => self::$MYSOAPOP_WSDL_CACHE,
440 'trace' => self::$MYSOAPOP_TRACE
443 $this->
__clienteOn(self::KEYCLIENTE_PF,
true, $opcionesClienteWS);
444 $clienteWS = $this->
__getClient(self::KEYCLIENTE_PF);
447 $mainWS = $this->pf_doAuth($username, $password,
'authentication', self::$NAMESPACE_PF);
448 $mainWS->append(
new SoapVar($query, XSD_STRING, null, null,
'query', self::$NAMESPACE_PF));
451 $miSoapRQ =
new SoapVar($mainWS, SOAP_ENC_OBJECT, null, null,
'queryUsers', self::$NAMESPACE_PF);
452 $respuesta = $clienteWS->queryUsers($miSoapRQ);
454 $vRespuesta = array();
455 if (is_object($respuesta))
464 $mensaje = $e->getMessage();
465 $mensaje = trim(strtolower($mensaje));
466 if ($mensaje ==
'looks like we got no xml document')
469 $response = $clienteWS->__getLastResponse();
472 $vRetorno = $this->tratarMTOM4PF($response,
true,
"\r\n",
'queryUsersResponse');
478 $this->tratarExcepcionEstandar($e, $clienteWS);
497 $opcionesClienteWS = array (
498 'soap_version' => SOAP_1_1,
499 'user_agent' =>
'WSSSoapClient',
500 'exceptions' =>
true,
501 'cache_wsdl' => self::$MYSOAPOP_WSDL_CACHE,
502 'trace' => self::$MYSOAPOP_TRACE
505 $this->
__clienteOn(self::KEYCLIENTE_PF,
true, $opcionesClienteWS);
506 $clienteWS = $this->
__getClient(self::KEYCLIENTE_PF);
509 $mainWS = $this->pf_doAuth($username, $password,
'authentication', self::$NAMESPACE_PF);
510 $mainWS->append(
new SoapVar($query, XSD_STRING, null, null,
'query', self::$NAMESPACE_PF));
513 $miSoapRQ =
new SoapVar($mainWS, SOAP_ENC_OBJECT,null,null,
'queryImportanceLevels', self::$NAMESPACE_PF);
514 $respuesta = $clienteWS->queryImportanceLevels($miSoapRQ);
516 $vRespuesta = array();
517 if (is_object($respuesta))
526 $mensaje = $e->getMessage();
527 $mensaje = trim(strtolower($mensaje));
528 if ($mensaje ==
'looks like we got no xml document')
531 $response = $clienteWS->__getLastResponse();
534 $vRetorno = $this->tratarMTOM4PF($response,
true,
"\r\n",
'queryImportanceLevelsResponse');
540 $this->tratarExcepcionEstandar($e, $clienteWS);
560 $opcionesClienteWS = array (
561 'soap_version' => SOAP_1_1,
562 'user_agent' =>
'WSSSoapClient',
563 'exceptions' =>
true,
564 'cache_wsdl' => self::$MYSOAPOP_WSDL_CACHE,
565 'trace' => self::$MYSOAPOP_TRACE
568 $this->
__clienteOn(self::KEYCLIENTE_PF,
true, $opcionesClienteWS);
569 $clienteWS = $this->
__getClient(self::KEYCLIENTE_PF);
572 $mainWS = $this->pf_doAuth($username, $password,
'authentication', self::$NAMESPACE_PF);
573 $mainWS->append(
new SoapVar($queryUser, XSD_STRING, null, null,
'queryUser', self::$NAMESPACE_PF));
574 $mainWS->append(
new SoapVar($querySeat, XSD_STRING, null, null,
'querySeat', self::$NAMESPACE_PF));
577 $miSoapRQ =
new SoapVar($mainWS, SOAP_ENC_OBJECT,null,null,
'queryEnhancedUsers', self::$NAMESPACE_PF);
578 $respuesta = $clienteWS->queryEnhancedUsers($miSoapRQ);
580 $vRespuesta = array();
581 if (is_object($respuesta))
590 $mensaje = $e->getMessage();
591 $mensaje = trim(strtolower($mensaje));
592 if ($mensaje ==
'looks like we got no xml document')
595 $response = $clienteWS->__getLastResponse();
598 $vRetorno = $this->tratarMTOM4PF($response,
true,
"\r\n",
'queryEnhancedUsersResponse');
604 $this->tratarExcepcionEstandar($e, $clienteWS);
624 $opcionesClienteWS = array (
625 'soap_version' => SOAP_1_1,
626 'user_agent' =>
'WSSSoapClient',
627 'exceptions' =>
true,
628 'cache_wsdl' => self::$MYSOAPOP_WSDL_CACHE,
629 'trace' => self::$MYSOAPOP_TRACE
632 $this->
__clienteOn(self::KEYCLIENTE_PF,
true, $opcionesClienteWS);
633 $clienteWS = $this->
__getClient(self::KEYCLIENTE_PF);
636 $mainWS = $this->pf_doAuth($username, $password,
'authentication', self::$NAMESPACE_PF);
637 $mainWS->append(
new SoapVar($queryJob, XSD_STRING, null, null,
'queryJob', self::$NAMESPACE_PF));
638 $mainWS->append(
new SoapVar($querySeat, XSD_STRING, null, null,
'querySeat', self::$NAMESPACE_PF));
641 $miSoapRQ =
new SoapVar($mainWS, SOAP_ENC_OBJECT,null,null,
'queryEnhancedJobs', self::$NAMESPACE_PF);
642 $respuesta = $clienteWS->queryEnhancedJobs($miSoapRQ);
644 $vRespuesta = array();
645 if (is_object($respuesta))
654 $mensaje = $e->getMessage();
655 $mensaje = trim(strtolower($mensaje));
656 if ($mensaje ==
'looks like we got no xml document')
659 $response = $clienteWS->__getLastResponse();
662 $vRetorno = $this->tratarMTOM4PF($response,
true,
"\r\n",
'queryEnhancedJobsResponse');
668 $this->tratarExcepcionEstandar($e, $clienteWS);
687 $opcionesClienteWS = array (
688 'soap_version' => SOAP_1_1,
689 'user_agent' =>
'WSSSoapClient',
690 'exceptions' =>
true,
691 'cache_wsdl' => self::$MYSOAPOP_WSDL_CACHE,
692 'trace' => self::$MYSOAPOP_TRACE
695 $this->
__clienteOn(self::KEYCLIENTE_PF,
true, $opcionesClienteWS);
696 $clienteWS = $this->
__getClient(self::KEYCLIENTE_PF);
699 $mainWS = $this->pf_doAuth($username, $password,
'authentication', self::$NAMESPACE_PF);
700 $mainWS->append(
new SoapVar($jobIdentifier, XSD_STRING, null, null,
'jobIdentifier', self::$NAMESPACE_PF));
703 $miSoapRQ =
new SoapVar($mainWS, SOAP_ENC_OBJECT,null,null,
'queryEnhancedUserJobAssociatedToJob', self::$NAMESPACE_PF);
704 $respuesta = $clienteWS->queryEnhancedUserJobAssociatedToJob($miSoapRQ);
706 $vRespuesta = array();
707 if (is_object($respuesta))
716 $mensaje = $e->getMessage();
717 $mensaje = trim(strtolower($mensaje));
718 if ($mensaje ==
'looks like we got no xml document')
721 $response = $clienteWS->__getLastResponse();
724 $vRetorno = $this->tratarMTOM4PF($response,
true,
"\r\n",
'queryEnhancedUserJobAssociatedToJobResponse');
730 $this->tratarExcepcionEstandar($e, $clienteWS);
749 $opcionesClienteWS = array (
750 'soap_version' => SOAP_1_1,
751 'user_agent' =>
'WSSSoapClient',
752 'exceptions' =>
true,
753 'cache_wsdl' => self::$MYSOAPOP_WSDL_CACHE,
754 'trace' => self::$MYSOAPOP_TRACE
757 $this->
__clienteOn(self::KEYCLIENTE_PF,
true, $opcionesClienteWS);
758 $clienteWS = $this->
__getClient(self::KEYCLIENTE_PF);
761 $mainWS = $this->pf_doAuth($username, $password,
'authentication', self::$NAMESPACE_PF);
762 $mainWS->append(
new SoapVar($userIdentifier, XSD_STRING, null, null,
'userIdentifier', self::$NAMESPACE_PF));
765 $miSoapRQ =
new SoapVar($mainWS, SOAP_ENC_OBJECT,null,null,
'queryEnhancedUserJobAssociatedToUser', self::$NAMESPACE_PF);
766 $respuesta = $clienteWS->queryEnhancedUserJobAssociatedToUser($miSoapRQ);
768 $vRespuesta = array();
769 if (is_object($respuesta))
778 $mensaje = $e->getMessage();
779 $mensaje = trim(strtolower($mensaje));
780 if ($mensaje ==
'looks like we got no xml document')
783 $response = $clienteWS->__getLastResponse();
786 $vRetorno = $this->tratarMTOM4PF($response,
true,
"\r\n",
'queryEnhancedUserJobAssociatedToUserResponse');
792 $this->tratarExcepcionEstandar($e, $clienteWS);
811 $opcionesClienteWS = array (
812 'soap_version' => SOAP_1_1,
813 'user_agent' =>
'WSSSoapClient',
814 'exceptions' =>
true,
815 'cache_wsdl' => self::$MYSOAPOP_WSDL_CACHE,
816 'trace' => self::$MYSOAPOP_TRACE
819 $this->
__clienteOn(self::KEYCLIENTE_PF,
true, $opcionesClienteWS);
820 $clienteWS = $this->
__getClient(self::KEYCLIENTE_PF);
823 $mainWS = $this->pf_doAuth($username, $password,
'authentication', self::$NAMESPACE_PF);
824 $mainWS->append(
new SoapVar($query, XSD_STRING, null, null,
'query', self::$NAMESPACE_PF));
827 $miSoapRQ =
new SoapVar($mainWS, SOAP_ENC_OBJECT,null,null,
'querySeats', self::$NAMESPACE_PF);
828 $respuesta = $clienteWS->querySeats($miSoapRQ);
830 $vRespuesta = array();
831 if (is_object($respuesta))
840 $mensaje = $e->getMessage();
841 $mensaje = trim(strtolower($mensaje));
842 if ($mensaje ==
'looks like we got no xml document')
845 $response = $clienteWS->__getLastResponse();
848 $vRetorno = $this->tratarMTOM4PF($response,
true,
"\r\n",
'querySeatsResponse');
854 $this->tratarExcepcionEstandar($e, $clienteWS);
873 $opcionesClienteWS = array (
874 'soap_version' => SOAP_1_1,
875 'user_agent' =>
'WSSSoapClient',
876 'exceptions' =>
true,
877 'cache_wsdl' => self::$MYSOAPOP_WSDL_CACHE,
878 'trace' => self::$MYSOAPOP_TRACE
881 $this->
__clienteOn(self::KEYCLIENTE_PF,
true, $opcionesClienteWS);
882 $clienteWS = $this->
__getClient(self::KEYCLIENTE_PF);
885 $mainWS = $this->pf_doAuth($username, $password,
'authentication', self::$NAMESPACE_PF);
886 $mainWS->append(
new SoapVar($documentId, XSD_STRING, null, null,
'documentId', self::$NAMESPACE_PF));
889 $miSoapRQ =
new SoapVar($mainWS, SOAP_ENC_OBJECT,null,null,
'querySign', self::$NAMESPACE_PF);
890 $respuesta = $clienteWS->querySign($miSoapRQ);
892 $vRespuesta = array();
893 if (is_object($respuesta))
902 $mensaje = $e->getMessage();
903 $mensaje = trim(strtolower($mensaje));
904 if ($mensaje ==
'looks like we got no xml document')
907 $response = $clienteWS->__getLastResponse();
910 $vRetorno = $this->tratarMTOM4PF($response,
true,
"\r\n",
'querySignResponse');
915 $this->tratarExcepcionEstandar($e, $clienteWS);
934 $opcionesClienteWS = array (
935 'soap_version' => SOAP_1_1,
936 'user_agent' =>
'WSSSoapClient',
937 'exceptions' =>
true,
938 'cache_wsdl' => self::$MYSOAPOP_WSDL_CACHE,
939 'trace' => self::$MYSOAPOP_TRACE
942 $this->
__clienteOn(self::KEYCLIENTE_PF_MOD,
true, $opcionesClienteWS);
943 $clienteWS = $this->
__getClient(self::KEYCLIENTE_PF_MOD);
946 $mainWS = $this->pf_doAuth($username, $password,
'authentication', self::$NAMESPACE_PF_MOD);
947 $mainWS->append($request->toSoap(
'request', self::$NAMESPACE_PF_MOD));
949 $miSoapRQ =
new SoapVar($mainWS, SOAP_ENC_OBJECT,null,null,
'createRequest', self::$NAMESPACE_PF_MOD);
950 $respuesta = $clienteWS->createRequest($miSoapRQ);
952 $vRespuesta = array();
953 if (is_object($respuesta))
962 $mensaje = $e->getMessage();
963 $mensaje = trim(strtolower($mensaje));
964 if ($mensaje ==
'looks like we got no xml document')
967 $response = $clienteWS->__getLastResponse();
970 $vRetorno = $this->tratarMTOM4PF($response,
true,
"\r\n",
'createRequestResponse');
976 $this->tratarExcepcionEstandar($e, $clienteWS);
995 $opcionesClienteWS = array (
996 'soap_version' => SOAP_1_1,
997 'user_agent' =>
'WSSSoapClient',
998 'exceptions' =>
true,
999 'cache_wsdl' => self::$MYSOAPOP_WSDL_CACHE,
1000 'trace' => self::$MYSOAPOP_TRACE
1003 $this->
__clienteOn(self::KEYCLIENTE_PF_MOD,
true, $opcionesClienteWS);
1004 $clienteWS = $this->
__getClient(self::KEYCLIENTE_PF_MOD);
1007 $mainWS = $this->pf_doAuth($username, $password,
'authentication', self::$NAMESPACE_PF_MOD);
1008 $mainWS->append(
new SoapVar($documentId, XSD_STRING, null, null,
'documentId', self::$NAMESPACE_PF_MOD));
1011 $miSoapRQ =
new SoapVar($mainWS, SOAP_ENC_OBJECT,null,null,
'deleteDocument', self::$NAMESPACE_PF_MOD);
1012 $respuesta = $clienteWS->deleteDocument($miSoapRQ);
1014 $vRespuesta = array();
1015 if (is_object($respuesta))
1019 return($vRespuesta);
1024 $mensaje = $e->getMessage();
1025 $mensaje = trim(strtolower($mensaje));
1026 if ($mensaje ==
'looks like we got no xml document')
1029 $response = $clienteWS->__getLastResponse();
1032 $vRetorno = $this->tratarMTOM4PF($response,
true,
"\r\n",
'deleteDocumentResponse');
1038 $this->tratarExcepcionEstandar($e, $clienteWS);
1057 $opcionesClienteWS = array (
1058 'soap_version' => SOAP_1_1,
1059 'user_agent' =>
'WSSSoapClient',
1060 'exceptions' =>
true,
1061 'cache_wsdl' => self::$MYSOAPOP_WSDL_CACHE,
1062 'trace' => self::$MYSOAPOP_TRACE
1065 $this->
__clienteOn(self::KEYCLIENTE_PF_MOD,
true, $opcionesClienteWS);
1066 $clienteWS = $this->
__getClient(self::KEYCLIENTE_PF_MOD);
1069 $mainWS = $this->pf_doAuth($username, $password,
'authentication', self::$NAMESPACE_PF_MOD);
1070 $mainWS->append(
new SoapVar($requestId, XSD_STRING, null, null,
'requestId', self::$NAMESPACE_PF_MOD));
1073 $miSoapRQ =
new SoapVar($mainWS, SOAP_ENC_OBJECT,null,null,
'deleteRequest', self::$NAMESPACE_PF_MOD);
1074 $respuesta = $clienteWS->deleteRequest($miSoapRQ);
1076 $vRespuesta = array();
1077 if (is_object($respuesta))
1081 return($vRespuesta);
1086 $mensaje = $e->getMessage();
1087 $mensaje = trim(strtolower($mensaje));
1088 if ($mensaje ==
'looks like we got no xml document')
1091 $response = $clienteWS->__getLastResponse();
1094 $vRetorno = $this->tratarMTOM4PF($response,
true,
"\r\n",
'deleteRequestResponse');
1100 $this->tratarExcepcionEstandar($e, $clienteWS);
1120 $opcionesClienteWS = array (
1121 'soap_version' => SOAP_1_1,
1122 'user_agent' =>
'WSSSoapClient',
1123 'exceptions' =>
true,
1124 'cache_wsdl' => self::$MYSOAPOP_WSDL_CACHE,
1125 'trace' => self::$MYSOAPOP_TRACE
1128 $this->
__clienteOn(self::KEYCLIENTE_PF_MOD,
true, $opcionesClienteWS);
1129 $clienteWS = $this->
__getClient(self::KEYCLIENTE_PF_MOD);
1132 $mainWS = $this->pf_doAuth($username, $password,
'authentication', self::$NAMESPACE_PF_MOD);
1133 $mainWS->append(
new SoapVar($requestId, XSD_STRING, null, null,
'requestId', self::$NAMESPACE_PF_MOD));
1134 $mainWS->append($signerList->toSoap(
'signerList', self::$NAMESPACE_PF_MOD));
1137 $miSoapRQ =
new SoapVar($mainWS, SOAP_ENC_OBJECT,null,null,
'deleteSigners', self::$NAMESPACE_PF_MOD);
1138 $respuesta = $clienteWS->deleteSigners($miSoapRQ);
1140 $vRespuesta = array();
1141 if (is_object($respuesta))
1145 return($vRespuesta);
1150 $mensaje = $e->getMessage();
1151 $mensaje = trim(strtolower($mensaje));
1152 if ($mensaje ==
'looks like we got no xml document')
1155 $response = $clienteWS->__getLastResponse();
1158 $vRetorno = $this->tratarMTOM4PF($response,
true,
"\r\n",
'deleteSignersResponse');
1164 $this->tratarExcepcionEstandar($e, $clienteWS);
1184 $opcionesClienteWS = array (
1185 'soap_version' => SOAP_1_1,
1186 'user_agent' =>
'WSSSoapClient',
1187 'exceptions' =>
true,
1188 'cache_wsdl' => self::$MYSOAPOP_WSDL_CACHE,
1189 'trace' => self::$MYSOAPOP_TRACE
1192 $this->
__clienteOn(self::KEYCLIENTE_PF_MOD,
true, $opcionesClienteWS);
1193 $clienteWS = $this->
__getClient(self::KEYCLIENTE_PF_MOD);
1196 $mainWS = $this->pf_doAuth($username, $password,
'authentication', self::$NAMESPACE_PF_MOD);
1197 $mainWS->append(
new SoapVar($requestId, XSD_STRING, null, null,
'requestId', self::$NAMESPACE_PF_MOD));
1198 $mainWS->append($document->toSoap(
'document', self::$NAMESPACE_PF_MOD));
1201 $miSoapRQ =
new SoapVar($mainWS, SOAP_ENC_OBJECT,null,null,
'insertDocument', self::$NAMESPACE_PF_MOD);
1202 $respuesta = $clienteWS->insertDocument($miSoapRQ);
1204 $vRespuesta = array();
1205 if (is_object($respuesta))
1209 return($vRespuesta);
1214 $mensaje = $e->getMessage();
1215 $mensaje = trim(strtolower($mensaje));
1216 if ($mensaje ==
'looks like we got no xml document')
1219 $response = $clienteWS->__getLastResponse();
1222 $vRetorno = $this->tratarMTOM4PF($response,
true,
"\r\n",
'insertDocumentResponse');
1228 $this->tratarExcepcionEstandar($e, $clienteWS);
1250 $opcionesClienteWS = array (
1251 'soap_version' => SOAP_1_1,
1252 'user_agent' =>
'WSSSoapClient',
1253 'exceptions' =>
true,
1254 'cache_wsdl' => self::$MYSOAPOP_WSDL_CACHE,
1255 'trace' => self::$MYSOAPOP_TRACE
1258 $this->
__clienteOn(self::KEYCLIENTE_PF_MOD,
true, $opcionesClienteWS);
1259 $clienteWS = $this->
__getClient(self::KEYCLIENTE_PF_MOD);
1262 $mainWS = $this->pf_doAuth($username, $password,
'authentication', self::$NAMESPACE_PF_MOD);
1263 $mainWS->append(
new SoapVar($requestId, XSD_STRING, null, null,
'requestId', self::$NAMESPACE_PF_MOD));
1264 $mainWS->append(
new SoapVar($signLine, XSD_INT,null,null,
'signLine', self::$NAMESPACE_PF_MOD));
1265 $mainWS->append($signerList->toSoap(
'signerList', self::$NAMESPACE_PF_MOD));
1266 $mainWS->append(
new SoapVar($signLineType, XSD_STRING, null, null,
'signLineType', self::$NAMESPACE_PF_MOD));
1268 $miSoapRQ =
new SoapVar($mainWS, SOAP_ENC_OBJECT,null,null,
'insertSigners', self::$NAMESPACE_PF_MOD);
1269 $respuesta = $clienteWS->insertSigners($miSoapRQ);
1271 $vRespuesta = array();
1272 if (is_object($respuesta))
1276 return($vRespuesta);
1281 $mensaje = $e->getMessage();
1282 $mensaje = trim(strtolower($mensaje));
1283 if ($mensaje ==
'looks like we got no xml document')
1286 $response = $clienteWS->__getLastResponse();
1289 $vRetorno = $this->tratarMTOM4PF($response,
true,
"\r\n",
'insertSignersResponse');
1295 $this->tratarExcepcionEstandar($e, $clienteWS);
1314 $opcionesClienteWS = array (
1315 'soap_version' => SOAP_1_1,
1316 'user_agent' =>
'WSSSoapClient',
1317 'exceptions' =>
true,
1318 'cache_wsdl' => self::$MYSOAPOP_WSDL_CACHE,
1319 'trace' => self::$MYSOAPOP_TRACE
1322 $this->
__clienteOn(self::KEYCLIENTE_PF_MOD,
true, $opcionesClienteWS);
1323 $clienteWS = $this->
__getClient(self::KEYCLIENTE_PF_MOD);
1326 $mainWS = $this->pf_doAuth($username, $password,
'authentication', self::$NAMESPACE_PF_MOD);
1327 $mainWS->append(
new SoapVar($requestId, XSD_STRING, null, null,
'requestId', self::$NAMESPACE_PF_MOD));
1330 $miSoapRQ =
new SoapVar($mainWS, SOAP_ENC_OBJECT,null,null,
'sendRequest', self::$NAMESPACE_PF_MOD);
1331 $respuesta = $clienteWS->sendRequest($miSoapRQ);
1333 $vRespuesta = array();
1334 if (is_object($respuesta))
1338 return($vRespuesta);
1343 $mensaje = $e->getMessage();
1344 $mensaje = trim(strtolower($mensaje));
1345 if ($mensaje ==
'looks like we got no xml document')
1348 $response = $clienteWS->__getLastResponse();
1351 $vRetorno = $this->tratarMTOM4PF($response,
true,
"\r\n",
'sendRequestResponse');
1357 $this->tratarExcepcionEstandar($e, $clienteWS);
1376 $opcionesClienteWS = array (
1377 'soap_version' => SOAP_1_1,
1378 'user_agent' =>
'WSSSoapClient',
1379 'exceptions' =>
true,
1380 'cache_wsdl' => self::$MYSOAPOP_WSDL_CACHE,
1381 'trace' => self::$MYSOAPOP_TRACE
1384 $this->
__clienteOn(self::KEYCLIENTE_PF_MOD,
true, $opcionesClienteWS);
1385 $clienteWS = $this->
__getClient(self::KEYCLIENTE_PF_MOD);
1388 $mainWS = $this->pf_doAuth($username, $password,
'authentication', self::$NAMESPACE_PF_MOD);
1389 $mainWS->append($request->toSoap(
'request', self::$NAMESPACE_PF_MOD));
1392 $miSoapRQ =
new SoapVar($mainWS, SOAP_ENC_OBJECT,null,null,
'updateRequest', self::$NAMESPACE_PF_MOD);
1393 $respuesta = $clienteWS->updateRequest($miSoapRQ);
1395 $vRespuesta = array();
1396 if (is_object($respuesta))
1400 return($vRespuesta);
1405 $mensaje = $e->getMessage();
1406 $mensaje = trim(strtolower($mensaje));
1407 if ($mensaje ==
'looks like we got no xml document')
1410 $response = $clienteWS->__getLastResponse();
1413 $vRetorno = $this->tratarMTOM4PF($response,
true,
"\r\n",
'updateRequestResponse');
1419 $this->tratarExcepcionEstandar($e, $clienteWS);
1439 $opcionesClienteWS = array (
1440 'soap_version' => SOAP_1_1,
1441 'user_agent' =>
'WSSSoapClient',
1442 'exceptions' =>
true,
1443 'cache_wsdl' => self::$MYSOAPOP_WSDL_CACHE,
1444 'trace' => self::$MYSOAPOP_TRACE
1447 $this->
__clienteOn(self::KEYCLIENTE_PF_MOD,
true, $opcionesClienteWS);
1448 $clienteWS = $this->
__getClient(self::KEYCLIENTE_PF_MOD);
1451 $mainWS = $this->pf_doAuth($username, $password,
'authentication', self::$NAMESPACE_PF_MOD);
1452 $mainWS->append(
new SoapVar($requestId, XSD_STRING, null, null,
'requestId', self::$NAMESPACE_PF_MOD));
1453 $mainWS->append(
new SoapVar($removingMessage, XSD_STRING, null, null,
'removingMessage', self::$NAMESPACE_PF_MOD));
1456 $miSoapRQ =
new SoapVar($mainWS, SOAP_ENC_OBJECT,null,null,
'removeRequest', self::$NAMESPACE_PF_MOD);
1457 $respuesta = $clienteWS->removeRequest($miSoapRQ);
1459 $vRespuesta = array();
1460 if (is_object($respuesta))
1464 return($vRespuesta);
1469 $mensaje = $e->getMessage();
1470 $mensaje = trim(strtolower($mensaje));
1471 if ($mensaje ==
'looks like we got no xml document')
1474 $response = $clienteWS->__getLastResponse();
1477 $vRetorno = $this->tratarMTOM4PF($response,
true,
"\r\n",
'removeRequestResponse');
1483 $this->tratarExcepcionEstandar($e, $clienteWS);
1502 $opcionesClienteWS = array (
1503 'soap_version' => SOAP_1_1,
1504 'user_agent' =>
'WSSSoapClient',
1505 'exceptions' =>
true,
1506 'cache_wsdl' => self::$MYSOAPOP_WSDL_CACHE,
1507 'trace' => self::$MYSOAPOP_TRACE
1510 $this->
__clienteOn(self::KEYCLIENTE_PF_ADM,
true, $opcionesClienteWS);
1511 $clienteWS = $this->
__getClient(self::KEYCLIENTE_PF_ADM);
1514 $mainWS = $this->pf_doAuth($username, $password,
'authentication', self::$NAMESPACE_PF_ADM);
1515 $mainWS->append($enhancedUserList->toSoap(
'enhancedUserList', self::$NAMESPACE_PF_ADM));
1518 $miSoapRQ =
new SoapVar($mainWS, SOAP_ENC_OBJECT,null,null,
'insertEnhancedUsers', self::$NAMESPACE_PF_ADM);
1519 $respuesta = $clienteWS->insertEnhancedUsers($miSoapRQ);
1521 $vRespuesta = array();
1522 if (is_object($respuesta))
1526 return($vRespuesta);
1531 $mensaje = $e->getMessage();
1532 $mensaje = trim(strtolower($mensaje));
1533 if ($mensaje ==
'looks like we got no xml document')
1536 $response = $clienteWS->__getLastResponse();
1539 $vRetorno = $this->tratarMTOM4PF($response,
true,
"\r\n",
'insertEnhancedUsersResponse');
1545 $this->tratarExcepcionEstandar($e, $clienteWS);
1564 $opcionesClienteWS = array (
1565 'soap_version' => SOAP_1_1,
1566 'user_agent' =>
'WSSSoapClient',
1567 'exceptions' =>
true,
1568 'cache_wsdl' => self::$MYSOAPOP_WSDL_CACHE,
1569 'trace' => self::$MYSOAPOP_TRACE
1572 $this->
__clienteOn(self::KEYCLIENTE_PF_ADM,
true, $opcionesClienteWS);
1573 $clienteWS = $this->
__getClient(self::KEYCLIENTE_PF_ADM);
1576 $mainWS = $this->pf_doAuth($username, $password,
'authentication', self::$NAMESPACE_PF_ADM);
1577 $mainWS->append($enhancedUserList->toSoap(
'enhancedUserList', self::$NAMESPACE_PF_ADM));
1580 $miSoapRQ =
new SoapVar($mainWS, SOAP_ENC_OBJECT,null,null,
'updateEnhancedUsers', self::$NAMESPACE_PF_ADM);
1581 $respuesta = $clienteWS->updateEnhancedUsers($miSoapRQ);
1583 $vRespuesta = array();
1584 if (is_object($respuesta))
1588 return($vRespuesta);
1593 $mensaje = $e->getMessage();
1594 $mensaje = trim(strtolower($mensaje));
1595 if ($mensaje ==
'looks like we got no xml document')
1598 $response = $clienteWS->__getLastResponse();
1601 $vRetorno = $this->tratarMTOM4PF($response,
true,
"\r\n",
'updateEnhancedUsersResponse');
1607 $this->tratarExcepcionEstandar($e, $clienteWS);
1626 $opcionesClienteWS = array (
1627 'soap_version' => SOAP_1_1,
1628 'user_agent' =>
'WSSSoapClient',
1629 'exceptions' =>
true,
1630 'cache_wsdl' => self::$MYSOAPOP_WSDL_CACHE,
1631 'trace' => self::$MYSOAPOP_TRACE
1634 $this->
__clienteOn(self::KEYCLIENTE_PF_ADM,
true, $opcionesClienteWS);
1635 $clienteWS = $this->
__getClient(self::KEYCLIENTE_PF_ADM);
1638 $mainWS = $this->pf_doAuth($username, $password,
'authentication', self::$NAMESPACE_PF_ADM);
1639 $mainWS->append($userIdentifierList->toSoap(
'userIdentifierList', self::$NAMESPACE_PF_ADM));
1642 $miSoapRQ =
new SoapVar($mainWS, SOAP_ENC_OBJECT,null,null,
'deleteUsers', self::$NAMESPACE_PF_ADM);
1643 $respuesta = $clienteWS->deleteUsers($miSoapRQ);
1645 $vRespuesta = array();
1646 if (is_object($respuesta))
1650 return($vRespuesta);
1655 $mensaje = $e->getMessage();
1656 $mensaje = trim(strtolower($mensaje));
1657 if ($mensaje ==
'looks like we got no xml document')
1660 $response = $clienteWS->__getLastResponse();
1663 $vRetorno = $this->tratarMTOM4PF($response,
true,
"\r\n",
'deleteUsersResponse');
1669 $this->tratarExcepcionEstandar($e, $clienteWS);
1688 $opcionesClienteWS = array (
1689 'soap_version' => SOAP_1_1,
1690 'user_agent' =>
'WSSSoapClient',
1691 'exceptions' =>
true,
1692 'cache_wsdl' => self::$MYSOAPOP_WSDL_CACHE,
1693 'trace' => self::$MYSOAPOP_TRACE
1696 $this->
__clienteOn(self::KEYCLIENTE_PF_ADM,
true, $opcionesClienteWS);
1697 $clienteWS = $this->
__getClient(self::KEYCLIENTE_PF_ADM);
1700 $mainWS = $this->pf_doAuth($username, $password,
'authentication', self::$NAMESPACE_PF_ADM);
1701 $mainWS->append($enhancedJobList->toSoap(
'enhancedJobList', self::$NAMESPACE_PF_ADM));
1704 $miSoapRQ =
new SoapVar($mainWS, SOAP_ENC_OBJECT,null,null,
'insertEnhancedJobs', self::$NAMESPACE_PF_ADM);
1705 $respuesta = $clienteWS->insertEnhancedJobs($miSoapRQ);
1707 $vRespuesta = array();
1708 if (is_object($respuesta))
1712 return($vRespuesta);
1717 $mensaje = $e->getMessage();
1718 $mensaje = trim(strtolower($mensaje));
1719 if ($mensaje ==
'looks like we got no xml document')
1722 $response = $clienteWS->__getLastResponse();
1725 $vRetorno = $this->tratarMTOM4PF($response,
true,
"\r\n",
'insertEnhancedJobsResponse');
1731 $this->tratarExcepcionEstandar($e, $clienteWS);
1750 $opcionesClienteWS = array (
1751 'soap_version' => SOAP_1_1,
1752 'user_agent' =>
'WSSSoapClient',
1753 'exceptions' =>
true,
1754 'cache_wsdl' => self::$MYSOAPOP_WSDL_CACHE,
1755 'trace' => self::$MYSOAPOP_TRACE
1758 $this->
__clienteOn(self::KEYCLIENTE_PF_ADM,
true, $opcionesClienteWS);
1759 $clienteWS = $this->
__getClient(self::KEYCLIENTE_PF_ADM);
1762 $mainWS = $this->pf_doAuth($username, $password,
'authentication', self::$NAMESPACE_PF_ADM);
1763 $mainWS->append($enhancedJobList->toSoap(
'enhancedJobList', self::$NAMESPACE_PF_ADM));
1766 $miSoapRQ =
new SoapVar($mainWS, SOAP_ENC_OBJECT,null,null,
'updateEnhancedJobs', self::$NAMESPACE_PF_ADM);
1767 $respuesta = $clienteWS->updateEnhancedJobs($miSoapRQ);
1769 $vRespuesta = array();
1770 if (is_object($respuesta))
1774 return($vRespuesta);
1779 $mensaje = $e->getMessage();
1780 $mensaje = trim(strtolower($mensaje));
1781 if ($mensaje ==
'looks like we got no xml document')
1784 $response = $clienteWS->__getLastResponse();
1787 $vRetorno = $this->tratarMTOM4PF($response,
true,
"\r\n",
'updateEnhancedJobsResponse');
1793 $this->tratarExcepcionEstandar($e, $clienteWS);
1812 $opcionesClienteWS = array (
1813 'soap_version' => SOAP_1_1,
1814 'user_agent' =>
'WSSSoapClient',
1815 'exceptions' =>
true,
1816 'cache_wsdl' => self::$MYSOAPOP_WSDL_CACHE,
1817 'trace' => self::$MYSOAPOP_TRACE
1820 $this->
__clienteOn(self::KEYCLIENTE_PF_ADM,
true, $opcionesClienteWS);
1821 $clienteWS = $this->
__getClient(self::KEYCLIENTE_PF_ADM);
1824 $mainWS = $this->pf_doAuth($username, $password,
'authentication', self::$NAMESPACE_PF_ADM);
1825 $mainWS->append($jobIdentifierList->toSoap(
'jobIdentifierList', self::$NAMESPACE_PF_ADM));
1828 $miSoapRQ =
new SoapVar($mainWS, SOAP_ENC_OBJECT,null,null,
'deleteJobs', self::$NAMESPACE_PF_ADM);
1829 $respuesta = $clienteWS->deleteJobs($miSoapRQ);
1831 $vRespuesta = array();
1832 if (is_object($respuesta))
1836 return($vRespuesta);
1841 $mensaje = $e->getMessage();
1842 $mensaje = trim(strtolower($mensaje));
1843 if ($mensaje ==
'looks like we got no xml document')
1846 $response = $clienteWS->__getLastResponse();
1849 $vRetorno = $this->tratarMTOM4PF($response,
true,
"\r\n",
'deleteJobsResponse');
1855 $this->tratarExcepcionEstandar($e, $clienteWS);
1877 $opcionesClienteWS = array (
1878 'soap_version' => SOAP_1_1,
1879 'user_agent' =>
'WSSSoapClient',
1880 'exceptions' =>
true,
1881 'cache_wsdl' => self::$MYSOAPOP_WSDL_CACHE,
1882 'trace' => self::$MYSOAPOP_TRACE
1885 $this->
__clienteOn(self::KEYCLIENTE_PF_ADM,
true, $opcionesClienteWS);
1886 $clienteWS = $this->
__getClient(self::KEYCLIENTE_PF_ADM);
1889 $mainWS = $this->pf_doAuth($username, $password,
'authentication', self::$NAMESPACE_PF_ADM);
1890 $mainWS->append(
new SoapVar($jobIdentifier, XSD_STRING, null, null,
'jobIdentifier', self::$NAMESPACE_PF_ADM));
1891 $mainWS->append(
new SoapVar($userIdentifier, XSD_STRING, null, null,
'userIdentifier', self::$NAMESPACE_PF_ADM));
1892 $mainWS->append(
new SoapVar($fstart, XSD_DATE, null, null,
'fstart', self::$NAMESPACE_PF_ADM));
1893 $mainWS->append(
new SoapVar($fend, XSD_DATE, null, null,
'fend', self::$NAMESPACE_PF_ADM));
1896 $miSoapRQ =
new SoapVar($mainWS, SOAP_ENC_OBJECT,null,null,
'assignJobToUser', self::$NAMESPACE_PF_ADM);
1897 $respuesta = $clienteWS->assignJobToUser($miSoapRQ);
1899 $vRespuesta = array();
1900 if (is_object($respuesta))
1904 return($vRespuesta);
1909 $mensaje = $e->getMessage();
1910 $mensaje = trim(strtolower($mensaje));
1911 if ($mensaje ==
'looks like we got no xml document')
1914 $response = $clienteWS->__getLastResponse();
1917 $vRetorno = $this->tratarMTOM4PF($response,
true,
"\r\n",
'assignJobToUserResponse');
1923 $this->tratarExcepcionEstandar($e, $clienteWS);
1943 $opcionesClienteWS = array (
1944 'soap_version' => SOAP_1_1,
1945 'user_agent' =>
'WSSSoapClient',
1946 'exceptions' =>
true,
1947 'cache_wsdl' => self::$MYSOAPOP_WSDL_CACHE,
1948 'trace' => self::$MYSOAPOP_TRACE
1951 $this->
__clienteOn(self::KEYCLIENTE_PF_ADM,
true, $opcionesClienteWS);
1952 $clienteWS = $this->
__getClient(self::KEYCLIENTE_PF_ADM);
1955 $mainWS = $this->pf_doAuth($username, $password,
'authentication', self::$NAMESPACE_PF_ADM);
1956 $mainWS->append(
new SoapVar($jobIdentifier, XSD_STRING, null, null,
'jobIdentifier', self::$NAMESPACE_PF_ADM));
1957 $mainWS->append(
new SoapVar($userIdentifier, XSD_STRING, null, null,
'userIdentifier', self::$NAMESPACE_PF_ADM));
1960 $miSoapRQ =
new SoapVar($mainWS, SOAP_ENC_OBJECT,null,null,
'separateJobToUser', self::$NAMESPACE_PF_ADM);
1961 $respuesta = $clienteWS->separateJobToUser($miSoapRQ);
1963 $vRespuesta = array();
1964 if (is_object($respuesta))
1968 return($vRespuesta);
1973 $mensaje = $e->getMessage();
1974 $mensaje = trim(strtolower($mensaje));
1975 if ($mensaje ==
'looks like we got no xml document')
1978 $response = $clienteWS->__getLastResponse();
1981 $vRetorno = $this->tratarMTOM4PF($response,
true,
"\r\n",
'separateJobToUserResponse');
1987 $this->tratarExcepcionEstandar($e, $clienteWS);
1993 private function tratarMTOM4PF($response, $autoDetectSeparator =
false, $crlf =
"\n", $itemToReturn =
'respuesta') {
2009 $oMime = $oMimeParser->decode($response);
2018 $vRespuesta = array();
2019 preg_match(
"/<[a-z]*:Envelope.*?>(.*)<\/[a-z]*:Envelope>/is", $response, $vRespuesta);
2020 if (count($vRespuesta)<1)
2022 throw new Exception(
'No puede ubicarse RESPONSE dentro de MTOM');
2024 $respuestaSoap = $vRespuesta[0];
2027 $dom = new \DOMDocument(
'1.0');
2028 $dom->loadXML($respuestaSoap);
2029 $xpath = new \DOMXpath($dom);
2030 $vNodoRespuesta = $xpath->query(
"/*[local-name()='Envelope']/*[local-name()='Body']//*[local-name()='". $itemToReturn .
"']");
2031 $nodoRespuesta = $vNodoRespuesta->item(0);
2034 $vNodoInclude = $xpath->query(
"//*[local-name()='Include']");
2035 foreach ($vNodoInclude as $nodoItem)
2037 $subIdBuscado = (string) $nodoItem->getAttribute(
'href');
2038 $subIdBuscado = urldecode($subIdBuscado);
2039 $idBuscado =
'<'.substr($subIdBuscado, 4).
'>';
2040 foreach ($oMime->parts as $parte)
2042 $idAnexoMime = $parte->headers[
'content-id'];
2043 if ($idBuscado == $idAnexoMime)
2045 $contenidoB64 = $parte->body;
2047 if (($parte->mimetype ==
'content/octet-stream') || ($parte->mimetype ==
'application/pdf'))
2049 $contenidoB64 = base64_encode($parte->body);
2051 $textNode = $dom->createTextNode($contenidoB64);
2052 $nodoItem->parentNode->replaceChild($textNode, $nodoItem);
2058 return $this->xml_to_array($nodoRespuesta);
pf_mod_deleteDocument($username, $password, $documentId)
pf_queryEnhancedUsers($username, $password, $queryUser, $querySeat)
pf_queryUsers($username, $password, $query)
pf_adm_separateJobToUser($username, $password, $jobIdentifier, $userIdentifier)
pf_queryDocumentTypes($username, $password, $query)
pf_downloadDocument($username, $password, $documentId)
pf_mod_removeRequest($username, $password, $requestId, $removingMessage)
pf_mod_sendRequest($username, $password, $requestId)
pf_mod_updateRequest($username, $password, $request)
pf_adm_deleteUsers($username, $password, $userIdentifierList)
pf_queryEnhancedUserJobAssociatedToJob($username, $password, $jobIdentifier)
pf_mod_insertDocument($username, $password, $requestId, $document)
pf_adm_updateEnhancedJobs($username, $password, $enhancedJobList)
pf_adm_insertEnhancedUsers($username, $password, $enhancedUserList)
__clienteOn($tipo, $trazabilidadPai=true, $opcionesClienteWS=null)
pf_queryRequest($username, $password, $requestId)
pf_mod_createRequest($username, $password, $request)
pf_adm_updateEnhancedUsers($username, $password, $enhancedUserList)
pf_mod_deleteRequest($username, $password, $requestId)
pf_queryEnhancedJobs($username, $password, $queryJob, $querySeat)
pf_queryImportanceLevels($username, $password, $query)
pf_queryJobs($username, $password, $query)
pf_mod_deleteSigners($username, $password, $requestId, $signerList)
pf_adm_deleteJobs($username, $password, $jobIdentifierList)
tratarMTOMEstandar($response, $itemToReturn=null)
pf_querySeats($username, $password, $query)
pf_downloadSign($username, $password, $documentId)
pf_querySign($username, $password, $documentId)
pf_adm_insertEnhancedJobs($username, $password, $enhancedJobList)
pf_queryEnhancedUserJobAssociatedToUser($username, $password, $userIdentifier)
pf_queryStates($username, $password, $query)
pf_adm_assignJobToUser($username, $password, $jobIdentifier, $userIdentifier, $fstart, $fend)
pf_mod_insertSigners($username, $password, $requestId, $signLine, $signerList, $signLineType)