Skip to content

Commit

Permalink
Merge pull request #441 from robertorp/master
Browse files Browse the repository at this point in the history
Correção CSC
  • Loading branch information
robertorp authored May 13, 2017
2 parents a99d611 + f4b6b75 commit b6ae1e2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions NFe.Wsdl/AdmCsc/NfceCsc.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@

namespace NFe.Wsdl.AdmCsc
{
[WebServiceBinding(Name = "CscNFCeBinding", Namespace = "http://www.portalfiscal.inf.br/nfe")]
[WebServiceBinding(Name = "CscNFCeBinding", Namespace = "http://www.portalfiscal.inf.br/nfe/wsdl/CscNFCe")]
public class NfceCsc : SoapHttpClientProtocol, INfeServico
{
public NfceCsc(string url, X509Certificate certificado, int timeOut)
Expand All @@ -54,11 +54,11 @@ public NfceCsc(string url, X509Certificate certificado, int timeOut)
[XmlAttribute(Namespace = "http://www.portalfiscal.inf.br/nfe/wsdl/CscNFCe")]
public nfeCabecMsg nfeCabecMsg { get; set; }

[SoapHeader("nfeCabecMsg", Direction = SoapHeaderDirection.InOut)]
[SoapDocumentMethod("http://www.portalfiscal.inf.br/nfe/wsdl/CscNFCe/admCscNFCe", Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Bare)]
[WebMethod(MessageName = "admCscNFCe")]
[return: XmlElement( "cscNFCeResult", Namespace = "http://www.portalfiscal.inf.br/nfe")]
public XmlNode Execute([XmlElement(Namespace = "http://www.portalfiscal.inf.br/nfe")] XmlNode nfeDadosMsg)
[SoapHeader("nfeCabecMsg", Direction = SoapHeaderDirection.InOut)]
[SoapDocumentMethod("http://www.portalfiscal.inf.br/nfe/wsdl/CscNFCe/admCscNFCe", Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Bare)]
[WebMethod(MessageName = "admCscNFCe")]
[return: XmlElementAttribute("cscNFCeResult", Namespace = "http://www.portalfiscal.inf.br/nfe/wsdl/CscNFCe")]
public XmlNode Execute([XmlElementAttribute(Namespace = "http://www.portalfiscal.inf.br/nfe/wsdl/CscNFCe")] XmlNode nfeDadosMsg)
{
var results = Invoke("admCscNFCe", new object[] { nfeDadosMsg });
return ((XmlNode)(results[0]));
Expand Down

0 comments on commit b6ae1e2

Please sign in to comment.