405 lines
13 KiB
XML
405 lines
13 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:sch="http://www.sanmarcoinformatica.it/quality/discovery-xc/webservice/xc-datifattura" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://www.sanmarcoinformatica.it/quality/discovery-xc/webservice/xc-datifattura" targetNamespace="http://www.sanmarcoinformatica.it/quality/discovery-xc/webservice/xc-datifattura">
|
|
<wsdl:types>
|
|
<xsd:schema xmlns:wsi="http://ws-i.org/profiles/basic/1.1/xsd" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.sanmarcoinformatica.it/quality/discovery-xc/webservice/xc-datifattura" version="2.0">
|
|
|
|
<!-- TRASMETTI -->
|
|
<xsd:element name="sendDatiFatturaRequest">
|
|
<xsd:annotation>
|
|
<xsd:documentation>
|
|
sendDatiFatturaRequest = richiesta di invio di un
|
|
xml
|
|
IdFiscale = codice fiscale o partita IVA dell'azienda
|
|
ProgressivoInvio = progressivo di invio assegnato da Fiscality
|
|
XmlZipped = 0 -> file non zippato, 1 -> file zippato
|
|
File = cid del
|
|
file, inserire come allegato il file xml al quale assegnare il cid
|
|
nel campo part
|
|
</xsd:documentation>
|
|
</xsd:annotation>
|
|
<xsd:complexType>
|
|
<xsd:sequence>
|
|
<xsd:element name="IdFiscale" type="xsd:string"/>
|
|
<xsd:element name="ProgressivoInvio" type="xsd:string"/>
|
|
<xsd:element name="XmlZipped" type="xsd:boolean"/>
|
|
<xsd:element xmlns:xmime="http://www.w3.org/2005/05/xmlmime" name="File" type="xsd:base64Binary" xmime:expectedContentTypes="*/*"/>
|
|
</xsd:sequence>
|
|
</xsd:complexType>
|
|
</xsd:element>
|
|
|
|
<xsd:element name="sendDatiFatturaResponse">
|
|
<xsd:annotation>
|
|
<xsd:documentation>
|
|
idInvioXC = codice univoco in xc del xml ricevuto
|
|
Errore = ErrorCode dell'errore, se riscontrato
|
|
</xsd:documentation>
|
|
</xsd:annotation>
|
|
<xsd:complexType>
|
|
<xsd:sequence>
|
|
<xsd:element maxOccurs="1" minOccurs="0" name="idInvioXC" type="xsd:long"/>
|
|
<xsd:element maxOccurs="1" minOccurs="1" name="Errore" type="tns:ErrorCode"/>
|
|
</xsd:sequence>
|
|
</xsd:complexType>
|
|
</xsd:element>
|
|
|
|
<!-- STATO -->
|
|
<xsd:element name="getStatusDatiFatturaRequest">
|
|
<xsd:annotation>
|
|
<xsd:documentation>
|
|
getStatusDatiFatturaRequest = richiesta per
|
|
ottenere lo stato di un xml
|
|
IdFiscale = codice fiscale o partita IVA
|
|
dell'azienda
|
|
ProgInvio = progressivo di invio assegnato da Fiscality
|
|
</xsd:documentation>
|
|
</xsd:annotation>
|
|
<xsd:complexType>
|
|
<xsd:sequence>
|
|
<xsd:element name="IdFiscale" type="xsd:string"/>
|
|
<xsd:element name="ProgressivoInvio" type="xsd:string"/>
|
|
</xsd:sequence>
|
|
</xsd:complexType>
|
|
</xsd:element>
|
|
|
|
<xsd:complexType name="statoXC">
|
|
<xsd:sequence>
|
|
<xsd:element name="CodiceStato" type="xsd:int"/>
|
|
<xsd:element name="Stato" type="xsd:string"/>
|
|
<xsd:element name="DataOraCambioStato" type="xsd:dateTime"/>
|
|
</xsd:sequence>
|
|
</xsd:complexType>
|
|
|
|
<xsd:element name="getStatusDatiFatturaResponse">
|
|
<xsd:annotation>
|
|
<xsd:documentation>
|
|
CodiceStato = codice che rappresenta lo stato
|
|
Stato = descrizione del codice
|
|
DataOraCambioStato = timestamp del
|
|
cambio di stato
|
|
Errore = ErrorCode dell'errore, se riscontrato
|
|
</xsd:documentation>
|
|
</xsd:annotation>
|
|
<xsd:complexType>
|
|
<xsd:sequence>
|
|
<xsd:element maxOccurs="unbounded" minOccurs="0" name="stato" type="tns:statoXC"/>
|
|
<xsd:element minOccurs="0" name="idInvioSdi" type="xsd:long"/>
|
|
<xsd:element maxOccurs="1" minOccurs="1" name="Errore" type="tns:ErrorCode"/>
|
|
</xsd:sequence>
|
|
</xsd:complexType>
|
|
</xsd:element>
|
|
|
|
<!-- DOWNLOAD -->
|
|
<xsd:element name="downloadDatiFatturaRequest">
|
|
<xsd:annotation>
|
|
<xsd:documentation>
|
|
downloadDatiFatturaRequest = richiesta per
|
|
ottenere uno zip contenente un xml firmato e la ricevuta di
|
|
accettazione del SDI
|
|
IdFiscale = codice fiscale o partita IVA
|
|
dell'azienda
|
|
ProgInvio = progressivo di invio assegnato da Fiscality
|
|
</xsd:documentation>
|
|
</xsd:annotation>
|
|
<xsd:complexType>
|
|
<xsd:sequence>
|
|
<xsd:element name="IdFiscale" type="xsd:string"/>
|
|
<xsd:element name="ProgressivoInvio" type="xsd:string"/>
|
|
</xsd:sequence>
|
|
</xsd:complexType>
|
|
</xsd:element>
|
|
|
|
<xsd:element name="downloadDatiFatturaResponse">
|
|
<xsd:annotation>
|
|
<xsd:documentation>
|
|
Errore = ErrorCode dell'errore, se riscontrato
|
|
</xsd:documentation>
|
|
</xsd:annotation>
|
|
<xsd:complexType>
|
|
<xsd:sequence>
|
|
<xsd:element maxOccurs="1" minOccurs="1" name="Errore" type="tns:ErrorCode"/>
|
|
</xsd:sequence>
|
|
</xsd:complexType>
|
|
</xsd:element>
|
|
|
|
<!-- CONNESSIONE -->
|
|
<xsd:element name="checkUserRequest">
|
|
<xsd:annotation>
|
|
<xsd:documentation>
|
|
checkUserRequest = richiesta per verificare se
|
|
l'utente è registrato in xc e può utilizzare il servizio
|
|
IdFiscale =
|
|
codice fiscale o partita IVA dell'azienda
|
|
</xsd:documentation>
|
|
</xsd:annotation>
|
|
<xsd:complexType>
|
|
<xsd:sequence>
|
|
<xsd:element name="IdFiscale" type="xsd:string"/>
|
|
</xsd:sequence>
|
|
</xsd:complexType>
|
|
</xsd:element>
|
|
|
|
<xsd:element name="checkUserResponse">
|
|
<xsd:annotation>
|
|
<xsd:documentation>
|
|
Errore = ErrorCode dell'errore, se riscontrato
|
|
</xsd:documentation>
|
|
</xsd:annotation>
|
|
<xsd:complexType>
|
|
<xsd:sequence>
|
|
<xsd:element maxOccurs="1" minOccurs="1" name="Errore" type="tns:ErrorCode"/>
|
|
</xsd:sequence>
|
|
</xsd:complexType>
|
|
</xsd:element>
|
|
|
|
<!-- HEADER -->
|
|
|
|
<xsd:element name="xcLogin">
|
|
<xsd:annotation>
|
|
<xsd:documentation>
|
|
xcLogin = elemento da aggiungere nell'header per
|
|
effettuare il login
|
|
AuthString = stringa di accesso al servizio (es.
|
|
utente:password codificati in base64)
|
|
</xsd:documentation>
|
|
</xsd:annotation>
|
|
<xsd:complexType>
|
|
<xsd:sequence>
|
|
<xsd:element name="AuthString" type="xsd:string"/>
|
|
</xsd:sequence>
|
|
</xsd:complexType>
|
|
</xsd:element>
|
|
|
|
<!-- SIMPLE TYPES -->
|
|
|
|
<xsd:simpleType name="ErrorCode">
|
|
<xsd:restriction base="xsd:string">
|
|
<xsd:enumeration value="E000">
|
|
<xsd:annotation>
|
|
<xsd:documentation>
|
|
E000 = NESSUN ERRORE
|
|
</xsd:documentation>
|
|
</xsd:annotation>
|
|
</xsd:enumeration>
|
|
|
|
<xsd:enumeration value="E010">
|
|
<xsd:annotation>
|
|
<xsd:documentation>
|
|
E010 = AUTENTICAZIONE MANCANTE
|
|
</xsd:documentation>
|
|
</xsd:annotation>
|
|
</xsd:enumeration>
|
|
|
|
<xsd:enumeration value="E011">
|
|
<xsd:annotation>
|
|
<xsd:documentation>
|
|
E011 = AUTENTICAZIONE ERRATA
|
|
</xsd:documentation>
|
|
</xsd:annotation>
|
|
</xsd:enumeration>
|
|
|
|
<xsd:enumeration value="E012">
|
|
<xsd:annotation>
|
|
<xsd:documentation>
|
|
E012 = AZIENDA NON REGISTRATA
|
|
</xsd:documentation>
|
|
</xsd:annotation>
|
|
</xsd:enumeration>
|
|
|
|
<xsd:enumeration value="E013">
|
|
<xsd:annotation>
|
|
<xsd:documentation>
|
|
E013 = AZIENDA NON ABILITATA
|
|
</xsd:documentation>
|
|
</xsd:annotation>
|
|
</xsd:enumeration>
|
|
|
|
<xsd:enumeration value="E020">
|
|
<xsd:annotation>
|
|
<xsd:documentation>
|
|
E020 = ALLEGATO MANCANTE
|
|
</xsd:documentation>
|
|
</xsd:annotation>
|
|
</xsd:enumeration>
|
|
|
|
<xsd:enumeration value="E021">
|
|
<xsd:annotation>
|
|
<xsd:documentation>
|
|
E021 = ALLEGATO NON VALIDO
|
|
</xsd:documentation>
|
|
</xsd:annotation>
|
|
</xsd:enumeration>
|
|
|
|
<xsd:enumeration value="E022">
|
|
<xsd:annotation>
|
|
<xsd:documentation>
|
|
E022 = ALLEGATO MAL FORMATO
|
|
</xsd:documentation>
|
|
</xsd:annotation>
|
|
</xsd:enumeration>
|
|
|
|
<xsd:enumeration value="E023">
|
|
<xsd:annotation>
|
|
<xsd:documentation>
|
|
E023 = IDFISCALE ERRATO
|
|
</xsd:documentation>
|
|
</xsd:annotation>
|
|
</xsd:enumeration>
|
|
|
|
<xsd:enumeration value="E024">
|
|
<xsd:annotation>
|
|
<xsd:documentation>
|
|
E024 = PROGRESSIVO XML ERRATO
|
|
</xsd:documentation>
|
|
</xsd:annotation>
|
|
</xsd:enumeration>
|
|
|
|
<xsd:enumeration value="E025">
|
|
<xsd:annotation>
|
|
<xsd:documentation>
|
|
E025 = XML GIA INVIATO
|
|
</xsd:documentation>
|
|
</xsd:annotation>
|
|
</xsd:enumeration>
|
|
|
|
<xsd:enumeration value="E026">
|
|
<xsd:annotation>
|
|
<xsd:documentation>
|
|
E026 = DIMENSIONE XML MAGGIORE DEL LIMITE
|
|
</xsd:documentation>
|
|
</xsd:annotation>
|
|
</xsd:enumeration>
|
|
|
|
<xsd:enumeration value="E027">
|
|
<xsd:annotation>
|
|
<xsd:documentation>
|
|
E027 = XML NON PRESENTE
|
|
</xsd:documentation>
|
|
</xsd:annotation>
|
|
</xsd:enumeration>
|
|
|
|
<xsd:enumeration value="E028">
|
|
<xsd:annotation>
|
|
<xsd:documentation>
|
|
E028 = XML NON ANCORA DISPONIBILE PER IL
|
|
DOWNLOAD
|
|
</xsd:documentation>
|
|
</xsd:annotation>
|
|
</xsd:enumeration>
|
|
|
|
<xsd:enumeration value="E099">
|
|
<xsd:annotation>
|
|
<xsd:documentation>
|
|
E099 = XC IN ERRORE
|
|
</xsd:documentation>
|
|
</xsd:annotation>
|
|
</xsd:enumeration>
|
|
</xsd:restriction>
|
|
</xsd:simpleType>
|
|
|
|
|
|
</xsd:schema>
|
|
</wsdl:types>
|
|
<wsdl:message name="checkUserResponse">
|
|
<wsdl:part element="tns:checkUserResponse" name="checkUserResponse">
|
|
</wsdl:part>
|
|
</wsdl:message>
|
|
<wsdl:message name="downloadDatiFatturaRequest">
|
|
<wsdl:part element="tns:downloadDatiFatturaRequest" name="downloadDatiFatturaRequest">
|
|
</wsdl:part>
|
|
</wsdl:message>
|
|
<wsdl:message name="downloadDatiFatturaResponse">
|
|
<wsdl:part element="tns:downloadDatiFatturaResponse" name="downloadDatiFatturaResponse">
|
|
</wsdl:part>
|
|
</wsdl:message>
|
|
<wsdl:message name="checkUserRequest">
|
|
<wsdl:part element="tns:checkUserRequest" name="checkUserRequest">
|
|
</wsdl:part>
|
|
</wsdl:message>
|
|
<wsdl:message name="getStatusDatiFatturaRequest">
|
|
<wsdl:part element="tns:getStatusDatiFatturaRequest" name="getStatusDatiFatturaRequest">
|
|
</wsdl:part>
|
|
</wsdl:message>
|
|
<wsdl:message name="sendDatiFatturaRequest">
|
|
<wsdl:part element="tns:sendDatiFatturaRequest" name="sendDatiFatturaRequest">
|
|
</wsdl:part>
|
|
</wsdl:message>
|
|
<wsdl:message name="getStatusDatiFatturaResponse">
|
|
<wsdl:part element="tns:getStatusDatiFatturaResponse" name="getStatusDatiFatturaResponse">
|
|
</wsdl:part>
|
|
</wsdl:message>
|
|
<wsdl:message name="sendDatiFatturaResponse">
|
|
<wsdl:part element="tns:sendDatiFatturaResponse" name="sendDatiFatturaResponse">
|
|
</wsdl:part>
|
|
</wsdl:message>
|
|
<wsdl:portType name="DatiFattura">
|
|
<wsdl:operation name="checkUser">
|
|
<wsdl:input message="tns:checkUserRequest" name="checkUserRequest">
|
|
</wsdl:input>
|
|
<wsdl:output message="tns:checkUserResponse" name="checkUserResponse">
|
|
</wsdl:output>
|
|
</wsdl:operation>
|
|
<wsdl:operation name="downloadDatiFattura">
|
|
<wsdl:input message="tns:downloadDatiFatturaRequest" name="downloadDatiFatturaRequest">
|
|
</wsdl:input>
|
|
<wsdl:output message="tns:downloadDatiFatturaResponse" name="downloadDatiFatturaResponse">
|
|
</wsdl:output>
|
|
</wsdl:operation>
|
|
<wsdl:operation name="getStatusDatiFattura">
|
|
<wsdl:input message="tns:getStatusDatiFatturaRequest" name="getStatusDatiFatturaRequest">
|
|
</wsdl:input>
|
|
<wsdl:output message="tns:getStatusDatiFatturaResponse" name="getStatusDatiFatturaResponse">
|
|
</wsdl:output>
|
|
</wsdl:operation>
|
|
<wsdl:operation name="sendDatiFattura">
|
|
<wsdl:input message="tns:sendDatiFatturaRequest" name="sendDatiFatturaRequest">
|
|
</wsdl:input>
|
|
<wsdl:output message="tns:sendDatiFatturaResponse" name="sendDatiFatturaResponse">
|
|
</wsdl:output>
|
|
</wsdl:operation>
|
|
</wsdl:portType>
|
|
<wsdl:binding name="DatiFatturaSoap11" type="tns:DatiFattura">
|
|
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
|
|
<wsdl:operation name="checkUser">
|
|
<soap:operation soapAction=""/>
|
|
<wsdl:input name="checkUserRequest">
|
|
<soap:body use="literal"/>
|
|
</wsdl:input>
|
|
<wsdl:output name="checkUserResponse">
|
|
<soap:body use="literal"/>
|
|
</wsdl:output>
|
|
</wsdl:operation>
|
|
<wsdl:operation name="downloadDatiFattura">
|
|
<soap:operation soapAction=""/>
|
|
<wsdl:input name="downloadDatiFatturaRequest">
|
|
<soap:body use="literal"/>
|
|
</wsdl:input>
|
|
<wsdl:output name="downloadDatiFatturaResponse">
|
|
<soap:body use="literal"/>
|
|
</wsdl:output>
|
|
</wsdl:operation>
|
|
<wsdl:operation name="getStatusDatiFattura">
|
|
<soap:operation soapAction=""/>
|
|
<wsdl:input name="getStatusDatiFatturaRequest">
|
|
<soap:body use="literal"/>
|
|
</wsdl:input>
|
|
<wsdl:output name="getStatusDatiFatturaResponse">
|
|
<soap:body use="literal"/>
|
|
</wsdl:output>
|
|
</wsdl:operation>
|
|
<wsdl:operation name="sendDatiFattura">
|
|
<soap:operation soapAction=""/>
|
|
<wsdl:input name="sendDatiFatturaRequest">
|
|
<soap:body use="literal"/>
|
|
</wsdl:input>
|
|
<wsdl:output name="sendDatiFatturaResponse">
|
|
<soap:body use="literal"/>
|
|
</wsdl:output>
|
|
</wsdl:operation>
|
|
</wsdl:binding>
|
|
<wsdl:service name="DatiFatturaService">
|
|
<wsdl:port binding="tns:DatiFatturaSoap11" name="DatiFatturaSoap11">
|
|
<soap:address location="https://www.discoveryxc.it/xc-web/datifatturaws/"/>
|
|
</wsdl:port>
|
|
</wsdl:service>
|
|
</wsdl:definitions>
|