PRUEBA - PHP Online

Form of PHP Sandbox

Enter Your PHP code here for testing/debugging in the Online PHP Sandbox. As in the usual PHP files, you can also add HTML, but do not forget to add the tag <?php in the places where the PHP script should be executed.



Your result can be seen below.

Result of php executing





Full code of PRUEBA.php

  1. <?php
  2. $xml = '<?xml version="1.0" encoding="UTF-8"?>
  3. <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  4.    <soap:Body>
  5.       <SetFacFacturasResponse xmlns="http://Noova/">
  6.          <SetFacFacturasResult>
  7.             <Result>0</Result>
  8.             <Description />
  9.             <Id>11272</Id>
  10.             <DocumentNumber>BOG1055</DocumentNumber>
  11.             <Cufe>c07dbc0116e8deb831354d34a993951c7fc99206f51da7602669f1eb2dc70be0ae368648155cfcf7a9def50f9f611676</Cufe>
  12.             <QrCode>NumFac: BOG1055
  13. FecFac: 20200724142219
  14. NitFac: 800139545
  15. DocAdq: 900313349
  16. ValFac: 6032534.00
  17. ValIva: 1146181.46
  18. ValOtroIm: 0
  19. ValFacIm: 7178715.46
  20. CUFE-SHA384: c07dbc0116e8deb831354d34a993951c7fc99206f51da7602669f1eb2dc70be0ae368648155cfcf7a9def50f9f611676
  21. URL: https://catalogo-vpfe.dian.gov.co/document/searchqr?documentkey=c07dbc0116e8deb831354d34a993951c7fc99206f51da7602669f1eb2dc70be0ae368648155cfcf7a9def50f9f611676</QrCode>
  22.             <URL>https://documenteme.mentum.group/PortalPublico/pgn_validaingreso.aspx?e=8&g=5b95920c-8baa-4ff8-b93a-e48ea2a61961&o=E&n=E&c=c07dbc0116e8deb831354d34a993951c7fc99206f51da7602669f1eb2dc70be0ae368648155cfcf7a9def50f9f611676</URL>
  23.             <Request />
  24.             <ErrorList />
  25.             <Signature>PWZ2+dJzwdI/nILVeR4NuhnSqBVV9qmHkhjIQDxdaFwwquxcLNOLsm7Rrztf/1BMWhZXha2ashfX+vWW9im1RQjkA5GTHVx7W4AhpuzJ+6jDxZPjrykQeU/g3Za1fK4SOVPHwWjoNUO6dHomgwQP/Zq7t1wOIWFI11pNSDdfj1toVbKHL3YMGodchO/iPo4DLEAt24zbt8r/X20mfeU7FJEg+2N5QIZL6lNLIpEtFQ506I3zCP+q+fa9gkyPxHIhcP9wrmHF25Vo3ldY/QkPKr/MJdUFr5fKkTw4dXcQbC9rVm2+bsaAP6BlyH7BS/7928oElHCfrnd2nZww8RylrA==</Signature>
  26.             <State>Exitosa</State>
  27.             <Validated>24/07/2020 02:25:09 p. m.</Validated>
  28.          </SetFacFacturasResult>
  29.       </SetFacFacturasResponse>
  30.    </soap:Body>
  31. </soap:Envelope>';
  32.  
  33. $soap = simplexml_load_string($xml);
  34. $body = $soap->xpath('//soap:Body')[0];
  35.  
  36. $objSetFacFacturasResult = $body->SetFacFacturasResponse->SetFacFacturasResult;
  37.  
  38.  
  39. echo $objSetFacFacturasResult->Id;
  40. echo $objSetFacFacturasResult->Id;
  41. echo $objSetFacFacturasResult->Id;
  42. echo $objSetFacFacturasResult->Id;
  43. echo $objSetFacFacturasResult->Id;
  44. echo $objSetFacFacturasResult->Id;
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52. //foreach ($xml->xpath('//soap:Body') as $item)
  53. //{
  54. //    print_r($item);
  55. //}
  56.  
  57.  
File Description
  • PRUEBA
  • PHP Code
  • 24 Feb-2021
  • 2.32 Kb
You can Share it: