Skip to content

Commit eb5548e

Browse files
committed
Fix more info to Readme
1 parent fd38a21 commit eb5548e

File tree

1 file changed

+20
-18
lines changed

1 file changed

+20
-18
lines changed

README.md

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -25,22 +25,24 @@ $ composer require aleplusplus/soapclient-curl-php
2525
Using the `SoapClientCurl\SoapClientRequest`:
2626

2727
```php
28-
use SoapClientCurl\SoapClientRequest;
29-
30-
$claveAccesoComprobante = '1302201501179188978900110010010000100520001005215';
31-
32-
$url = 'https://celcer.sri.gob.ec/comprobantes-electronicos-ws/AutorizacionComprobantes';
33-
34-
$body = '<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ec="http://ec.gob.sri.ws.autorizacion">
35-
<soapenv:Header/>
36-
<soapenv:Body>
37-
<ec:autorizacionComprobante>
38-
<claveAccesoComprobante>'.$claveAccesoComprobante.'</claveAccesoComprobante>
39-
</ec:autorizacionComprobante>
40-
</soapenv:Body>
41-
</soapenv:Envelope>';
42-
43-
$headers = array('Content-Type: text/xml; charset=utf-8', 'Content-Length: '.strlen($body));
44-
45-
$result = SoapClientRequest::send($url, $headers, $body);
28+
use SoapClientCurl\SoapClientRequest;
29+
30+
// Example
31+
$claveAccesoComprobante = '<CLAVE_ACCESO>';
32+
33+
// Url Soap Server Example
34+
$url = 'https://celcer.sri.gob.ec/comprobantes-electronicos-ws/AutorizacionComprobantes';
35+
36+
$body = '<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ec="http://ec.gob.sri.ws.autorizacion">
37+
<soapenv:Header/>
38+
<soapenv:Body>
39+
<ec:autorizacionComprobante>
40+
<claveAccesoComprobante>'.$claveAccesoComprobante.'</claveAccesoComprobante>
41+
</ec:autorizacionComprobante>
42+
</soapenv:Body>
43+
</soapenv:Envelope>';
44+
45+
$headers = array('Content-Type: text/xml; charset=utf-8', 'Content-Length: '.strlen($body));
46+
47+
$result = SoapClientRequest::send($url, $headers, $body);
4648
```

0 commit comments

Comments
 (0)