Module Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Expr Str ClassDef bases AttributeLoad NameLoad attr body Assign NameStore NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body Assign NameStore NameLoad Assign NameStore ListLoad NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr NameLoad For NameStore ListLoad Num Num Num Num Num Num body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Num Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Num Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return NameLoad decorator_list Call NameLoad keyword NameLoad keyword NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Dict Num Num Num Num Num Num TupleLoad Str Num Num TupleLoad Str Num Num TupleLoad Str Num Num TupleLoad Str Num Num TupleLoad Str Num Num TupleLoad Str Num Num Assign NameStore TupleLoad NameLoad Num Num TryExcept body Assign NameStore SubscriptLoad NameLoad Index NameLoad handlers ExceptHandler body Expr NameLoad Return NameLoad decorator_list decorator_list If CompareEq NameLoad Str body Assign NameStore ListLoad TupleLoad Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr
N/A N/A tornado.httpserver N/A tornado.ioloop tornadows soaphandler tornadows webservices tornadows complextypes tornadows.soaphandler webservice N/A  This web service implements two python classes as two xml complextypes.

    THIS IS AN ALTERNATIVE IMPLEMENTATION TO ProductService.py. THIS USES 
    PYTHON TYPES FOR THE ATTRIBUTES OF THE CLASS.

    Input is a class that represents the input parameter (request) for the
    web service:

	idList : is a int python type.

    Product is a class that represents Product data structure.

	id: Is a int python type. Is the product id
	name: Is a str python type. Is the name of product. 
	price: Is a float python type. Is the price of product.
	stock: Is a int python type. Is the stock of product.

    List is a class that represents  the response of the web services.

	idList: IS a int python type. Is a id for the list.
	product: Is a python list with a set of product (Product class).

 Input N/A N/A complextypes ComplexType N/A N/A idList int N/A Product N/A N/A complextypes ComplexType N/A N/A id int N/A name str N/A price float N/A stock int N/A List N/A N/A complextypes ComplexType N/A N/A idList int N/A product N/A Product N/A ProductListService N/A N/A soaphandler SoapHandler N/A getProductList N/A N/A self input N/A N/A N/A id N/A input idList N/A listOfProduct N/A List N/A N/A listOfProduct idList id N/A i N/A 1 2 3 4 5 6 N/A N/A reg N/A N/A self database i N/A output N/A Product N/A N/A output id i N/A N/A output name N/A reg N/A 0 N/A N/A output price N/A reg N/A 1 N/A N/A output stock N/A reg N/A 2 N/A N/A N/A N/A listOfProduct product append output N/A listOfProduct N/A N/A webservice _params Input _returns List database N/A N/A self id N/A N/A N/A  This method simulates a database of products  N/A db N/A 1 2 3 4 5 6 N/A COMPUTER 1000.5 100 N/A MOUSE 10.0 300 N/A PENCIL BLUE 0.5 500 N/A PENCIL RED 0.5 600 N/A PENCIL WHITE 0.5 900 N/A HEADPHONES 15.7 500 N/A row N/A None 0.0 0 N/A N/A N/A row N/A db N/A id N/A N/A N/A N/A None N/A row N/A N/A N/A N/A __name__ __main__ N/A N/A service N/A N/A ProductListService ProductListService N/A app N/A N/A webservices WebService service N/A ws N/A N/A N/A tornado httpserver HTTPServer app N/A N/A N/A ws listen 8080 N/A N/A N/A N/A N/A N/A N/A tornado ioloop IOLoop instance start