From: Joshua B. <jrb...@lb...> - 2007-10-19 21:20:42
|
The getters, setters and factory methods are all created by a metaclass from ZSI.generate.pyclass import pyclass_type So you could use this by simply declaring as the metaclass of your classes. class MyContainer: typecode = TC.ComplexType(.....) __metaclass__ = pyclass_type I'm not sure how straightforward this is. Test in an interpreter and use help to view the classes. -josh On Oct 19, 2007, at 12:58 PM, Lorena Carlo wrote: > I use this option: > > wsdl2py -bu http://www.webservicex.net/globalweather.asmx?WSDL > > And it generate the stub files, which I do not want to generate. I > only > want to use the getters/setters and factory methods for the complex > datatypes that ZSI provides but without generating the stubs, is this > possible?. Can you give me some clue of how to do this with ZSI?. > > Thanks! > > Lorena > > Martin Weigele wrote: >> Am Montag, 8. Oktober 2007 22:08 schrieb Lorena Carlo: >> >>> Hello, >>> >>> Does anybody knows a way to not use the files that ZSI generates in >>> order to be able to get and send data to web services that have >>> complex >>> types. For example getting the information of the complex type's >>> data >>> structure in runtime directly from the web service. Is this >>> possible in >>> ZSI?. >>> >> >> Yes it is possible. Just use the wsdl2py -b <wsdl-spec> option for >> complex >> types as in the documentation. >> >> However, "complex" complex types do not always work with existing >> third party >> servers. I have not yet been able to find out exactly when and why. >> >> Regards Martin >> >>> Thanks, >>> >>> Lorena >>> >>> -------------------------------------------------------------------- >>> ----- >>> This SF.net email is sponsored by: Splunk Inc. >>> Still grepping through log files to find problems? Stop. >>> Now Search log events and configuration files using AJAX and a >>> browser. >>> Download your FREE copy of Splunk now >> http://get.splunk.com/ >>> _______________________________________________ >>> Pywebsvcs-talk mailing list >>> Pyw...@li... >>> https://lists.sourceforge.net/lists/listinfo/pywebsvcs-talk >>> Also archived at http://groups.google.com/group/pywebsvcs >>> >> >> --------------------------------------------------------------------- >> ---- >> This SF.net email is sponsored by: Splunk Inc. >> Still grepping through log files to find problems? Stop. >> Now Search log events and configuration files using AJAX and a >> browser. >> Download your FREE copy of Splunk now >> http://get.splunk.com/ >> _______________________________________________ >> Pywebsvcs-talk mailing list >> Pyw...@li... >> https://lists.sourceforge.net/lists/listinfo/pywebsvcs-talk >> Also archived at http://groups.google.com/group/pywebsvcs >> > > > ---------------------------------------------------------------------- > --- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a > browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Pywebsvcs-talk mailing list > Pyw...@li... > https://lists.sourceforge.net/lists/listinfo/pywebsvcs-talk > Also archived at http://groups.google.com/group/pywebsvcs |