sei-incluirdocumento.wsdl 11.5 KB
<wsdl:definitions name="SeiWS" targetNamespace="Sei" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:xmime="http://www.w3.org/2005/05/xmlmime" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="Sei">
   <wsdl:types>
        <xsd:schema targetNamespace="Sei">
            <xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
            
            <xsd:complexType name="Procedimento">
                <xsd:all>
                <xsd:element name="IdTipoProcedimento" type="xsd:string"/>
                <xsd:element name="NumeroProtocolo" type="xsd:string" minOccurs="0"/>
                <xsd:element name="DataAutuacao" type="xsd:string" minOccurs="0"/>
                <xsd:element name="Especificacao" type="xsd:string" minOccurs="0"/>
                <xsd:element name="Assuntos" type="tns:ArrayOfAssunto"/>
                <xsd:element name="Interessados" type="tns:ArrayOfInteressado"/>
                <xsd:element name="Observacao" type="xsd:string"/>
                <xsd:element name="NivelAcesso" type="xsd:string"/>
                <xsd:element name="IdHipoteseLegal" type="xsd:string" minOccurs="0"/>
                </xsd:all>
            </xsd:complexType>
            <xsd:complexType name="ArrayOfRetornoInclusaoDocumento">
                <xsd:complexContent>
                    <xsd:restriction base="SOAP-ENC:Array">
                        <xsd:attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="tns:RetornoInclusaoDocumento[]"/>
                    </xsd:restriction>
                </xsd:complexContent>
            </xsd:complexType>
            <xsd:complexType name="RetornoGeracaoProcedimento">
                <xsd:all>
                    <xsd:element name="IdProcedimento" type="xsd:string"/>
                    <xsd:element name="ProcedimentoFormatado" type="xsd:string"/>
                    <xsd:element name="LinkAcesso" type="xsd:string"/>
                    <xsd:element name="RetornoInclusaoDocumentos" type="tns:ArrayOfRetornoInclusaoDocumento"/>
                </xsd:all>
            </xsd:complexType>
            <xsd:complexType name="Documento">
                <xsd:all>
                <xsd:element name="Tipo" type="xsd:string"/>
                <xsd:element name="IdProcedimento" type="xsd:string" minOccurs="0"/>
                <xsd:element name="ProtocoloProcedimento" type="xsd:string" minOccurs="0"/>
                <xsd:element name="IdSerie" type="xsd:string"/>
                <xsd:element name="Numero" type="xsd:string" minOccurs="0"/>
                <xsd:element name="Data" type="xsd:string" minOccurs="0"/>
                <xsd:element name="Descricao" type="xsd:string" minOccurs="0"/>
                <xsd:element name="IdTipoConferencia" type="xsd:string" minOccurs="0"/>
                <xsd:element name="Remetente" type="tns:Remetente" minOccurs="0"/>
                <xsd:element name="Interessados" type="tns:ArrayOfInteressado" minOccurs="0"/>
                <xsd:element name="Destinatarios" type="tns:ArrayOfDestinatario" minOccurs="0"/>
                <xsd:element name="Observacao" type="xsd:string" minOccurs="0"/>
                <xsd:element name="NomeArquivo" type="xsd:string" minOccurs="0"/>
                <xsd:element name="NivelAcesso" type="xsd:string" minOccurs="0"/>
                <xsd:element name="IdHipoteseLegal" type="xsd:string" minOccurs="0"/>
                <xsd:element name="Conteudo" type="xsd:string" minOccurs="0"/>
                <xsd:element name="ConteudoMTOM" type="xsd:base64Binary" xmime:expectedContentTypes="application/octet-stream" minOccurs="0"/>
                <xsd:element name="IdArquivo" type="xsd:string" minOccurs="0"/>
                <xsd:element name="Campos" type="tns:ArrayOfCampo" minOccurs="0"/>
                <xsd:element name="SinBloqueado" type="xsd:string" minOccurs="0"/>
                </xsd:all>
            </xsd:complexType>
            <xsd:complexType name="ArrayOfDocumento">
                <xsd:complexContent>
                    <xsd:restriction base="SOAP-ENC:Array">
                        <xsd:attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="tns:Documento[]"/>
                    </xsd:restriction>
                </xsd:complexContent>
            </xsd:complexType>
            <xsd:complexType name="ArrayOfProcedimentoRelacionado">
                <xsd:complexContent>
                    <xsd:restriction base="SOAP-ENC:Array">
                        <xsd:attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="xsd:string[]"/>
                    </xsd:restriction>
                </xsd:complexContent>
            </xsd:complexType>
            <xsd:complexType name="ArrayOfIdUnidade">
                <xsd:complexContent>
                    <xsd:restriction base="SOAP-ENC:Array">
                        <xsd:attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="xsd:string[]"/>
                    </xsd:restriction>
                </xsd:complexContent>
            </xsd:complexType>
            <xsd:complexType name="Remetente">
                <xsd:all>
                <xsd:element name="Sigla" type="xsd:string"/>
                <xsd:element name="Nome" type="xsd:string"/>
                </xsd:all>
            </xsd:complexType>
            <xsd:complexType name="Interessado">
                <xsd:all>
                <xsd:element name="Sigla" type="xsd:string"/>
                <xsd:element name="Nome" type="xsd:string"/>
                </xsd:all>
            </xsd:complexType>            
            <xsd:complexType name="Destinatario">
                <xsd:all>
                <xsd:element name="Sigla" type="xsd:string"/>
                <xsd:element name="Nome" type="xsd:string"/>
                </xsd:all>
            </xsd:complexType>   
            <xsd:complexType name="Assunto">
                <xsd:all>
                <xsd:element name="CodigoEstruturado" type="xsd:string"/>
                <xsd:element name="Descricao" nillable="true" type="xsd:string"/>
                </xsd:all>
            </xsd:complexType>
            <xsd:complexType name="ArrayOfAssunto">
                <xsd:complexContent>
                <xsd:restriction base="SOAP-ENC:Array">
                    <xsd:attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="tns:Assunto[]"/>
                </xsd:restriction>
                </xsd:complexContent>
            </xsd:complexType>                
            <xsd:complexType name="Campo">
                <xsd:all>
                <xsd:element name="Nome" type="xsd:string"/>
                <xsd:element name="Valor" type="xsd:string"/>
                </xsd:all>
            </xsd:complexType>    
            <xsd:complexType name="ArrayOfCampo">
                <xsd:complexContent>
                <xsd:restriction base="SOAP-ENC:Array">
                    <xsd:attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="tns:Campo[]"/>
                </xsd:restriction>
                </xsd:complexContent>
            </xsd:complexType>                      
            <xsd:complexType name="ArrayOfDestinatario">
                <xsd:complexContent>
                <xsd:restriction base="SOAP-ENC:Array">
                    <xsd:attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="tns:Destinatario[]"/>
                </xsd:restriction>
                </xsd:complexContent>
            </xsd:complexType>                                  
            <xsd:complexType name="ArrayOfInteressado">
                <xsd:complexContent>
                <xsd:restriction base="SOAP-ENC:Array">
                    <xsd:attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="tns:Interessado[]"/>
                </xsd:restriction>
                </xsd:complexContent>
            </xsd:complexType>  
         <xsd:complexType name="RetornoInclusaoDocumento">
            <xsd:all>
               <xsd:element name="IdDocumento" type="xsd:string"/>
               <xsd:element name="DocumentoFormatado" type="xsd:string"/>
               <xsd:element name="LinkAcesso" type="xsd:string"/>
            </xsd:all>
         </xsd:complexType>                                                        
        </xsd:schema>
   </wsdl:types>

   <wsdl:message name="gerarProcedimentoRequest">
      <wsdl:part name="SiglaSistema" type="xsd:string"/>
      <wsdl:part name="IdentificacaoServico" type="xsd:string"/>
      <wsdl:part name="IdUnidade" type="xsd:string"/>
      <wsdl:part name="Procedimento" type="tns:Procedimento"/>
      <wsdl:part name="Documentos" type="tns:ArrayOfDocumento"/>
      <wsdl:part name="ProcedimentosRelacionados" type="tns:ArrayOfProcedimentoRelacionado"/>
      <wsdl:part name="UnidadesEnvio" type="tns:ArrayOfIdUnidade"/>
      <wsdl:part name="SinManterAbertoUnidade" type="xsd:string"/>
      <wsdl:part name="SinEnviarEmailNotificacao" type="xsd:string"/>
      <wsdl:part name="DataRetornoProgramado" type="xsd:string"/>
      <wsdl:part name="DiasRetornoProgramado" type="xsd:string"/>
      <wsdl:part name="SinDiasUteisRetornoProgramado" type="xsd:string"/>
      <wsdl:part name="IdMarcador" type="xsd:string"/>
      <wsdl:part name="TextoMarcador" type="xsd:string"/>
   </wsdl:message>
   <wsdl:message name="gerarProcedimentoResponse">
      <wsdl:part name="parametros" type="tns:RetornoGeracaoProcedimento"/>
   </wsdl:message>  

    <wsdl:message name="incluirDocumentoRequest">
        <wsdl:part name="SiglaSistema" type="xsd:string"/>
        <wsdl:part name="IdentificacaoServico" type="xsd:string"/>
        <wsdl:part name="IdUnidade" type="xsd:string"/>
        <wsdl:part name="Documento" type="tns:Documento"/>
    </wsdl:message>
    <wsdl:message name="incluirDocumentoResponse">
        <wsdl:part name="parametros" type="tns:RetornoInclusaoDocumento"/>
    </wsdl:message>

    <wsdl:portType name="SeiPortType">
        <wsdl:operation name="gerarProcedimento">
            <wsdl:documentation>Geracao de processos</wsdl:documentation>
            <wsdl:input message="tns:gerarProcedimentoRequest"/>
            <wsdl:output message="tns:gerarProcedimentoResponse"/>
        </wsdl:operation>    
        <wsdl:operation name="incluirDocumento">
            <wsdl:documentation>Geracao de documentos</wsdl:documentation>
            <wsdl:input message="tns:incluirDocumentoRequest"/>
            <wsdl:output message="tns:incluirDocumentoResponse"/>
        </wsdl:operation>    
    </wsdl:portType>
    <wsdl:binding name="SeiBinding" type="tns:SeiPortType">
        <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
        <wsdl:operation name="gerarProcedimento">
            <soap:operation soapAction="SeiAction"/>
            <wsdl:input>
                <soap:body namespace="Sei" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
            </wsdl:input>
            <wsdl:output>
                <soap:body namespace="Sei" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
            </wsdl:output>
        </wsdl:operation>
        <wsdl:operation name="incluirDocumento">
         <soap:operation soapAction="SeiAction"/>
         <wsdl:input>
            <soap:body namespace="Sei" use="literal"/>
         </wsdl:input>
         <wsdl:output>
            <soap:body namespace="Sei" use="literal"/>
         </wsdl:output>
      </wsdl:operation>
    </wsdl:binding>
   <wsdl:service name="SeiService">
      <wsdl:port name="SeiPortService" binding="tns:SeiBinding">
         <soap:address location="https://seitreina.nuvem.gov.br/sei/ws/SeiWS.php"/>
      </wsdl:port>
   </wsdl:service>
</wsdl:definitions>