0
How I recover the WSDL from this service: https://nfe.fazenda.sp.gov.br/ws/recepcaoevento.asmx
I need the WSDL to add it through Netbeans, there I can only add the WSDL and this is final asmx.
EDIT:
My class is 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 making this mistake?
hello, adding the wsdl does not work, I was able to download the file and add in the project, I started doing a test, but when I run is saying that there is no.... ai gives the following error: package br.inf.portalfiscal.nfe.wsdl.cadquery registration does not exist,;
– HimorriveL
@Himorrivel this is something else, has no relation in how to recover the WSDL. Ask another question, you edit the current one becomes totally meaningless. Basically the IDE has generated code for you that is either in a different package than what you are using, or is not in the classpath.
– Bruno César