<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:ns1="http://org.apache.axis2/" xmlns:ns="http://ws.aoo.td.it" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:ax23="http://util.aoo.td.it/" xmlns:ax21="http://beans.aoo.td.it/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" targetNamespace="http://ws.aoo.td.it">
    <wsdl:documentation>AooSilWS</wsdl:documentation>
    <wsdl:types>
        <xs:schema xmlns:ax26="http://util.aoo.td.it/" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://beans.aoo.td.it/">
            <xs:import namespace="http://util.aoo.td.it/"/>
            <xs:complexType name="Aoo">
                <xs:annotation>
                    <xs:documentation>Dati relativi alle AOO</xs:documentation>
                </xs:annotation>
                <xs:sequence>
                    <xs:element name="istituzione" type="xs:date">
                        <xs:annotation>
                            <xs:documentation>Data istituzione AOO</xs:documentation>
                        </xs:annotation>
                    </xs:element>

                    <xs:element name="mail" type="xs:string">
                        <xs:annotation>
                            <xs:documentation>e-mail AOO</xs:documentation>
                        </xs:annotation>
                    </xs:element>

                    <xs:element name="descrizione" type="xs:string">
                        <xs:annotation>
                            <xs:documentation>Nome AOO</xs:documentation>
                        </xs:annotation>
                    </xs:element>

                    <xs:element name="datasoppressione" type="xs:date" minOccurs="0">
                        <xs:annotation>
                            <xs:documentation>Data soppressione nel formato AAAA-MM-GG</xs:documentation>
                        </xs:annotation>
                    </xs:element>

                    <xs:element name="mailboxcertificata" type="xs:boolean" minOccurs="0">
                        <xs:annotation>
                            <xs:documentation>indica se l'AOO ha un indirizzo di posta elettronica certificata</xs:documentation>
                        </xs:annotation>
                    </xs:element>

                    <xs:element name="sil" type="xs:string" minOccurs="0">
                        <xs:annotation>
                            <xs:documentation>Identificativo del Sistema Informativo Locale (SIL) rilasciato dal gestore dell'infrastruttura CART</xs:documentation>
                        </xs:annotation>
                    </xs:element>

                    <xs:element name="codiceamministrazione" type="xs:string" minOccurs="0">
                        <xs:annotation>
                            <xs:documentation>Codice dell'amministrazione</xs:documentation>
                        </xs:annotation>
                    </xs:element>

                    <xs:element name="descrizioneamministrazione" type="xs:string" minOccurs="0">
                        <xs:annotation>
                            <xs:documentation>Descrizione dell'amministrazione</xs:documentation>
                        </xs:annotation>
                    </xs:element>

                    <xs:element name="attivatopartrt" type="xs:boolean" minOccurs="0">
                        <xs:annotation>
                            <xs:documentation>Flag di stato di attivazione della AOO</xs:documentation>
                        </xs:annotation>
                    </xs:element>

                    <xs:element name="attivatowebcitt" type="xs:boolean" minOccurs="0">
                        <xs:annotation>
                            <xs:documentation>Flag di stato di attivazione su Web Cittadini</xs:documentation>
                        </xs:annotation>
                    </xs:element>

                    <xs:element name="nomeresp" type="xs:string" minOccurs="0">
                        <xs:annotation>
                            <xs:documentation>Nome responsabile</xs:documentation>
                        </xs:annotation>
                    </xs:element>

                    <xs:element name="cognomeresp" type="xs:string" minOccurs="0">
                        <xs:annotation>
                            <xs:documentation>Cognome responsabile</xs:documentation>
                        </xs:annotation>
                    </xs:element>

                    <xs:element name="mailresp" type="xs:string" minOccurs="0">
                        <xs:annotation>
                            <xs:documentation>Mail responsabile</xs:documentation>
                        </xs:annotation>
                    </xs:element>

                    <xs:element name="classificazione" type="xs:string" minOccurs="0">
                        <xs:annotation>
                            <xs:documentation>Classificazione secondo RFC-53</xs:documentation>
                        </xs:annotation>
                    </xs:element>

                    <xs:element name="provincia" type="xs:string" minOccurs="0">
                        <xs:annotation>
                            <xs:documentation>Provincia (sigla secondo RFC-66)</xs:documentation>
                        </xs:annotation>
                    </xs:element>

                    <xs:element name="comune" type="xs:string" minOccurs="0">
                        <xs:annotation>
                            <xs:documentation>Comune (codice ISTAT)</xs:documentation>
                        </xs:annotation>
                    </xs:element>

                    <xs:element name="telefono" type="xs:string" minOccurs="0">
                        <xs:annotation>
                            <xs:documentation>Numero di telefono</xs:documentation>
                        </xs:annotation>
                    </xs:element>
                </xs:sequence>


                <xs:attribute name="nome" type="xs:string" use="required">
                    <xs:annotation>
                        <xs:documentation>Codice AOO</xs:documentation>
                    </xs:annotation>
                </xs:attribute>
            </xs:complexType>
            <xs:complexType name="VariazioneAoo">
                <xs:annotation>
                    <xs:documentation>Dati relativi alle variazioni delle AOO</xs:documentation>
                </xs:annotation>
                <xs:sequence>
                    <xs:element name="dataVariazione" type="xs:dateTime">
                        <xs:annotation>
                            <xs:documentation>Data in cui e'stata inviata questa variazione</xs:documentation>
                        </xs:annotation>
                    </xs:element>
                    <xs:element name="istituzione" type="xs:date">
                        <xs:annotation>
                            <xs:documentation>Data istituzione AOO</xs:documentation>
                        </xs:annotation>
                    </xs:element>

                    <xs:element name="mail" type="xs:string">
                        <xs:annotation>
                            <xs:documentation>e-mail AOO</xs:documentation>
                        </xs:annotation>
                    </xs:element>

                    <xs:element name="descrizione" type="xs:string">
                        <xs:annotation>
                            <xs:documentation>Nome AOO</xs:documentation>
                        </xs:annotation>
                    </xs:element>

                    <xs:element name="datasoppressione" type="xs:date" minOccurs="0">
                        <xs:annotation>
                            <xs:documentation>Data soppressione nel formato AAAA-MM-GG</xs:documentation>
                        </xs:annotation>
                    </xs:element>

                    <xs:element name="mailboxcertificata" type="xs:boolean" minOccurs="0">
                        <xs:annotation>
                            <xs:documentation>indica se l'AOO ha un indirizzo di posta elettronica certificata</xs:documentation>
                        </xs:annotation>
                    </xs:element>

                    <xs:element name="sil" type="xs:string" minOccurs="0">
                        <xs:annotation>
                            <xs:documentation>Identificativo del Sistema Informativo Locale (SIL) rilasciato dal gestore dell'infrastruttura CART</xs:documentation>
                        </xs:annotation>
                    </xs:element>

                    <xs:element name="codiceamministrazione" type="xs:string" minOccurs="0">
                        <xs:annotation>
                            <xs:documentation>Codice dell'amministrazione</xs:documentation>
                        </xs:annotation>
                    </xs:element>

                    <xs:element name="descrizioneamministrazione" type="xs:string" minOccurs="0">
                        <xs:annotation>
                            <xs:documentation>Descrizione dell'amministrazione</xs:documentation>
                        </xs:annotation>
                    </xs:element>

                    <xs:element name="attivatopartrt" type="xs:boolean" minOccurs="0">
                        <xs:annotation>
                            <xs:documentation>Flag di stato di attivazione della AOO</xs:documentation>
                        </xs:annotation>
                    </xs:element>

                    <xs:element name="attivatowebcitt" type="xs:boolean" minOccurs="0">
                        <xs:annotation>
                            <xs:documentation>Flag di stato di attivazione su Web Cittadini</xs:documentation>
                        </xs:annotation>
                    </xs:element>

                    <xs:element name="nomeresp" type="xs:string" minOccurs="0">
                        <xs:annotation>
                            <xs:documentation>Nome responsabile</xs:documentation>
                        </xs:annotation>
                    </xs:element>

                    <xs:element name="cognomeresp" type="xs:string" minOccurs="0">
                        <xs:annotation>
                            <xs:documentation>Cognome responsabile</xs:documentation>
                        </xs:annotation>
                    </xs:element>

                    <xs:element name="mailresp" type="xs:string" minOccurs="0">
                        <xs:annotation>
                            <xs:documentation>Mail responsabile</xs:documentation>
                        </xs:annotation>
                    </xs:element>

                    <xs:element name="classificazione" type="xs:string" minOccurs="0">
                        <xs:annotation>
                            <xs:documentation>Classificazione secondo RFC-53</xs:documentation>
                        </xs:annotation>
                    </xs:element>

                    <xs:element name="provincia" type="xs:string" minOccurs="0">
                        <xs:annotation>
                            <xs:documentation>Provincia (sigla secondo RFC-66)</xs:documentation>
                        </xs:annotation>
                    </xs:element>

                    <xs:element name="comune" type="xs:string" minOccurs="0">
                        <xs:annotation>
                            <xs:documentation>Comune (codice ISTAT)</xs:documentation>
                        </xs:annotation>
                    </xs:element>

                    <xs:element name="telefono" type="xs:string" minOccurs="0">
                        <xs:annotation>
                            <xs:documentation>Numero di telefono</xs:documentation>
                        </xs:annotation>
                    </xs:element>
                </xs:sequence>

                <xs:attribute name="nome" type="xs:string" use="required">
                    <xs:annotation>
                        <xs:documentation>Codice AOO</xs:documentation>
                    </xs:annotation>
                </xs:attribute>
                <xs:attribute name="tipoVariazione" use="required" type="ax23:tipoVariazione">
                    <xs:annotation>
                        <xs:documentation>
                        Tipo di variazione dell'AOO che puo' avere tre casi:
                            -Inserimento di un nuovo AOO
                            -Aggiornamento di un AOO esistente
                            -Cancellazione di un AOO esistente
                        </xs:documentation>
                    </xs:annotation>
                </xs:attribute>
            </xs:complexType>
        </xs:schema>
        <xs:schema xmlns:ax25="http://util.aoo.td.it/" xmlns:ax22="http://beans.aoo.td.it/" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://ws.aoo.td.it">
            <xs:import namespace="http://beans.aoo.td.it/"/>
            <xs:import namespace="http://util.aoo.td.it/"/>
           <xs:complexType name="faultSOAPException">
                    <xs:sequence>
                        <xs:element name="SOAPException" type="xs:anyType"/>
                    </xs:sequence>
                </xs:complexType>
            <xs:element name="SOAPException" type="ns:faultSOAPException"/>
            <xs:complexType name="faultPaginazioneException">
                    <xs:sequence>
                        <xs:element name="PaginazioneException" type="xs:anyType"/>
                    </xs:sequence>
                </xs:complexType>
            <xs:element name="PaginazioneException" type="ns:faultPaginazioneException"/>
            <xs:element name="getAoo">
                <xs:complexType>
                    <xs:sequence>
                        <xs:element minOccurs="0" name="aoo" type="xs:string"/>
                    </xs:sequence>
                </xs:complexType>
            </xs:element>
            <xs:element name="getAooResponse">
                <xs:complexType>
                    <xs:sequence>
                        <xs:element minOccurs="0" name="return" type="ax22:Aoo"/>
                    </xs:sequence>
                </xs:complexType>
            </xs:element>
            <xs:element name="getAllAoo">
                <xs:complexType>
                    <xs:sequence>
                        <xs:element minOccurs="0" name="inizioPag" type="xs:int"/>
                        <xs:element minOccurs="0" name="dimensionePag" type="xs:int"/>
                    </xs:sequence>
                </xs:complexType>
            </xs:element>
            <xs:element name="getAllAooResponse">
                <xs:complexType>
                    <xs:sequence>
                        <xs:element maxOccurs="unbounded" minOccurs="0" name="return" type="ax22:Aoo"/>
                    </xs:sequence>
                </xs:complexType>
            </xs:element>
            <xs:element name="getAooPerProvincia">
                <xs:complexType>
                    <xs:sequence>
                        <xs:element minOccurs="0" name="provincia" type="xs:string"/>
                        <xs:element minOccurs="0" name="inizioPag" type="xs:int"/>
                        <xs:element minOccurs="0" name="dimensionePag" type="xs:int"/>
                    </xs:sequence>
                </xs:complexType>
            </xs:element>
            <xs:element name="getAooPerProvinciaResponse">
                <xs:complexType>
                    <xs:sequence>
                        <xs:element maxOccurs="unbounded" minOccurs="0" name="return" type="ax22:Aoo"/>
                    </xs:sequence>
                </xs:complexType>
            </xs:element>
            <xs:element name="getVariazioniAoo">
                <xs:complexType>
                    <xs:sequence>
                        <xs:element minOccurs="0" name="data" type="xs:dateTime"/>
                        <xs:element minOccurs="0" name="inizioPag" type="xs:int"/>
                        <xs:element minOccurs="0" name="dimensionePag" type="xs:int"/>
                    </xs:sequence>
                </xs:complexType>
            </xs:element>
            <xs:element name="getVariazioniAooResponse">
                <xs:complexType>
                    <xs:sequence>
                        <xs:element maxOccurs="unbounded" minOccurs="0" name="return" type="ax22:VariazioneAoo"/>
                    </xs:sequence>
                </xs:complexType>
            </xs:element>
            <xs:element name="getNumeroVariazioniAoo">
                <xs:complexType>
                    <xs:sequence>
                        <xs:element name="data" type="xs:dateTime"/>
                    </xs:sequence>
                </xs:complexType>
            </xs:element>
            <xs:element name="getNumeroVariazioniAooResponse">
                <xs:complexType>
                    <xs:sequence>
                        <xs:element name="return" type="xs:int"/>
                    </xs:sequence>
                </xs:complexType>
            </xs:element>
            <xs:element name="getUltimaVariazioneAooResponse">
                <xs:complexType>
                    <xs:sequence>
                        <xs:element minOccurs="0" name="return" type="xs:dateTime"/>
                    </xs:sequence>
                </xs:complexType>
            </xs:element>
        </xs:schema>
        <xs:schema xmlns:ax24="http://ws.aoo.td.it" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://util.aoo.td.it/">
            <xs:import namespace="http://ws.aoo.td.it"/>
            <xs:simpleType name="tipoVariazione">
                <xs:restriction base="xs:string">
                    <xs:enumeration value="INS"/>
                    <xs:enumeration value="UPD"/>
                    <xs:enumeration value="DEL"/>
                </xs:restriction>
            </xs:simpleType>
        </xs:schema>
    </wsdl:types>
    <wsdl:message name="getAooPerProvinciaRequest">
        <wsdl:part name="parameters" element="ns:getAooPerProvincia"/>
    </wsdl:message>
    <wsdl:message name="getAooPerProvinciaResponse">
        <wsdl:part name="parameters" element="ns:getAooPerProvinciaResponse"/>
    </wsdl:message>
    <wsdl:message name="PaginazioneException">
        <wsdl:part name="parameters" element="ns:PaginazioneException"/>
    </wsdl:message>
    <wsdl:message name="SOAPException">
        <wsdl:part name="parameters" element="ns:SOAPException"/>
    </wsdl:message>
    <wsdl:message name="getAllAooRequest">
        <wsdl:part name="parameters" element="ns:getAllAoo"/>
    </wsdl:message>
    <wsdl:message name="getAllAooResponse">
        <wsdl:part name="parameters" element="ns:getAllAooResponse"/>
    </wsdl:message>
    <wsdl:message name="getAooRequest">
        <wsdl:part name="parameters" element="ns:getAoo"/>
    </wsdl:message>
    <wsdl:message name="getAooResponse">
        <wsdl:part name="parameters" element="ns:getAooResponse"/>
    </wsdl:message>
    <wsdl:message name="getUltimaVariazioneAooRequest"/>
    <wsdl:message name="getUltimaVariazioneAooResponse">
        <wsdl:part name="parameters" element="ns:getUltimaVariazioneAooResponse"/>
    </wsdl:message>
    <wsdl:message name="getVariazioniAooRequest">
        <wsdl:part name="parameters" element="ns:getVariazioniAoo"/>
    </wsdl:message>
    <wsdl:message name="getVariazioniAooResponse">
        <wsdl:part name="parameters" element="ns:getVariazioniAooResponse"/>
    </wsdl:message>
    <wsdl:message name="getNumeroVariazioniAooRequest">
        <wsdl:part name="getNumeroVariazioniAoo" element="ns:getNumeroVariazioniAoo">
        </wsdl:part>
    </wsdl:message>
    <wsdl:message name="getNumeroVariazioniAooResponse">
        <wsdl:part name="getNumeroVariazioniAoo" element="ns:getNumeroVariazioniAooResponse">
        </wsdl:part>
    </wsdl:message>
    <wsdl:portType name="AooSilWSPortType">
        <wsdl:operation name="getAooPerProvincia">
            <wsdl:input message="ns:getAooPerProvinciaRequest" wsaw:Action="urn:getAooPerProvincia"/>
            <wsdl:output message="ns:getAooPerProvinciaResponse" wsaw:Action="urn:getAooPerProvinciaResponse"/>
            <wsdl:fault message="ns:PaginazioneException" name="PaginazioneException" wsaw:Action="urn:getAooPerProvinciaPaginazioneException"/>
            <wsdl:fault message="ns:SOAPException" name="SOAPException" wsaw:Action="urn:getAooPerProvinciaSOAPException"/>
        </wsdl:operation>
        <wsdl:operation name="getAllAoo">
            <wsdl:input message="ns:getAllAooRequest" wsaw:Action="urn:getAllAoo"/>
            <wsdl:output message="ns:getAllAooResponse" wsaw:Action="urn:getAllAooResponse"/>
            <wsdl:fault message="ns:PaginazioneException" name="PaginazioneException" wsaw:Action="urn:getAllAooPaginazioneException"/>
            <wsdl:fault message="ns:SOAPException" name="SOAPException" wsaw:Action="urn:getAllAooSOAPException"/>
        </wsdl:operation>
        <wsdl:operation name="getAoo">
            <wsdl:input message="ns:getAooRequest" wsaw:Action="urn:getAoo"/>
            <wsdl:output message="ns:getAooResponse" wsaw:Action="urn:getAooResponse"/>
            <wsdl:fault message="ns:SOAPException" name="SOAPException" wsaw:Action="urn:getAooSOAPException"/>
        </wsdl:operation>
        <wsdl:operation name="getUltimaVariazioneAoo">
            <wsdl:input message="ns:getUltimaVariazioneAooRequest" wsaw:Action="urn:getUltimaVariazioneAoo"/>
            <wsdl:output message="ns:getUltimaVariazioneAooResponse" wsaw:Action="urn:getUltimaVariazioneAooResponse"/>
            <wsdl:fault message="ns:SOAPException" name="SOAPException" wsaw:Action="urn:getUltimaVariazioneAooSOAPException"/>
        </wsdl:operation>
        <wsdl:operation name="getVariazioniAoo">
            <wsdl:input message="ns:getVariazioniAooRequest" wsaw:Action="urn:getVariazioniAoo"/>
            <wsdl:output message="ns:getVariazioniAooResponse" wsaw:Action="urn:getVariazioniAooResponse"/>
            <wsdl:fault message="ns:PaginazioneException" name="PaginazioneException" wsaw:Action="urn:getVariazioniAooPaginazioneException"/>
            <wsdl:fault message="ns:SOAPException" name="SOAPException" wsaw:Action="urn:getVariazioniAooSOAPException"/>
        </wsdl:operation>
        <wsdl:operation name="getNumeroVariazioniAoo">
            <wsdl:input message="ns:getNumeroVariazioniAooRequest" wsaw:Action="urn:getNumeroVariazioniAoo">
            </wsdl:input>
            <wsdl:output message="ns:getNumeroVariazioniAooResponse" wsaw:Action="urn:getNumeroVariazioniAooResponse">
            </wsdl:output>
            <wsdl:fault name="SOAPException" message="ns:SOAPException" wsaw:Action="urn:getNumeroVariazioniAooSOAPException">
            </wsdl:fault>
        </wsdl:operation>
    </wsdl:portType>
    <wsdl:binding name="AooSilWSSoap11Binding" type="ns:AooSilWSPortType">
        <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
        <wsdl:operation name="getAooPerProvincia">
            <soap:operation soapAction="urn:getAooPerProvincia" style="document"/>
            <wsdl:input>
                <soap:body use="literal"/>
            </wsdl:input>
            <wsdl:output>
                <soap:body use="literal"/>
            </wsdl:output>
            <wsdl:fault name="PaginazioneException">
                <soap:fault use="literal" name="PaginazioneException"/>
            </wsdl:fault>
            <wsdl:fault name="SOAPException">
                <soap:fault use="literal" name="SOAPException"/>
            </wsdl:fault>
        </wsdl:operation>
        <wsdl:operation name="getAllAoo">
            <soap:operation soapAction="urn:getAllAoo" style="document"/>
            <wsdl:input>
                <soap:body use="literal"/>
            </wsdl:input>
            <wsdl:output>
                <soap:body use="literal"/>
            </wsdl:output>
            <wsdl:fault name="PaginazioneException">
                <soap:fault use="literal" name="PaginazioneException"/>
            </wsdl:fault>
            <wsdl:fault name="SOAPException">
                <soap:fault use="literal" name="SOAPException"/>
            </wsdl:fault>
        </wsdl:operation>
        <wsdl:operation name="getAoo">
            <soap:operation soapAction="urn:getAoo" style="document"/>
            <wsdl:input>
                <soap:body use="literal"/>
            </wsdl:input>
            <wsdl:output>
                <soap:body use="literal"/>
            </wsdl:output>
            <wsdl:fault name="SOAPException">
                <soap:fault use="literal" name="SOAPException"/>
            </wsdl:fault>
        </wsdl:operation>
        <wsdl:operation name="getUltimaVariazioneAoo">
            <soap:operation soapAction="urn:getUltimaVariazioneAoo" style="document"/>
            <wsdl:input>
                <soap:body use="literal"/>
            </wsdl:input>
            <wsdl:output>
                <soap:body use="literal"/>
            </wsdl:output>
            <wsdl:fault name="SOAPException">
                <soap:fault use="literal" name="SOAPException"/>
            </wsdl:fault>
        </wsdl:operation>
        <wsdl:operation name="getVariazioniAoo">
            <soap:operation soapAction="urn:getVariazioniAoo" style="document"/>
            <wsdl:input>
                <soap:body use="literal"/>
            </wsdl:input>
            <wsdl:output>
                <soap:body use="literal"/>
            </wsdl:output>
            <wsdl:fault name="PaginazioneException">
                <soap:fault use="literal" name="PaginazioneException"/>
            </wsdl:fault>
            <wsdl:fault name="SOAPException">
                <soap:fault use="literal" name="SOAPException"/>
            </wsdl:fault>
        </wsdl:operation>
        <wsdl:operation name="getNumeroVariazioniAoo">
            <soap:operation soapAction="urn:getNumeroVariazioniAoo" style="document"/>
            <wsdl:input>
                <soap:body use="literal"/>
            </wsdl:input>
            <wsdl:output>
                <soap:body use="literal"/>
            </wsdl:output>
            <wsdl:fault name="SOAPException">
                <soap:fault name="SOAPException" use="literal"/>
            </wsdl:fault>
        </wsdl:operation>
    </wsdl:binding>
    <wsdl:service name="AooSilWS">
        <wsdl:port name="AooSilWSHttpSoap11Endpoint" binding="ns:AooSilWSSoap11Binding">
            <soap:address location="http://localhost:8080/proxy-aoo/services/AooSilWS"/>
        </wsdl:port>
    </wsdl:service>
</wsdl:definitions>