Skip to content

Commit

Permalink
add generated python soap files
Browse files Browse the repository at this point in the history
xsdata generate -fs all --package nfelib.nfe.soap nfelib/nfe/wsdl/*
  • Loading branch information
rvalyi committed Jun 6, 2023
1 parent a5cdc76 commit 6cd622e
Show file tree
Hide file tree
Showing 8 changed files with 1,118 additions and 0 deletions.
Empty file added nfelib/nfe/soap/__init__.py
Empty file.
135 changes: 135 additions & 0 deletions nfelib/nfe/soap/cadconsultacadastro4.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
from dataclasses import dataclass, field
from typing import List, Optional

__NAMESPACE__ = "http://www.portalfiscal.inf.br/nfe/wsdl/CadConsultaCadastro4"


@dataclass
class NfeDadosMsg:
class Meta:
name = "nfeDadosMsg"
namespace = "http://www.portalfiscal.inf.br/nfe/wsdl/CadConsultaCadastro4"

content: List[object] = field(
default_factory=list,
metadata={
"type": "Wildcard",
"namespace": "##any",
"mixed": True,
}
)


@dataclass
class NfeResultMsg:
class Meta:
name = "nfeResultMsg"
nillable = True
namespace = "http://www.portalfiscal.inf.br/nfe/wsdl/CadConsultaCadastro4"

content: List[object] = field(
default_factory=list,
metadata={
"type": "Wildcard",
"namespace": "##any",
"mixed": True,
}
)


@dataclass
class CadConsultaCadastro4SoapConsultaCadastroInput:
class Meta:
name = "Envelope"
namespace = "http://schemas.xmlsoap.org/soap/envelope/"

body: Optional["CadConsultaCadastro4SoapConsultaCadastroInput.Body"] = field(
default=None,
metadata={
"name": "Body",
"type": "Element",
}
)

@dataclass
class Body:
nfeDadosMsg: Optional[NfeDadosMsg] = field(
default=None,
metadata={
"type": "Element",
"namespace": "http://www.portalfiscal.inf.br/nfe/wsdl/CadConsultaCadastro4",
}
)


@dataclass
class CadConsultaCadastro4SoapConsultaCadastroOutput:
class Meta:
name = "Envelope"
namespace = "http://schemas.xmlsoap.org/soap/envelope/"

body: Optional["CadConsultaCadastro4SoapConsultaCadastroOutput.Body"] = field(
default=None,
metadata={
"name": "Body",
"type": "Element",
}
)

@dataclass
class Body:
nfeResultMsg: Optional[NfeResultMsg] = field(
default=None,
metadata={
"type": "Element",
"namespace": "http://www.portalfiscal.inf.br/nfe/wsdl/CadConsultaCadastro4",
"nillable": True,
}
)
fault: Optional["CadConsultaCadastro4SoapConsultaCadastroOutput.Body.Fault"] = field(
default=None,
metadata={
"name": "Fault",
"type": "Element",
}
)

@dataclass
class Fault:
faultcode: Optional[str] = field(
default=None,
metadata={
"type": "Element",
"namespace": "",
}
)
faultstring: Optional[str] = field(
default=None,
metadata={
"type": "Element",
"namespace": "",
}
)
faultactor: Optional[str] = field(
default=None,
metadata={
"type": "Element",
"namespace": "",
}
)
detail: Optional[str] = field(
default=None,
metadata={
"type": "Element",
"namespace": "",
}
)


class CadConsultaCadastro4SoapConsultaCadastro:
style = "document"
location = "https://cad-homologacao.svrs.rs.gov.br/ws/cadconsultacadastro/cadconsultacadastro4.asmx"
transport = "http://schemas.xmlsoap.org/soap/http"
soapAction = "http://www.portalfiscal.inf.br/nfe/wsdl/CadConsultaCadastro4/consultaCadastro"
input = CadConsultaCadastro4SoapConsultaCadastroInput
output = CadConsultaCadastro4SoapConsultaCadastroOutput
Loading

0 comments on commit 6cd622e

Please sign in to comment.