Skip to content

Commit

Permalink
feat: Include common soap encoding schema (#1100)
Browse files Browse the repository at this point in the history
  • Loading branch information
tefra authored Dec 1, 2024
1 parent cd707c8 commit ab4dc9c
Show file tree
Hide file tree
Showing 3 changed files with 538 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/models/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ def test_create(self):
' <Substitution type="package" search="http://schemas.xmlsoap.org/wsdl/soap/" replace="soap"/>\n'
' <Substitution type="package" search="http://schemas.xmlsoap.org/wsdl/soap12/" replace="soap12"/>\n'
' <Substitution type="package" search="http://schemas.xmlsoap.org/soap/envelope/" replace="soapenv"/>\n'
' <Substitution type="package" search="http://schemas.xmlsoap.org/soap/encoding/" replace="soapenc"/>\n'
' <Substitution type="class" search="(.*)Class$" replace="\\1Type"/>\n'
" </Substitutions>\n"
" <Extensions/>\n"
Expand Down
1 change: 1 addition & 0 deletions xsdata/models/enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ class Namespace(Enum):
SOAP11 = ("http://schemas.xmlsoap.org/wsdl/soap/", "soap")
SOAP12 = ("http://schemas.xmlsoap.org/wsdl/soap12/", "soap12")
SOAP_ENV = ("http://schemas.xmlsoap.org/soap/envelope/", "soapenv")
SOAP_ENC = ("http://schemas.xmlsoap.org/soap/encoding/", "soapenc")

def __init__(self, uri: str, prefix: str):
self.uri = uri
Expand Down
Loading

0 comments on commit ab4dc9c

Please sign in to comment.