File tree Expand file tree Collapse file tree 1 file changed +7
-12
lines changed
Expand file tree Collapse file tree 1 file changed +7
-12
lines changed Original file line number Diff line number Diff 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
2828use 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 )
You can’t perform that action at this time.
0 commit comments