Retrieve WSDL from WebService NFe ASMX

0

How do I retrieve the WSDL from this service: link

I need the WSDL to add it by Netbeans, there I can only add the WSDL and this is final asmx.

EDIT :

My CLasse looks like this:

String nfeCabecMsg = "<nfeCabecMsg xmlns=\"http://www.portalfiscal.inf.br/nfe/wsdl/NfeStatusServico2\">\n"
            + "\n"
            + "<cUF>35</cUF>\n"
            + "\n"
            + "<versaoDados>2.01</versaoDados>\n"
            + "\n"
            + "</nfeCabecMsg>";

String nfeDadosMsg = "<nfeDadosMsg xmlns=\"http://www.portalfiscal.inf.br/nfe/wsdl/NfeStatusServico2\" versao=\"2.00\">\n"
            + "\n"
            + "<consStatServ xmlns=\"http://www.portalfiscal.inf.br/nfe\" versao=\"2.00\">\n"
            + "\n"
            + "<tpAmb>1</tpAmb>\n"
            + "\n"
            + "<cUF>35</cUF>\n"
            + "\n"
            + "<xServ>STATUS</xServ>\n"
            + "\n"
            + "</consStatServ>\n"
            + "\n"
            + "</nfeDadosMsg>";

String teste = new CadConsultaCadastro().getCadConsultaCadastroSoap().consultaCadastro(nfeCabecMsg, nfeDadosMsg);

Error:

error: package br.inf.portalfiscal.nfe.wsdl.cadconsultacadastro does not exist
import br.inf.portalfiscal.nfe.wsdl.cadconsultacadastro.CadConsultaCadastro;

Why are you giving this error?

    
asked by anonymous 10.02.2016 / 19:29

1 answer

1

By default services published with ASMX leave the WSDL accessible on a URL ending with ?wsdl , then you can access the WSDL by adding ?wsdl of this url, something like this:

link

This means that you are prompting the server to generate and return the WSDL for you if this has not been disabled on the server.

Some servers also publish WSDL directly, but it is totally dependent on the implementation / configuration, you can also try something like .

Another thing: this seems to be the event reception service of the state of São Paulo. You can download all WSDLs directly from the site, here . In addition, the service contract is the same for all UFs, changing, for some, only the address of the service. If you can not directly access or download, you can try some other: werbservices interface

Q: I do not have a digital certificate to validate access here, see if you can and confirm me:)

    
10.02.2016 / 19:50