Hi, I am currently engaged in evaluating spyne for am educational project, facilitating this framework to create a web service provider. As far as I am aware of, having a given WSDL this has to get transferred manually into the corresponding python code?
The xml scheme would be (myconsts.csd) *~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~* <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://myservice.somewhere.net/" attributeFormDefault="unqualified" elementFormDefault="unqualified" targetNamespace="http://myservice.somewhere.net/" version="1.0”> <xs:simpleType name=“type01Spec"> <xs:restriction base="tns:token128"/> </xs:simpleType> <xs:simpleType name=“type02Spec"> <xs:restriction base="tns:token255"/> </xs:simpleType> <xs:simpleType name="token128"> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="128"/> </xs:restriction> </xs:simpleType> <xs:simpleType name="token255"> <xs:restriction base="xs:token"> <xs:minLength value="1"/> <xs:maxLength value="255"/> </xs:restriction> </xs:simpleType> </xs:schema> *~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~* and (myreqreso.xsd) *~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~* <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://myservice.somewhere.net/" xmlns:xmime="http://www.w3.org/2005/05/xmlmime" attributeFormDefault="unqualified" elementFormDefault="unqualified" targetNamespace="http://myservice.somewhere.net/" version="1.0"> <xs:import namespace="http://myservice.somewhere.net/" schemaLocation=“myconsts.xsd"/> <xs:complexType name=“type01"> <xs:attribute name=“attr01" type="tns:type01Spec" use="required"/> </xs:complexType> <xs:complexType name="type02"> <xs:attribute name="attr01" type="tns:type02Spec" use="required"/> </xs:complexType> <xs:complexType name="type03" abstract="true"> <xs:attribute name="attr01" type="tns:type01Spec" use="required"/> <xs:attribute name="attr02" type="tns:type02Spec" use="required"/> <xs:attribute name="attr03" type=“tns:type01Spec" use="required"/> <xs:attribute name="attr04" type="tns:type02Spec" use="optional"/> <xs:attribute name="attr05" type="xs:boolean" use="optional" default="true"/> <xs:attribute name="attr06" type="xs:boolean" use="optional" default="true"/> </xs:complexType> <xs:complexType name="type04"> <xs:complexContent> <xs:extension base="tns:type03"> <xs:attribute name="attr07" type="xs:boolean" use="optional" default="false"/> <xs:attribute name="attr08" type="xs:boolean" use="optional" default="false"/> </xs:extension> </xs:complexContent> </xs:complexType> <xs:complexType name="type05"> <xs:sequence> <xs:element name="attr01" type="tns:type01"/> <xs:element name="attr02" type="tns:type02" minOccurs="1" maxOccurs="unbounded"/> <xs:element name="attr03" type="tns:type04"/> </xs:sequence> <xs:attribute name="attr04" type="xs:boolean" use="optional" default="true"/> </xs:complexType> </xs:schema> *~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~* Being pretty new to web services & soap myself I’m wondering how the corresponding python code would be looking like. Best, Anno _______________________________________________ Soap mailing list [email protected] https://mail.python.org/mailman/listinfo/soap
