Skip to content

Commit 4e7db21

Browse files
committed
Fix more info to Readme
1 parent f236d9b commit 4e7db21

File tree

1 file changed

+7
-12
lines changed

1 file changed

+7
-12
lines changed

README.md

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ Via composer:
2020
$ composer require aleplusplus/soapclient-curl-php
2121
```
2222

23-
## Usage:
23+
## Example:
2424

25-
Using the `SoapClientCurl\SoapClientRequest`: in Server SOAP of SRI.
25+
Using the `SoapClientCurl\SoapClientRequest` in SOAP Server of SRI:
2626

2727
```php
2828
use SoapClientCurl\SoapClientRequest;
@@ -31,18 +31,13 @@ use SoapClientCurl\SoapClientRequest;
3131
$claveAccesoComprobante = '<CLAVE_ACCESO>';
3232

3333
// Url Soap Server Example
34-
$url = 'https://celcer.sri.gob.ec/comprobantes-electronicos-ws/AutorizacionComprobantes';
34+
$url = '<SOAP_SERVER_URL>';
3535

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>';
36+
$body = '<SOAP_SCHEMA>';
4437

4538
$headers = array('Content-Type: text/xml; charset=utf-8', 'Content-Length: '.strlen($body));
4639

4740
$result = SoapClientRequest::send($url, $headers, $body);
48-
```
41+
```
42+
43+
For more deteal see test(https://github.com/aleplusplus/soapclient-curl-php/blob/master/tests/SoapClientRequestTest.php)

0 commit comments

Comments
 (0)