NF-e 3.10 sefaz MG How do I receive the return of the NfeAuthorizationLoteAsybc?

2

I'm trying this way (asynchronous), with the sync I also can not capture any status or return, but at least transmits the note to MG's

With NfeRecepcaoMG
    .Url = "https://nfe.fazenda.mg.gov.br/nfe2/services/NfeAutorizacao?wsdl"
    .nfeCabecMsgValue = xCabecalho2
    .Timeout = 50000
    .ClientCertificates.Add(cert)
    .SoapVersion = Web.Services.Protocols.SoapProtocolVersion.Soap12
    .NfeAutorizacaoLoteAsync(NfeRecepcaoMGmsg)
End With
    
asked by anonymous 27.03.2015 / 21:12

1 answer

1

You are not getting the Webservice return. Try the following:

Option Infer On

With NfeRecepcaoMG
    .Url = "https://nfe.fazenda.mg.gov.br/nfe2/services/NfeAutorizacao?wsdl"
    .nfeCabecMsgValue = xCabecalho2
    .Timeout = 50000
    .ClientCertificates.Add(cert)
    .SoapVersion = Web.Services.Protocols.SoapProtocolVersion.Soap12
End With

Dim retorno = NfeRecepcaoMG.NfeAutorizacaoLoteAsync(NfeRecepcaoMGmsg)
    
27.03.2015 / 21:46