Problemi con certificati ?

Salve a tutti… non so cosa sto sbagliando…
ho dovuto fare la revoca e rifare la richiesta di accreditamento canale … ho rigenerato anche i certificati (forse ho sbagliato , potevo usare quelli vecchi … ma oramai purtroppo è andata) …
comunque sia adesso sono alla fase di test ma i file xml non arrivano allo SDI;
sto provando a fare dei test con SOAP UI , nel log vedo questo :
INFO:Reloading updated settings file
INFO:initialized soapui-settings from [C:\Users\myuser\soapui-settings.xml]
DEBUG:Getting wsdl component from [https://servizi.fatturapa.it/ricevi_file?wsdl]
DEBUG:Attempt 1 to execute request
DEBUG:Sending request: GET /ricevi_file?wsdl HTTP/1.1
DEBUG:Receiving response: HTTP/1.1 302 Found
DEBUG:Connection can be kept alive for 10000 MILLISECONDS
DEBUG:Redirecting to ‘https://servizi.fatturapa.it/SdI2AccoglienzaWeb/SdIRiceviFile_service/WEB-INF/wsdl/SdIRiceviFile_v1.0.wsdl’ via HttpRoute[{s}->https://servizi.fatturapa
DEBUG:Attempt 2 to execute request
DEBUG:Sending request: GET /SdI2AccoglienzaWeb/SdIRiceviFile_service/WEB-INF/wsdl/SdIRiceviFile_v1.0.wsdl HTTP/1.1
DEBUG:Receiving response: HTTP/1.1 200 OK
DEBUG:Connection can be kept alive for 10000 MILLISECONDS
DEBUG:Getting wsdl component from [https://servizi.fatturapa.it/TrasmissioneTypes_v1.0.xsd]
DEBUG:Stale connection check
DEBUG:Attempt 1 to execute request
DEBUG:Sending request: GET /TrasmissioneTypes_v1.0.xsd HTTP/1.1
DEBUG:Receiving response: HTTP/1.1 403 Forbidden
DEBUG:Connection can be kept alive for 10000 MILLISECONDS
ERROR:Failed to load url [https://servizi.fatturapa.it/TrasmissioneTypes_v1.0.xsd]
ERROR:An error occurred [com.eviware.soapui.impl.support.definition.support.InvalidDefinitionException], see error log for details
DEBUG:Connection closed

secondo Voi è un problema dei certificati ? o cosa altro ?
Grazie in anticipo

I certificati vecchi potresti anche utilizzarli (anche se avendo revocato il canale magari ti hanno revocato pure i certificati).
Non è che stai sbagliando endpoint? Quello di test è
https://testservizi.fatturapa.it/
mentre tu stai cercando di connetterti a
https://servizi.fatturapa.it
che è quello di produzione. Se sei ancora in fase di accreditamento probabilmente i tuoi certificati non sono ancora stati abilitati.

Federico grazie 1000 per la tua risposta …
ho provato con https://testservizi.fatturapa.it/
e adesso ricevuto addirittura 404 Not Found
probabilmente i tuoi certificati non sono ancora stati abilitati … non li abitano subito ? pensavo che come al momento in cui permettono di scaricare i certificati (download file per test) fossero già abilitati … devo aspettare domani per sentire il cliente se ha ricevuto la notifica che i test possono essere avviati …
anche se 404 Not Found, mi sembra un pò strano
Grazie

DEBUG:Getting wsdl component from [https://testservizi.fatturapa.it/ricevi_file?wsdl]
DEBUG:Attempt 1 to execute request
DEBUG:Sending request: GET /ricevi_file?wsdl HTTP/1.1
DEBUG:Receiving response: HTTP/1.1 302 Found
DEBUG:Connection can be kept alive for 10000 MILLISECONDS
DEBUG:Redirecting to ‘https://testservizi.fatturapa.it/SdI2AccoglienzaWeb/SdIRiceviFile_service/WEB-INF/wsdl/SdIRiceviFile_v1.0.wsdl’ via HttpRoute[{s}->https://testservizi.fatturapa.it]
DEBUG:Attempt 2 to execute request
DEBUG:Sending request: GET /SdI2AccoglienzaWeb/SdIRiceviFile_service/WEB-INF/wsdl/SdIRiceviFile_v1.0.wsdl HTTP/1.1
DEBUG:Receiving response: HTTP/1.1 200 OK
DEBUG:Connection can be kept alive for 10000 MILLISECONDS
DEBUG:Getting wsdl component from [https://testservizi.fatturapa.it/TrasmissioneTypes_v1.0.xsd]
DEBUG:Stale connection check
DEBUG:Attempt 1 to execute request
DEBUG:Sending request: GET /TrasmissioneTypes_v1.0.xsd HTTP/1.1
DEBUG:Receiving response: HTTP/1.1 404 Not Found
DEBUG:Connection can be kept alive for 10000 MILLISECONDS
ERROR:Failed to load url [https://testservizi.fatturapa.it/TrasmissioneTypes_v1.0.xsd]
ERROR:An error occurred [com.eviware.soapui.impl.support.definition.support.InvalidDefinitionException], see error log for details
DEBUG:Connection closed

I certificati sono ok altrimenti ti darebbe subito il 403 forbidden.
Il problema è che TrasmissioneTypes_v1.0.xsd non si trova a quell’url.
Non ti so dire quale sia l’url corretto: io personalmente utilizzo files salvati in locale (li trovi nel kit di test).

Federico ciao
ho ricontrollato tutti i passi eseguiti e mi sono accorto che quando ho creato il file .pem ho inserito il nome azienda nel parametro “stateOrProvinceName” e in “organizationName” vedo “Internet Widgits…” potrebbe essere questo il problema ? o non c’entra nulla ??

se poi dal browser richiamo :https://testservizi.fatturapa.it/SdI2AccoglienzaWeb/SdIRiceviFile_service/WEB-INF/wsdl/SdIRiceviFile_v1.0.wsdl

vedo :

ma poi andando avanti, mi fa vedere il file SdIRiceviFile_v1.0.wsdl

non so più cosa controllare !!

Grazie

Non è un problema di certificati, i certificati sono ok, e giustamente da browser vedi SdIRiceviFile_v1.0.wsdl. Il problema avviene dopo, quando il tuo client soap cerca di scaricare TrasmissioneTypes_v1.0.xsd dall’url https://testservizi.fatturapa.it/TrasmissioneTypes_v1.0.xsd ed a quell’url non è presente nulla (da qui il 404 not found).

Quel che ti posso consigliare è di salvare il wsdl in locale, assieme a TrasmissioneTypes_v1.0.xsd e richiamarli da lì, almeno sei sicuro che il client li troverà sempre :slight_smile:

Nel caso ti servisse, questo è TrasmissioneTypes_v1.0.xsd:

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
	xmlns:wsi="http://ws-i.org/profiles/basic/1.1/xsd"
	xmlns:types="http://www.fatturapa.gov.it/sdi/ws/trasmissione/v1.0/types"
	targetNamespace="http://www.fatturapa.gov.it/sdi/ws/trasmissione/v1.0/types"
	version="1.0">

	<!-- ELEMENT -->
	<xsd:element name="fileSdIAccoglienza" type="types:fileSdIBase_Type"/>
	<xsd:element name="fileSdI" type="types:fileSdI_Type"/>
	<xsd:element name="rispostaSdIRiceviFile" type="types:rispostaSdIRiceviFile_Type"/>
	<xsd:element name="ricevutaConsegna" type="types:fileSdI_Type"/>
	<xsd:element name="notificaMancataConsegna" type="types:fileSdI_Type"/>
	<xsd:element name="notificaScarto" type="types:fileSdI_Type"/>
	<xsd:element name="notificaEsito" type="types:fileSdI_Type"/>
	<xsd:element name="notificaDecorrenzaTermini" type="types:fileSdI_Type"/>
	<xsd:element name="notificaFileNonRecapitabile" type="types:fileSdI_Type"/>
				
	<!-- COMPLEX TYPES -->
	<xsd:complexType name="fileSdIBase_Type">
		<xsd:sequence>
			<xsd:element name="NomeFile" type="types:nomeFile_Type" />
			<xsd:element name="File" type="xsd:base64Binary" xmime:expectedContentTypes="*/*" xmlns:xmime="http://www.w3.org/2005/05/xmlmime"/>
		</xsd:sequence>
	</xsd:complexType>

	<xsd:complexType name="fileSdI_Type">
		<xsd:sequence>
			<xsd:element name="IdentificativoSdI" type="types:identificativoSdI_Type" />
			<xsd:element name="NomeFile" type="types:nomeFile_Type" />
			<xsd:element name="File" type="xsd:base64Binary" xmime:expectedContentTypes="*/*" xmlns:xmime="http://www.w3.org/2005/05/xmlmime"/>
		</xsd:sequence>
	</xsd:complexType>

	<xsd:complexType name="rispostaSdIRiceviFile_Type">
		<xsd:sequence>
			<xsd:element name="IdentificativoSdI" type="types:identificativoSdI_Type" />
			<xsd:element name="DataOraRicezione" type="xsd:dateTime" />
			<xsd:element name="Errore" type="types:erroreInvio_Type" minOccurs="0" maxOccurs="1" />
		</xsd:sequence>
	</xsd:complexType>
	
	<!-- SIMPLE TYPES -->
	<xsd:simpleType name="identificativoSdI_Type">
		<xsd:restriction base="xsd:integer">
			<xsd:totalDigits value="12" />
		</xsd:restriction>
	</xsd:simpleType>

	<xsd:simpleType name="nomeFile_Type">
		<xsd:restriction base="xsd:string">
			<xsd:pattern value="[a-zA-Z0-9_\.]{9,50}" />
		</xsd:restriction>
	</xsd:simpleType>

	<xsd:simpleType name="erroreInvio_Type">
		<xsd:restriction base="xsd:string">
			<xsd:enumeration value="EI01">
				<xsd:annotation>
					<xsd:documentation>
						EI01 = FILE VUOTO
					</xsd:documentation>
				</xsd:annotation>
			</xsd:enumeration>
			
			<xsd:enumeration value="EI02" >
				<xsd:annotation>
					<xsd:documentation>
						EI02 = SERVIZIO NON DISPONIBILE
					</xsd:documentation>
				</xsd:annotation>
			</xsd:enumeration>
			
			<xsd:enumeration value="EI03" >
				<xsd:annotation>
					<xsd:documentation>
						EI03 = UTENTE NON ABILITATO
					</xsd:documentation>
				</xsd:annotation>
			</xsd:enumeration>
		</xsd:restriction>
	</xsd:simpleType>
	
</xsd:schema>