none
Erro ao gerar classe proxy nota fiscal eletronica RRS feed

  • Pergunta

  • Quando tento gerar a classe ou web reference, dá o seguinte erro:

    Item de esquema 'complexType' nomeado 'TRetConsStatServ' do espaço para nome 'http://www.portalfiscal.inf.br/nfe/wsdl/NfeStatusServico2'
    - Valor 'xmlns' não pode ser usado como o nome de uma declaração de atributo.

     

    Alguém sabe me explicar oq tá errado?

     

    Segue o wsdl:

    <?xml version="1.0" encoding="UTF-8"?>
    <wsdl:definitions name="NfeStatusServico2" targetNamespace="http://www.portalfiscal.inf.br/nfe/wsdl/NfeStatusServico2" xmlns:ns1="http://cxf.apache.org/bindings/xformat" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:tns="http://www.portalfiscal.inf.br/nfe/wsdl/NfeStatusServico2" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
     <wsdl:types>
    <xs:schema attributeFormDefault="unqualified" elementFormDefault="unqualified" targetNamespace="http://www.portalfiscal.inf.br/nfe/wsdl/NfeStatusServico2" xmlns="http://www.portalfiscal.inf.br/nfe/wsdl/NfeStatusServico2" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:element name="retConsStatServ" nillable="true" type="TRetConsStatServ"/>
    <xs:complexType name="TRetConsStatServ">
    <xs:sequence>
    <xs:element name="tpAmb" type="xs:string"/>
    <xs:element name="verAplic" type="xs:string"/>
    <xs:element name="cStat" type="xs:string"/>
    <xs:element name="xMotivo" type="xs:string"/>
    <xs:element name="cUF" type="xs:string"/>
    <xs:element name="dhRecbto" type="xs:anySimpleType"/>
    <xs:element minOccurs="0" name="tMed" type="xs:string"/>
    <xs:element minOccurs="0" name="dhRetorno" type="xs:anySimpleType"/>
    <xs:element minOccurs="0" name="xObs" type="xs:string"/>
    </xs:sequence>
    <xs:attribute name="versao" type="xs:string" use="required"/>
    <xs:attribute name="xmlns" type="xs:string" use="required"/>
    </xs:complexType>
    <xs:complexType name="TConsStatServ">
    <xs:sequence>
    <xs:element name="tpAmb" type="xs:string"/>
    <xs:element name="cUF" type="xs:string"/>
    <xs:element name="xServ" type="xs:string"/>
    </xs:sequence>
    <xs:attribute name="versao" type="xs:string" use="required"/>
    </xs:complexType>
    <xs:element name="nfeDadosMsg" nillable="true"/>
    <xs:element name="nfeCabecMsg" nillable="true"/>
    <xs:element name="nfeStatusServicoNF2Result" nillable="true"/>
    </xs:schema>
    <xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://www.portalfiscal.inf.br/nfe/wsdl/NfeStatusServico2" xmlns:tns="http://www.portalfiscal.inf.br/nfe/wsdl/NfeStatusServico2" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:import namespace="http://www.portalfiscal.inf.br/nfe/wsdl/NfeStatusServico2"/>
    <xs:element name="nfeCabecMsg" nillable="true" type="tns:nfeCabecMsg"/>
    <xs:element name="nfeDadosMsg">
    <xs:complexType mixed="true">
    <xs:sequence>
    <xs:any maxOccurs="unbounded" minOccurs="0" namespace="##other" processContents="lax"/>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    <xs:element name="nfeStatusServicoNF2Result" type="tns:nfeStatusServicoNF2Result"/>
    <xs:complexType mixed="true" name="nfeStatusServicoNF2Result">
    <xs:sequence>
    <xs:element maxOccurs="unbounded" minOccurs="0" ref="retConsStatServ"/>
    </xs:sequence>
    </xs:complexType>
    <xs:complexType name="nfeCabecMsg">
    <xs:sequence>
    <xs:element minOccurs="0" name="cUF" type="xs:string"/>
    <xs:element minOccurs="0" name="versaoDados" type="xs:string"/>
    </xs:sequence>
    <xs:anyAttribute namespace="##other" processContents="skip"/>
    </xs:complexType>
    </xs:schema>
     </wsdl:types>
     <wsdl:message name="nfeStatusServicoNF2">
      <wsdl:part element="tns:nfeDadosMsg" name="nfeDadosMsg">
      </wsdl:part>
      <wsdl:part element="tns:nfeCabecMsg" name="nfeCabecMsg">
      </wsdl:part>
     </wsdl:message>
     <wsdl:message name="nfeStatusServicoNF2Response">
      <wsdl:part element="tns:nfeStatusServicoNF2Result" name="nfeStatusServicoNF2Result">
      </wsdl:part>
      <wsdl:part element="tns:nfeCabecMsg" name="nfeCabecMsg">
      </wsdl:part>
     </wsdl:message>
     <wsdl:portType name="NfeStatusServico2Soap">
      <wsdl:operation name="nfeStatusServicoNF2" parameterOrder="nfeDadosMsg nfeCabecMsg">
       <wsdl:input message="tns:nfeStatusServicoNF2" name="nfeStatusServicoNF2">
      </wsdl:input>
       <wsdl:output message="tns:nfeStatusServicoNF2Response" name="nfeStatusServicoNF2Response">
      </wsdl:output>
      </wsdl:operation>
     </wsdl:portType>
     <wsdl:binding name="NfeStatusServico2SoapBinding" type="tns:NfeStatusServico2Soap">
      <soap12:binding style="document" transport="http://www.w3.org/2003/05/soap/bindings/HTTP/"/>
      <wsdl:operation name="nfeStatusServicoNF2">
       <soap12:operation soapAction="http://www.portalfiscal.inf.br/nfe/wsdl/NfeStatusServico2/nfeStatusServicoNF2" style="document"/>
       <wsdl:input name="nfeStatusServicoNF2">
        <soap12:header message="tns:nfeStatusServicoNF2" part="nfeCabecMsg" use="literal">
        </soap12:header>
        <soap12:body parts="nfeDadosMsg" use="literal"/>
       </wsdl:input>
       <wsdl:output name="nfeStatusServicoNF2Response">
        <soap12:header message="tns:nfeStatusServicoNF2Response" part="nfeCabecMsg" use="literal">
        </soap12:header>
        <soap12:body parts="nfeStatusServicoNF2Result" use="literal"/>
       </wsdl:output>
      </wsdl:operation>
     </wsdl:binding>
     <wsdl:service name="NfeStatusServico2">
      <wsdl:port binding="tns:NfeStatusServico2SoapBinding" name="NfeStatusServico2Soap">
       <soap:address location="https://hnfe.fazenda.mg.gov.br/nfe2/services/NfeStatus2"/>
      </wsdl:port>
     </wsdl:service>
    </wsdl:definitions>
    
    Agradeço a ajuda!

     

    terça-feira, 28 de setembro de 2010 16:12

Respostas

  • Olá. Parece que é necessário colocar algumas tags que não vem no WSDL da sefaz.

     

    Segue o xml final.

     

    <?xml version="1.0" encoding="utf-8"?>
    <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://www.portalfiscal.inf.br/nfe/wsdl/NfeConsulta2" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" targetNamespace="http://www.portalfiscal.inf.br/nfe/wsdl/NfeConsulta2" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
          <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Serviço destinado ao atendimento de solicitações de consulta da situação atual da NF-e na Base de Dados do Portal da Secretaria de Fazenda Estadual.</wsdl:documentation>
          <wsdl:types>
                <s:schema elementFormDefault="qualified" targetNamespace="http://www.portalfiscal.inf.br/nfe/wsdl/NfeConsulta2">
                      <s:element name="nfeDadosMsg">
                            <s:complexType mixed="true">
                                 <s:sequence>
                                       <s:any />
                                 </s:sequence>
                            </s:complexType>
                      </s:element>
                      <s:element name="nfeConsultaNF2Result">
                            <s:complexType mixed="true">
                                 <s:sequence>
                                       <s:any />
                                 </s:sequence>
                            </s:complexType>
                      </s:element>
                      <s:element name="nfeCabecMsg" type="tns:nfeCabecMsg" />
                      <s:complexType name="nfeCabecMsg">
                            <s:sequence>
                                 <s:element minOccurs="0" maxOccurs="1" name="cUF" type="s:string" />
                                 <s:element minOccurs="0" maxOccurs="1" name="versaoDados" type="s:string" />
                            </s:sequence>
                            <s:anyAttribute />
                      </s:complexType>
                </s:schema>
          </wsdl:types>
          <wsdl:message name="nfeConsultaNF2SoapIn">
                <wsdl:part name="nfeDadosMsg" element="tns:nfeDadosMsg" />
          </wsdl:message>
          <wsdl:message name="nfeConsultaNF2SoapOut">
                <wsdl:part name="nfeConsultaNF2Result" element="tns:nfeConsultaNF2Result" />
          </wsdl:message>
          <wsdl:message name="nfeConsultaNF2Soap12In">
                <wsdl:part name="nfeDadosMsg" element="tns:nfeDadosMsg" />
          </wsdl:message>
          <wsdl:message name="nfeConsultaNF2Soap12Out">
                <wsdl:part name="nfeConsultaNF2Result" element="tns:nfeConsultaNF2Result" />
          </wsdl:message>
          <wsdl:message name="nfeConsultaNF2nfeCabecMsg">
                <wsdl:part name="nfeCabecMsg" element="tns:nfeCabecMsg" />
          </wsdl:message>
          <wsdl:portType name="NfeConsulta2Soap">
                <wsdl:operation name="nfeConsultaNF2">
                      <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Consulta situação atual da NF-e</wsdl:documentation>
                      <wsdl:input message="tns:nfeConsultaNF2SoapIn" />
                      <wsdl:output message="tns:nfeConsultaNF2SoapOut" />
                </wsdl:operation>
          </wsdl:portType>
          <wsdl:portType name="NfeConsulta2Soap12">
                <wsdl:operation name="nfeConsultaNF2">
                      <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Consulta situação atual da NF-e</wsdl:documentation>
                      <wsdl:input message="tns:nfeConsultaNF2Soap12In" />
                      <wsdl:output message="tns:nfeConsultaNF2Soap12Out" />
                </wsdl:operation>
          </wsdl:portType>
          <wsdl:binding name="NfeConsulta2Soap" type="tns:NfeConsulta2Soap">
                <soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
                <wsdl:operation name="nfeConsultaNF2">
                      <soap:operation soapAction="http://www.portalfiscal.inf.br/nfe/wsdl/NfeConsulta/nfeConsultaNF2" style="document" />
                      <wsdl:input>
                            <soap:body use="literal" />
                            <soap12:header message="tns:nfeConsultaNF2nfeCabecMsg" part="nfeCabecMsg" use="literal" />
                      </wsdl:input>
                      <wsdl:output>
                            <soap:body use="literal" />
                            <soap12:header message="tns:nfeConsultaNF2nfeCabecMsg" part="nfeCabecMsg" use="literal" />
                      </wsdl:output>
                </wsdl:operation>
          </wsdl:binding>
          <wsdl:binding name="NfeConsulta2Soap12" type="tns:NfeConsulta2Soap12">
                <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" />
                <wsdl:operation name="nfeConsultaNF2">
                      <soap12:operation soapAction="http://www.portalfiscal.inf.br/nfe/wsdl/NfeConsulta2/nfeConsultaNF2" style="document" />
                      <wsdl:input>
                            <soap12:body use="literal" />
                            <soap12:header message="tns:nfeConsultaNF2nfeCabecMsg" part="nfeCabecMsg" use="literal" />
                      </wsdl:input>
                      <wsdl:output>
                            <soap12:body use="literal" />
                            <soap12:header message="tns:nfeConsultaNF2nfeCabecMsg" part="nfeCabecMsg" use="literal" />
                      </wsdl:output>
                </wsdl:operation>
          </wsdl:binding>
          <wsdl:service name="NfeConsulta2">
                <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Serviço destinado ao atendimento de solicitações de consulta da situação atual da NF-e na Base de Dados do Portal da Secretaria de Fazenda Estadual.</wsdl:documentation>
                <wsdl:port name="NfeConsulta2Soap12" binding="tns:NfeConsulta2Soap12">
                      <soap12:address location="https://homologacao.nfe.fazenda.sp.gov.br/nfeweb/services/nfeconsulta2.asmx" />
                </wsdl:port>
                <wsdl:port name="NfeConsulta2Soap" binding="tns:NfeConsulta2Soap">
                      <soap:address location="https://homologacao.nfe.fazenda.sp.gov.br/nfeweb/services/nfeconsulta2.asmx" />
                </wsdl:port>
          </wsdl:service>
    </wsdl:definitions>
    
    

     


    Vou colocar as tags separadas que foi necessário colocar.

     

    <wsdl:message name="nfeConsultaNF2SoapIn">
                <wsdl:part name="nfeDadosMsg" element="tns:nfeDadosMsg" />
          </wsdl:message>
          <wsdl:message name="nfeConsultaNF2SoapOut">
                <wsdl:part name="nfeConsultaNF2Result" element="tns:nfeConsultaNF2Result" />
          </wsdl:message>
    
    

    <wsdl:portType name="NfeConsulta2Soap">
                <wsdl:operation name="nfeConsultaNF2">
                      <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Consulta situação atual da NF-e</wsdl:documentation>
                      <wsdl:input message="tns:nfeConsultaNF2SoapIn" />
                      <wsdl:output message="tns:nfeConsultaNF2SoapOut" />
                </wsdl:operation>
          </wsdl:portType>
    
    

    <wsdl:binding name="NfeConsulta2Soap" type="tns:NfeConsulta2Soap">
                <soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
                <wsdl:operation name="nfeConsultaNF2">
                      <soap:operation soapAction="http://www.portalfiscal.inf.br/nfe/wsdl/NfeConsulta/nfeConsultaNF2" style="document" />
                      <wsdl:input>
                            <soap:body use="literal" />
                            <soap12:header message="tns:nfeConsultaNF2nfeCabecMsg" part="nfeCabecMsg" use="literal" />
                      </wsdl:input>
                      <wsdl:output>
                            <soap:body use="literal" />
                            <soap12:header message="tns:nfeConsultaNF2nfeCabecMsg" part="nfeCabecMsg" use="literal" />
                      </wsdl:output>
                </wsdl:operation>
          </wsdl:binding>
    
    

     

    <wsdl:port name="NfeConsulta2Soap" binding="tns:NfeConsulta2Soap">
                      <soap:address location="https://homologacao.nfe.fazenda.sp.gov.br/nfeweb/services/nfeconsulta2.asmx" />
                </wsdl:port>
    



    Espero ter ajudado
    Ruth Resende
    MVP, MCTS - Biztalk Server
    www.biztalkbrasil.com.br
    Twitter: @ruthresende
    terça-feira, 20 de dezembro de 2011 20:17

Todas as Respostas

  • Cara, estou com o mesmo problema....

    Já conseguiu resolver?

    Tem como me passar o caminho das pedras?

     

     

    vlw

    terça-feira, 5 de outubro de 2010 14:27
  • Estou exatamente com o mesmo Erro.

     

    Não da pra entender o que ocorre.

     

    Alguma ajuda? Obrigado.

    terça-feira, 13 de dezembro de 2011 14:58
  • Olá. Parece que é necessário colocar algumas tags que não vem no WSDL da sefaz.

     

    Segue o xml final.

     

    <?xml version="1.0" encoding="utf-8"?>
    <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://www.portalfiscal.inf.br/nfe/wsdl/NfeConsulta2" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" targetNamespace="http://www.portalfiscal.inf.br/nfe/wsdl/NfeConsulta2" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
          <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Serviço destinado ao atendimento de solicitações de consulta da situação atual da NF-e na Base de Dados do Portal da Secretaria de Fazenda Estadual.</wsdl:documentation>
          <wsdl:types>
                <s:schema elementFormDefault="qualified" targetNamespace="http://www.portalfiscal.inf.br/nfe/wsdl/NfeConsulta2">
                      <s:element name="nfeDadosMsg">
                            <s:complexType mixed="true">
                                 <s:sequence>
                                       <s:any />
                                 </s:sequence>
                            </s:complexType>
                      </s:element>
                      <s:element name="nfeConsultaNF2Result">
                            <s:complexType mixed="true">
                                 <s:sequence>
                                       <s:any />
                                 </s:sequence>
                            </s:complexType>
                      </s:element>
                      <s:element name="nfeCabecMsg" type="tns:nfeCabecMsg" />
                      <s:complexType name="nfeCabecMsg">
                            <s:sequence>
                                 <s:element minOccurs="0" maxOccurs="1" name="cUF" type="s:string" />
                                 <s:element minOccurs="0" maxOccurs="1" name="versaoDados" type="s:string" />
                            </s:sequence>
                            <s:anyAttribute />
                      </s:complexType>
                </s:schema>
          </wsdl:types>
          <wsdl:message name="nfeConsultaNF2SoapIn">
                <wsdl:part name="nfeDadosMsg" element="tns:nfeDadosMsg" />
          </wsdl:message>
          <wsdl:message name="nfeConsultaNF2SoapOut">
                <wsdl:part name="nfeConsultaNF2Result" element="tns:nfeConsultaNF2Result" />
          </wsdl:message>
          <wsdl:message name="nfeConsultaNF2Soap12In">
                <wsdl:part name="nfeDadosMsg" element="tns:nfeDadosMsg" />
          </wsdl:message>
          <wsdl:message name="nfeConsultaNF2Soap12Out">
                <wsdl:part name="nfeConsultaNF2Result" element="tns:nfeConsultaNF2Result" />
          </wsdl:message>
          <wsdl:message name="nfeConsultaNF2nfeCabecMsg">
                <wsdl:part name="nfeCabecMsg" element="tns:nfeCabecMsg" />
          </wsdl:message>
          <wsdl:portType name="NfeConsulta2Soap">
                <wsdl:operation name="nfeConsultaNF2">
                      <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Consulta situação atual da NF-e</wsdl:documentation>
                      <wsdl:input message="tns:nfeConsultaNF2SoapIn" />
                      <wsdl:output message="tns:nfeConsultaNF2SoapOut" />
                </wsdl:operation>
          </wsdl:portType>
          <wsdl:portType name="NfeConsulta2Soap12">
                <wsdl:operation name="nfeConsultaNF2">
                      <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Consulta situação atual da NF-e</wsdl:documentation>
                      <wsdl:input message="tns:nfeConsultaNF2Soap12In" />
                      <wsdl:output message="tns:nfeConsultaNF2Soap12Out" />
                </wsdl:operation>
          </wsdl:portType>
          <wsdl:binding name="NfeConsulta2Soap" type="tns:NfeConsulta2Soap">
                <soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
                <wsdl:operation name="nfeConsultaNF2">
                      <soap:operation soapAction="http://www.portalfiscal.inf.br/nfe/wsdl/NfeConsulta/nfeConsultaNF2" style="document" />
                      <wsdl:input>
                            <soap:body use="literal" />
                            <soap12:header message="tns:nfeConsultaNF2nfeCabecMsg" part="nfeCabecMsg" use="literal" />
                      </wsdl:input>
                      <wsdl:output>
                            <soap:body use="literal" />
                            <soap12:header message="tns:nfeConsultaNF2nfeCabecMsg" part="nfeCabecMsg" use="literal" />
                      </wsdl:output>
                </wsdl:operation>
          </wsdl:binding>
          <wsdl:binding name="NfeConsulta2Soap12" type="tns:NfeConsulta2Soap12">
                <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" />
                <wsdl:operation name="nfeConsultaNF2">
                      <soap12:operation soapAction="http://www.portalfiscal.inf.br/nfe/wsdl/NfeConsulta2/nfeConsultaNF2" style="document" />
                      <wsdl:input>
                            <soap12:body use="literal" />
                            <soap12:header message="tns:nfeConsultaNF2nfeCabecMsg" part="nfeCabecMsg" use="literal" />
                      </wsdl:input>
                      <wsdl:output>
                            <soap12:body use="literal" />
                            <soap12:header message="tns:nfeConsultaNF2nfeCabecMsg" part="nfeCabecMsg" use="literal" />
                      </wsdl:output>
                </wsdl:operation>
          </wsdl:binding>
          <wsdl:service name="NfeConsulta2">
                <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Serviço destinado ao atendimento de solicitações de consulta da situação atual da NF-e na Base de Dados do Portal da Secretaria de Fazenda Estadual.</wsdl:documentation>
                <wsdl:port name="NfeConsulta2Soap12" binding="tns:NfeConsulta2Soap12">
                      <soap12:address location="https://homologacao.nfe.fazenda.sp.gov.br/nfeweb/services/nfeconsulta2.asmx" />
                </wsdl:port>
                <wsdl:port name="NfeConsulta2Soap" binding="tns:NfeConsulta2Soap">
                      <soap:address location="https://homologacao.nfe.fazenda.sp.gov.br/nfeweb/services/nfeconsulta2.asmx" />
                </wsdl:port>
          </wsdl:service>
    </wsdl:definitions>
    
    

     


    Vou colocar as tags separadas que foi necessário colocar.

     

    <wsdl:message name="nfeConsultaNF2SoapIn">
                <wsdl:part name="nfeDadosMsg" element="tns:nfeDadosMsg" />
          </wsdl:message>
          <wsdl:message name="nfeConsultaNF2SoapOut">
                <wsdl:part name="nfeConsultaNF2Result" element="tns:nfeConsultaNF2Result" />
          </wsdl:message>
    
    

    <wsdl:portType name="NfeConsulta2Soap">
                <wsdl:operation name="nfeConsultaNF2">
                      <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Consulta situação atual da NF-e</wsdl:documentation>
                      <wsdl:input message="tns:nfeConsultaNF2SoapIn" />
                      <wsdl:output message="tns:nfeConsultaNF2SoapOut" />
                </wsdl:operation>
          </wsdl:portType>
    
    

    <wsdl:binding name="NfeConsulta2Soap" type="tns:NfeConsulta2Soap">
                <soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
                <wsdl:operation name="nfeConsultaNF2">
                      <soap:operation soapAction="http://www.portalfiscal.inf.br/nfe/wsdl/NfeConsulta/nfeConsultaNF2" style="document" />
                      <wsdl:input>
                            <soap:body use="literal" />
                            <soap12:header message="tns:nfeConsultaNF2nfeCabecMsg" part="nfeCabecMsg" use="literal" />
                      </wsdl:input>
                      <wsdl:output>
                            <soap:body use="literal" />
                            <soap12:header message="tns:nfeConsultaNF2nfeCabecMsg" part="nfeCabecMsg" use="literal" />
                      </wsdl:output>
                </wsdl:operation>
          </wsdl:binding>
    
    

     

    <wsdl:port name="NfeConsulta2Soap" binding="tns:NfeConsulta2Soap">
                      <soap:address location="https://homologacao.nfe.fazenda.sp.gov.br/nfeweb/services/nfeconsulta2.asmx" />
                </wsdl:port>
    



    Espero ter ajudado
    Ruth Resende
    MVP, MCTS - Biztalk Server
    www.biztalkbrasil.com.br
    Twitter: @ruthresende
    terça-feira, 20 de dezembro de 2011 20:17