Skip to content

Commit

Permalink
Fix interoperability issues with .NET WSDL parser.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamie Kirkpatrick committed Jul 14, 2009
1 parent f4d99c3 commit 9332ff4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions soaplib/serializers/primitive.py
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ def to_xml(self,values,name='retval',nsmap=ns):
typ = self.get_datatype(nsmap)
if values == None:
values = []
res.set(nsmap.get('xsi') + 'type',
res.set('type',
"%s:%s" % (self.get_namespace_id(), self.get_datatype()))
for value in values:
serializer = self.serializer
Expand Down Expand Up @@ -441,14 +441,14 @@ def add_to_schema(self,schema_dict,nsmap):
sequenceNode, nsmap.get('xs') + 'element')
elementNode.set('minOccurs','0')
elementNode.set('maxOccurs','unbounded')
elementNode.set(nsmap.get('xsi') + 'type',
elementNode.set('type',
"%s:%s" % (self.namespace_id, self.serializer.get_datatype()))
elementNode.set('name',self.serializer.get_datatype())

typeElement = create_xml_element(
nsmap.get('xs') + 'element', nsmap)
typeElement.set('name',typ)
typeElement.set(nsmap.get('xsi') + 'type',
typeElement.set('type',
"%s:%s" % (self.namespace_id, self.get_datatype()))

schema_dict['%sElement'%(self.get_datatype(nsmap))] = typeElement
Expand Down

0 comments on commit 9332ff4

Please sign in to comment.