Archived
This project has been archived by its maintainers, and is no longer receiving any updates.
pyramid_soap
The pyramid_soap package adapts Soapbox for pyramid framework, to build SOAP Web Services.
Source code at https://bitbucket.org/artgins/pyramid_soap
Example
from pyramid_soap import SOAPService, SOAPVersion, xsd
class 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=[GetStockPrice, StockPrice],
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)
License
pyramid_soap is released under terms of The MIT License MIT.
Copyright (c) 2012, Ginés Martínez Sánchez <ginsmar@artgins.com>
Release files for pyramid_soap 0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyramid_soap-0.2.tar.gz | 7.5 kB | Details |
Release files / pyramid_soap-0.2.tar.gz
| Download URL | pyramid_soap-0.2.tar.gz |
|---|---|
| Size | 7.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
accb6b79245c4b48d8022323d3da6dcf3797e2b1d173d8933d87d1ef1394c4a9
|
|
BLAKE2b-256 checksum How to use checksums |
e40f10005940cf2f89f4d70abef40791c9e7a410b68d51dfb3e26d774cb26191
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |