terça-feira, 29 de setembro de 2015

Webservice GNRE-PE - RECEPÇÃO - WSDL montado para conexão sem PI

  <?xml version="1.0" encoding="UTF-8"?><wsdl:definitions
targetNamespace="http://www.gnre.pe.gov.br/webservice/GnreLoteRecepcao"
xmlns:s="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
xmlns:tns="http://www.gnre.pe.gov.br/webservice/GnreLoteRecepcao"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:d="http://www.gnre.pe.gov.br">

     <wsdl:types>
   
             <s:schema xmlns:d="http://www.gnre.pe.gov.br" xmlns:s="http://www.w3.org/2001/XMLSchema"
             targetNamespace="http://www.gnre.pe.gov.br" elementFormDefault="qualified"
             attributeFormDefault="qualified">
   
               <s:complexType name="SC03">
                    <s:sequence>
                         <s:element maxOccurs="1" minOccurs="0" name="CNPJ" type="s:string"/>
                         <s:element maxOccurs="1" minOccurs="0" name="CPF"   type="s:string"/>
                    </s:sequence>
               </s:complexType>
              
               <s:complexType name="SC05">
                    <s:sequence>
                         <s:element maxOccurs="1" minOccurs="0" name="periodo" type="s:string"/>
                         <s:element maxOccurs="1" minOccurs="0" name="mes"     type="s:string"/>
                         <s:element maxOccurs="1" minOccurs="0" name="ano"     type="s:string"/>
                    </s:sequence>
               </s:complexType>

               <s:complexType name="SCampoExtra">
                    <s:sequence>
                         <s:element minOccurs="0" name="codigo" type="s:string"/>
                         <s:element minOccurs="0" name="tipo"   type="s:string"/>
                         <s:element minOccurs="0" name="valor"  type="s:string"/>
                    </s:sequence>
               </s:complexType>
              
               <s:complexType name="SC39">
                    <s:sequence>
                        <s:element minOccurs="0" maxOccurs="unbounded" name="campoExtra" type="d:SCampoExtra"/>
                    </s:sequence>
               </s:complexType>

               <s:complexType name="SDadosGNRE">
                    <s:sequence>
                         <s:element maxOccurs="1" minOccurs="1" name="c01_UfFavorecida"              type="s:string"/>
                         <s:element maxOccurs="1" minOccurs="1" name="c02_receita"                   type="s:string"/>
                         <s:element maxOccurs="1" minOccurs="1" name="c25_detalhamentoReceita"       type="s:string"/>
                         <s:element maxOccurs="1" minOccurs="0" name="c26_produto"                   type="s:string"/>
                         <s:element maxOccurs="1" minOccurs="0" name="c27_tipoIdentificacaoEmitente" type="s:string"/>
                         <s:element maxOccurs="1" minOccurs="1" name="c03_idContribuinteEmitente"    type="d:SC03"/>
                         <s:element maxOccurs="1" minOccurs="0" name="c28_tipoDocOrigem"             type="s:string"/>
                         <s:element maxOccurs="1" minOccurs="0" name="c04_docOrigem"                 type="s:string"/>
                         <s:element maxOccurs="1" minOccurs="1" name="c06_valorPrincipal"            type="s:string"/>
                         <s:element maxOccurs="1" minOccurs="1" name="c10_valorTotal"                type="s:string"/>
                         <s:element maxOccurs="1" minOccurs="1" name="c14_dataVencimento"            type="s:string"/>
                         <s:element maxOccurs="1" minOccurs="0" name="c15_convenio"                  type="s:string"/>
                         <s:element maxOccurs="1" minOccurs="0" name="c16_razaoSocialEmitente"       type="s:string"/>
                         <s:element maxOccurs="1" minOccurs="0" name="c17_inscricaoEstadualEmitente" type="s:string"/>
                         <s:element maxOccurs="1" minOccurs="0" name="c18_enderecoEmitente"          type="s:string"/>
                         <s:element maxOccurs="1" minOccurs="0" name="c19_municipioEmitente"         type="s:string"/>
                         <s:element maxOccurs="1" minOccurs="0" name="c20_ufEnderecoEmitente"        type="s:string"/>
                         <s:element maxOccurs="1" minOccurs="0" name="c21_cepEmitente"               type="s:string"/>
                         <s:element maxOccurs="1" minOccurs="0" name="c22_telefoneEmitente"          type="s:string"/>
                         <s:element maxOccurs="1" minOccurs="0" name="c34_tipoIdentificacaoDestinatario" type="s:string"/>
                         <s:element maxOccurs="1" minOccurs="0" name="c35_idContribuinteDestinatario"    type="d:SC03"/>
                         <s:element maxOccurs="1" minOccurs="0" name="c36_inscricaoEstadualDestinatario" type="s:string"/>
                         <s:element maxOccurs="1" minOccurs="0" name="c37_razaoSocialDestinatario"   type="s:string"/>
                         <s:element maxOccurs="1" minOccurs="0" name="c38_municipioDestinatario"     type="s:string"/>
                         <s:element maxOccurs="1" minOccurs="0" name="c33_dataPagamento"             type="s:string"/>
                         <s:element maxOccurs="1" minOccurs="1" name="c05_referencia"                type="d:SC05"/>
                         <s:element maxOccurs="1" minOccurs="0" name="c39_camposExtras"              type="d:SC39"/>
                    </s:sequence>
               </s:complexType>
              
               <s:complexType name="Sguias">
                    <s:sequence>
                        <s:element maxOccurs="unbounded" minOccurs="1" name="TDadosGNRE" type="d:SDadosGNRE"/>
                    </s:sequence>
               </s:complexType>              

               <s:complexType name="SLote_GNRE">
                    <s:sequence>
                        <s:element maxOccurs="1" minOccurs="1" name="guias" type="d:Sguias"/>
                    </s:sequence>
               </s:complexType>             
             
              <s:element name="TLote_GNRE" type="d:SLote_GNRE"/>

               <s:complexType name="SRecibo">
                    <s:sequence>
                         <s:element  maxOccurs="1" minOccurs="0" name="numero"             type="s:string"/>
                         <s:element  maxOccurs="1" minOccurs="0" name="dataHoraRecibo"     type="s:string"/>
                         <s:element  maxOccurs="1" minOccurs="0" name="tempoEstimadoProc" type="s:string"/>
                    </s:sequence>
               </s:complexType>
              
               <s:complexType name="SSitRec">
                    <s:sequence>
                         <s:element  maxOccurs="1" minOccurs="0" name="codigo"   type="s:string"/>
                         <s:element  maxOccurs="1" minOccurs="0" name="descricao"type="s:string"/>
                    </s:sequence>
               </s:complexType>
              
               <s:complexType name="SRetLote_GNRE">
                    <s:sequence>
                         <s:element maxOccurs="1" minOccurs="0" name="ambiente"         type="s:string"/>
                         <s:element maxOccurs="1" minOccurs="0" name="situacaoRecepcao" type="d:SSitRec"/>
                         <s:element maxOccurs="1" minOccurs="0" name="recibo"             type="d:SRecibo"/>
                    </s:sequence>
               </s:complexType>
              
            <s:element name="TRetLote_GNRE" type="d:SRetLote_GNRE"/>
             
        </s:schema>   

       
          <s:schema targetNamespace="http://www.gnre.pe.gov.br/webservice/GnreLoteRecepcao"
            elementFormDefault="unqualified"
            attributeFormDefault="unqualified"
            xmlns:s="http://www.w3.org/2001/XMLSchema"
            xmlns="http://www.gnre.pe.gov.br">
         
               <s:import namespace="http://www.gnre.pe.gov.br"/>

               <s:element name="gnreDadosMsg">
                    <s:complexType>
                         <s:sequence>
                              <s:element ref="d:TLote_GNRE"/>
                         </s:sequence>
                    </s:complexType>
               </s:element>

              
               <s:element name="processarResponse">
                    <s:complexType>
                         <s:sequence>
                              <s:element ref="d:TRetLote_GNRE"/>
                         </s:sequence>
                    </s:complexType>
               </s:element>

               <s:element name="gnreCabecMsg">
                    <s:complexType>
                         <s:sequence>
                              <s:element maxOccurs="1" minOccurs="0" name="versaoDados" type="s:string"/>
                         </s:sequence>
                    </s:complexType>
               </s:element>
          </s:schema>
     </wsdl:types>

     <wsdl:message name="processarSoapIn">
          <wsdl:part element="tns:gnreDadosMsg" name="gnreDadosMsg"/>
     </wsdl:message>

     <wsdl:message name="processarSoapOut">
          <wsdl:part element="tns:processarResponse" name="processarResponse"/>
     </wsdl:message>

     <wsdl:message name="processarSoapHeader">
          <wsdl:part element="tns:gnreCabecMsg" name="gnreCabecMsg"/>
     </wsdl:message>

     <wsdl:portType name="GnreLoteRecepcaoSoap">
          <wsdl:operation name="processar">
               <wsdl:input message="tns:processarSoapIn"/>
               <wsdl:output message="tns:processarSoapOut"/>
          </wsdl:operation>
     </wsdl:portType>

     <wsdl:binding name="GnreLoteRecepcao" type="tns:GnreLoteRecepcaoSoap">
          <soap12:binding transport="http://schemas.xmlsoap.org/soap/http"/>
          <wsdl:operation name="processar">
               <soap12:operation soapAction="http://www.gnre.pe.gov.br/webservice/GnreLoteRecepcao/processar" style="document"/>
               <wsdl:input>
                    <soap12:body use="literal"/>
                    <soap12:header message="tns:processarSoapHeader" part="gnreCabecMsg" use="literal"/>
               </wsdl:input>
               <wsdl:output>
                    <soap12:body use="literal"/>
               </wsdl:output>
          </wsdl:operation>
     </wsdl:binding>

     <wsdl:service name="GnreLoteRecepcao">
          <wsdl:port binding="tns:GnreLoteRecepcao" name="GnreLoteRecepcao">
               <soap12:address location="https://www.gnre.pe.gov.br/gnreWS/services/GnreLoteRecepcao"/>
          </wsdl:port>
     </wsdl:service>

</wsdl:definitions>

Nenhum comentário:

Postar um comentário