Boa tarde.
Estou desenvolvendo a parte de consultas de dfe no meu sistema.
E não consigo efetuar a consulta através do wsdl NFeDistribuicaoDFe
Ele está gerando bem certinho o xml e tudo, mas não sei o que acontece…
o envelope final de envio está assim
---[HTTP request - https://hom.nfe.fazenda.gov.br/NFeDistribuicaoDFe/NFeDistribuicaoDFe.asmx]---
Accept: [application/soap+xml, multipart/related]
Content-Type: [application/soap+xml; charset=utf-8;action="http://www.portalfiscal.inf.br/nfe/wsdl/NFeDistribuicaoDFe/nfeDistDFeInteresse"]
User-Agent: [JAX-WS RI 2.2.4-b01]
<?xml version="1.0" ?><S:Envelope xmlns:S="http://www.w3.org/2003/05/soap-envelope"><S:Header><nfeCabecMsg xmlns="http://www.portalfiscal.inf.br/nfe/wsdl/NFeDistribuicaoDFe"><cUF>43</cUF><versaoDados>1.00</versaoDados></nfeCabecMsg></S:Header><S:Body><nfeDadosMsg xmlns="http://www.portalfiscal.inf.br/nfe/wsdl/NFeDistribuicaoDFe"><distDFeInt versao="1.00" xmlns="http://www.portalfiscal.inf.br/nfe"><tpAmb>2</tpAmb><cUFAutor>RS</cUFAutor><CNPJ>cnpjdaempresa</CNPJ><distNSU><ultNSU>000000000000001</ultNSU></distNSU></distDFeInt></nfeDadosMsg></S:Body></S:Envelope>--------------------
porém está retornando isto
---[HTTP response - https://hom.nfe.fazenda.gov.br/NFeDistribuicaoDFe/NFeDistribuicaoDFe.asmx - 500]---
null: [HTTP/1.1 500 Internal Server Error]
Cache-Control: [private]
Content-Length: [508]
Content-Type: [application/soap+xml; charset=utf-8]
Date: [Mon, 16 Feb 2015 17:50:52 GMT]
Server: [Microsoft-IIS/6.0]
X-AspNet-Version: [2.0.50727]
X-Powered-By: [ASP.NET]
<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><soap:Fault><soap:Code><soap:Value>soap:Receiver</soap:Value></soap:Code><soap:Reason><soap:Text xml:lang="en">Server was unable to process request. ---> Object reference not set to an instance of an object.</soap:Text></soap:Reason><soap:Detail /></soap:Fault></soap:Body></soap:Envelope>--------------------
javax.xml.ws.soap.SOAPFaultException: Server was unable to process request. ---> Object reference not set to an instance of an object.
Alguém tem idéia do que pode ser? Já testei e tentei de tudo mas não consigo achar uma alternativa