RosesDurden / pysimplesoap

Automatically exported from code.google.com/p/pysimplesoap
0 stars 0 forks source link

messages with both complex and simple element #129

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
When a message has both simple and complex elements, wsdl is not read right:
sometimes the operation is built with only simple elements, sometimes with only 
complex elements. 
The randomness is due I thunk to the helpers.get_message function.

From http://62.94.212.138:8081/teca/services/tecaServer?wsdl:
<wsdl:message name="contaVolumiRequest">
 <wsdl:part name="user_id" type="xsd:int"/>
 <wsdl:part name="valoreIndice" type="impl:ArrayOf_xsd_string"/>
</wsdl:message>

url = 'http://62.94.212.138:8081/teca/services/tecaServer?wsdl'
c = SoapClient(wsdl=url, soap_server='axis')
c.services['WsTecaServerService']['ports']['tecaServer'][
    'operations']['contaVolumi']['input']
# is sometimes
{'contaVolumiRequest': {'user_id': <class 'int'>}}
# and sometimes
{'contaVolumiRequest': {'valoreIndice': [<class 'str'>]}}

Original issue reported on code.google.com by gaetano....@spacespa.it on 25 Dec 2013 at 9:24

GoogleCodeExporter commented 8 years ago
What version of pysimplesoap are you using?

The latest version is currently 1.11

Please download it from the repo:

https://github.com/pysimplesoap/pysimplesoap/archive/master.zip

Let us know if your issue is fixed (wsdl support was enhanced in the 
development version)

Original comment by reingart@gmail.com on 26 Dec 2013 at 6:13

GoogleCodeExporter commented 8 years ago
Tested and confirmed with the current master version.

Original comment by gaetano....@spacespa.it on 28 Dec 2013 at 10:46

GoogleCodeExporter commented 8 years ago
Thanks for testing.

Could you attach a sample wsdl and a test case?

Original comment by reingart@gmail.com on 28 Dec 2013 at 2:36

GoogleCodeExporter commented 8 years ago
Sure, here it is

Original comment by gaetano....@spacespa.it on 28 Dec 2013 at 3:13

Attachments:

GoogleCodeExporter commented 8 years ago
This issue was closed by revision abab4260417c.

Original comment by reingart@gmail.com on 22 Jan 2014 at 12:51

GoogleCodeExporter commented 8 years ago
This issue was closed by revision 90b2ce1cc360.

Original comment by reingart@gmail.com on 22 Jan 2014 at 12:51

GoogleCodeExporter commented 8 years ago
Thanks for the test, I could reproduce and commited a tentative patch.
¿Could you test to see if it is working ok?

Original comment by reingart@gmail.com on 22 Jan 2014 at 12:56

GoogleCodeExporter commented 8 years ago
Ok, wsdl is now read right.

Original comment by gaetano....@spacespa.it on 23 Jan 2014 at 1:51