pyramid_soapSoap for pyramid | |
Download |
pyramid_soap Ranking & Summary
Advertisement
- License:
- MIT/X Consortium Lic...
- Price:
- FREE
- Publisher Name:
- Gines Martinez Sanchez
- Publisher web site:
- http://ginsfsm.org
pyramid_soap Tags
pyramid_soap Description
pyramid_soap is a package that adapts Soapbox for pyramid framework, to build SOAP Web Services.Source code at https://bitbucket.org/artgins/pyramid_soapExamplefrom pyramid_soap import SOAPService, SOAPVersion, xsdclass GetStockPrice(xsd.ComplexType): company = xsd.Element(xsd.String, minOccurs=1) hora = xsd.Element(xsd.String)class StockPrice(xsd.ComplexType): price = xsd.Element(xsd.Integer)Schema = xsd.Schema( #Should be unique URL, can be any string. targetNamespace="http://127.0.0.1:8000/utsx/pid.xsd", #Register all complex types to schema. complexTypes=, elements={ "getStockPrice": xsd.Element(GetStockPrice), "stockPrice": xsd.Element(StockPrice) })soap_hello = SOAPService( targetNamespace="http://127.0.0.1:8000/utsx/pid.wsdl", location="http://127.0.0.1:8000/utsx", path="/utsx", schema=Schema, version=SOAPVersion.SOAP11)@soap_hello.api(soapAction="GetStockPrice", input="getStockPrice", output="stockPrice", operationName="GetStockPrice")def get_stock_price(request, gsp): print gsp.company print gsp.hora return StockPrice(price=139)Product's homepage
pyramid_soap Related Software