Ejemplo n.º 1
0
)

################################################################################
# SOAP Service

StorageLogisticsService_Port_SERVICE = soap.Service(
    name='StorageLogisticsService_Port',
    targetNamespace='http://ESSArch_Instance.ra.se/StorageLogisticsService',
    location='%(scheme)s://%(host)s/webservice/StorageLogisticsService',
    #location='http://ESSArch_Instance.ra.se/webservice/StorageLogisticsService',
    schema=Schema_55b49,
    version=soap.SOAPVersion.SOAP11,
    methods=[storagelogistics_method],
)

################################################################################
# Django Dispatch

# Uncomment these lines to turn on dispatching:
from django.views.decorators.csrf import csrf_exempt
dispatch = csrf_exempt(
    soap.get_django_dispatch(StorageLogisticsService_Port_SERVICE))

# Put these lines in the urls.py file of your Django project/application:
#urlpatterns += patterns('',
#    (r'^webservice/StorageLogisticsService$', '<module>.dispatch'),
#)

################################################################################
# vim:et:ft=python:nowrap:sts=4:sw=4:ts=4
Ejemplo n.º 2
0
    methods=[get_stock_price_method])


SERVICE12 = soap.Service(
    # WSDL targetNamespce
    name="StockService",
    targetNamespace="http://code.google.com/p/soapbox/stock.wsdl",
    version=SOAPVersion.SOAP12,
    # The url where request should be sent.
    location="http://127.0.0.1:8000/stock/soap12",
    schema=Schema,
    methods=[get_stock_price_method])


from django.views.decorators.csrf import csrf_exempt
dispatch11 = csrf_exempt(soap.get_django_dispatch(SERVICE11))
dispatch12 = csrf_exempt(soap.get_django_dispatch(SERVICE12))

#-------------------------------------------------------------------------------
#This was was generated by wsdl2py, try to not edit.


class Pilot(xsd.String):
    enumeration = ["CAPTAIN", "FIRST_OFFICER"]


class Airport(xsd.ComplexType):
    INHERITANCE = None
    INDICATOR = xsd.Sequence
    code_type = xsd.Element(xsd.String(enumeration=["ICAO", "IATA", "FAA"]))
    code = xsd.Element(xsd.String)
Ejemplo n.º 3
0
################################################################################
# SOAP Service


StorageLogisticsService_Port_SERVICE = soap.Service(
    name='StorageLogisticsService_Port',
    targetNamespace='http://ESSArch_Instance.ra.se/StorageLogisticsService',
    location='%(scheme)s://%(host)s/webservice/StorageLogisticsService',
    #location='http://ESSArch_Instance.ra.se/webservice/StorageLogisticsService',
    schema=Schema_55b49,
    version=soap.SOAPVersion.SOAP11,
    methods=[storagelogistics_method],
)


################################################################################
# Django Dispatch


# Uncomment these lines to turn on dispatching:
from django.views.decorators.csrf import csrf_exempt
dispatch = csrf_exempt(soap.get_django_dispatch(StorageLogisticsService_Port_SERVICE))

# Put these lines in the urls.py file of your Django project/application:
#urlpatterns += patterns('',
#    (r'^webservice/StorageLogisticsService$', '<module>.dispatch'),
#)

################################################################################
# vim:et:ft=python:nowrap:sts=4:sw=4:ts=4