wsdl - Wrap function parameters complexType in an element -


i trying implement existing webservice spyne. have function takes 2 parameters, wsdl should this:

<wsdl:types>   <xs:schema targetnamespace="http://example.com/" elementformdefault="qualified" >     <s:element name="getdata">       <s:complextype>         <s:sequence>           <s:element minoccurs="0" maxoccurs="1" name="login" type="s:string"/>           <s:element minoccurs="0" maxoccurs="1" name="password" type="s:string"/>         </s:sequence>       </s:complextype>     </s:element> [...] 

my code contains following decorator function:

@rpc(string(min_occurs=0, max_occurs=1, nillable=false),      string(min_occurs=0, max_occurs=1, nillable=false),      _returns=unicode) def getdata(self, login, password):      return 'data' 

which produces wsdl:

<wsdl:types>     <xs:schema elementformdefault="qualified" targetnamespace="http://example.com/">         <xs:complextype name="getdata">             <xs:sequence>                 <xs:element minoccurs="0" name="login" type="xs:string" />                 <xs:element minoccurs="0" name="password" type="xs:string" />             </xs:sequence>         </xs:complextype> [...] 

so instead of element containing complextype have bare complextype. difference causes issues clients compatible existing implementation. there way wrap complextype in element using spyne?

spyne's wsdl should contain both:

<xs:complextype name="getdata"> (...) </xs:complextype> 

and

<s:element name="getdata" type="tns:getdata"> 

having complextype inside element equivalent having outside proper referral this, parser should able cope both forms.

if don't have control on client, that's case in such situations, have no option patch spyne. if want go route, please join spyne ml (http://lists.spyne.io/listinfo/people) can talk.


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -