Giter Site home page Giter Site logo

taocomp / php-sdicoop-client Goto Github PK

View Code? Open in Web Editor NEW
21.0 5.0 6.0 1.13 MB

A PHP package for connecting to Italian Exchange System (aka SdI) web services. (Pacchetto PHP per inviare fatture e notifiche ai webservices del SdI).

License: GNU General Public License v3.0

PHP 100.00%
php e-invoice italy einvoice invoice sdicoop client soap sdi fattura-elettronica

php-sdicoop-client's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

php-sdicoop-client's Issues

$client->RiceviFile() metodo non esistente

Ragazzi, dall'esempio per inviare l'xml usate $client->RiceviFile(), ma il metodo RiceviFile non esiste nella vostra classe!

Premettendo che PHP non lo uso quotidianamente, sbaglio qualcosa?

client esempio su SdIRiceviFile da "HTTP/1.1 500 Internal Server Error"

Provando a fare la chiamata di esempio, lo sdi mi risponde con 500 internal server error.

Se non passo il certificato client mi da 403, quindi suppongo che il mio certificato client gli vada bene, ma non so da dove partire per investigare sul problema 500: è mai capitato a voi?

* About to connect() to testservizi.fatturapa.it port 443 (#0)
*   Trying 217.175.53.96...
* Connected to testservizi.fatturapa.it (217.175.53.96) port 443 (#0)
* Initializing NSS with certpath: sql:/etc/pki/nssdb
* skipping SSL peer certificate verification
* NSS: client certificate from file
*       subject: CN=SDI-02137700395,OU=Client,OU=Fatturazione Elettronica,O=Agenzia delle Entrate,C=IT
*       start date: Dec 20 17:23:39 2018 GMT
*       expire date: May 31 11:26:11 2021 GMT
*       common name: SDI-MIAPARTITAIVA
*       issuer: CN=CA Agenzia delle Entrate,OU=Servizi Telematici,O=Agenzia delle Entrate,C=IT
* SSL connection using TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA
* Server certificate:
*       subject: CN=testservizi.fatturapa.it,OU=Servizi Sicuri,O=Agenzia delle Entrate,C=IT
*       start date: Feb 14 12:18:26 2017 GMT
*       expire date: Feb 14 12:28:00 2020 GMT
*       common name: testservizi.fatturapa.it
*       issuer: CN=CA Agenzia delle Entrate,OU=Servizi Telematici,O=Agenzia delle Entrate,C=IT
> POST /ricevi_file HTTP/1.1
User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)
Host: testservizi.fatturapa.it
Content-type: text/xml;charset="utf-8"
Accept: text/xml
Cache-Control: no-cache
Pragma: no-cache
SOAPAction: http://www.fatturapa.it/SdIRiceviFile/RiceviFile
Content-length: 4012
Expect: 100-continue

< HTTP/1.1 100 Continue
< HTTP/1.1 500 Internal Server Error
< Date: Mon, 24 Dec 2018 15:41:33 GMT
< X-Powered-By: Servlet/3.0
< Content-Length: 348
< Set-Cookie: LtpaToken2=##SEQUENZA##; HTTPOnly; Path=/; Domain=.fatturapa.it; HttpOnly
< Expires: Thu, 01 Dec 1994 16:00:00 GMT
< Cache-Control: no-cache="set-cookie, set-cookie2"
< Connection: close
< Content-Type: text/xml; charset=utf-8
< Content-Language: en-US
<
* Closing connection 0

Problema col namespace

Se provo eseguire qualche esempio, ottengo questo errore:

Taocomp\Sdicoop\Client: [ERROR] Call to undefined function Taocomp\Sdicoop\curl_init()

undefined constant CURLOPT_SSL_ENABLE_ALPN

innanzitutto complimenti per l'ottimo lavoro, vi segnalo che nella classe Client viene alzata l'eccezione Use of undefined constant CURLOPT_SSL_ENABLE_ALPN - assumed 'CURLOPT_SSL_ENABLE_ALPN' (this will throw an Error in a future version of PHP) con le versioni:
PHP: 7.2.6
cUrl: curl 7.35.0 (x86_64-pc-linux-gnu) libcurl/7.35.0 OpenSSL/1.0.1f zlib/1.2.8 libidn/1.28 librtmp/2.3

Come suggerito in un post sul forum.italia.it ho risolto sostituendo la costante con il valore numerico 226

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.