Skip to content

Commit bf72565

Browse files
committed
soaplib/service.py - correctly place the schema attribute
1 parent fb9f6ab commit bf72565

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

soaplib/service.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,6 @@ def wsdl(self, url):
197197
wsaSchemaNode = create_xml_subelement(types, "schema")
198198
wsaSchemaNode.set("targetNamespace", tns+'Callback')
199199
wsaSchemaNode.set("xmlns", "http://www.w3.org/2001/XMLSchema")
200-
wsaSchemaNode.set("elementFormDefault", "qualified")
201200

202201
importNode = create_xml_subelement(wsaSchemaNode, "import")
203202
importNode.set("namespace",
@@ -326,6 +325,7 @@ def _add_schema(self, types, methods, nsmap):
326325
schemaNode = create_xml_subelement(types, "schema")
327326
schemaNode.set("targetNamespace", self.__tns__)
328327
schemaNode.set("xmlns", "http://www.w3.org/2001/XMLSchema")
328+
schemaNode.set("elementFormDefault", "qualified")
329329

330330
for xxx, node in schema_entries.items():
331331
schemaNode.append(node)

0 commit comments

Comments
 (0)