Hello

I'm new to soaplib and web services (which means possible stupid
question ahead ;-) ).

I'm having a problem with soaplib. I've the following function
provided by a web service :

@soap(Integer, Integer, _returns=Integer)
def test(self, n1, n2):
    return n1 + n2

The corresponding declaration for the datatypes in the generated WSDL file is

<xs:complexType name="test">
  <xs:sequence>
    <xs:element name="n1" type="xs:integer" minOccurs="0" nillable="true"/>
    <xs:element name="n2" type="xs:integer" minOccurs="0" nillable="true"/>
  </xs:sequence>
</xs:complexType>
<xs:complexType> name="testResponse">
  <xs:sequence>
    <xs:element name="testResult" type="xs:integer" minOccurs="0"
nillable="true"/>
  </xs:sequence>
</xs:complexType>

When I use some IDE (Visual Studio, PowerBuilder) to generate code
from that WSDL file, whatever the IDE, it generates two classes for
test and for testResponse, whose attributes are Strings.

Does anyone know if I can tweak my Python declaration so that I avoid
complexType and obtain real Integer datatype on my client side ?


Thanks



--
Stéphan
_______________________________________________
Soap mailing list
[email protected]
http://mail.python.org/mailman/listinfo/soap

Reply via email to