# from django.conf.urls import patterns, url from spyne.protocol.soap import Soap11 from spyne.server.django import DjangoView from rpctest.core.views import app, HelloWorldService urlpatterns = patterns( "", url(r"^hello_world/", "core.views.hello_world_service"), url( r"^say_hello/", DjangoView.as_view( services=[HelloWorldService], tns="spyne.examples.django", in_protocol=Soap11(validator="lxml"), out_protocol=Soap11(), ), ), url( r"^say_hello_not_cached/", DjangoView.as_view( services=[HelloWorldService], tns="spyne.examples.django", in_protocol=Soap11(validator="lxml"), out_protocol=Soap11(), cache_wsdl=False, ), ), url(r"^api/", DjangoView.as_view(application=app)), )
never_cache(register_the_view_in_soap(DeleteStudent))), # parent path(r'soap_api/create_parent/', register_the_view_in_soap(CreateParent)), path(r'soap_api/search_parent/', register_the_view_in_soap(SearchParent)), path(r'soap_api/delete_parent/', register_the_view_in_soap(DeleteParent)), # teacher path(r'soap_api/create_teacher/', register_the_view_in_soap(CreateTeacher)), path(r'soap_api/search_teacher/', register_the_view_in_soap(SearchTeacher)), path(r'soap_api/delete_teacher/', register_the_view_in_soap(DeleteTeacher)), # driver path(r'soap_api/create_driver/', register_the_view_in_soap(CreateDriver)), path(r'soap_api/delete_driver/', register_the_view_in_soap(DeleteDriver)), path(r'soap_api/search_driver/', register_the_view_in_soap(SearchDriver)), path( r'soap_api/', DjangoView.as_view(services=[ CreateStudent, SearchStudent, DeleteStudent, CreateParent, SearchParent, DeleteParent, CreateTeacher, SearchTeacher, DeleteTeacher, CreateDriver, DeleteDriver, SearchDriver ], tns=API_NAME, in_protocol=Soap11(validator='lxml'), out_protocol=Soap11())), ]
from django.conf.urls import patterns, url from spyne.server.django import DjangoView from api.wxlt_service import application # from api.wxlt_service import service as wxlt_service from api.http_service import send_sms urlpatterns = patterns( 'api.views', # Examples: # url(r'^$', 'X.views.home', name='home'), # url(r'^blog/', include('blog.urls')), url(r'^get-token/(.+)/$', 'get_token'), url(r'^send-sms/$', 'send_sms'), url(r'^recv-sms/$', 'recv_sms'), url(r'^status-report/$', 'status_report'), url(r'^test/(.+)/$', 'test'), url(r'^wxlt_service/', DjangoView.as_view(application=application)), # url(r'^wxlt_service/', wxlt_service), url(r'^http_service/', send_sms), )
Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-based views 1. Add an import: from other_app.views import Home 2. Add a URL to urlpatterns: url(r'^$', Home.as_view(), name='home') Including another URLconf 1. Add an import: from blog import urls as blog_urls 2. Import the include() function: from django.conf.urls import url, include 3. Add a URL to urlpatterns: url(r'^blog/', include(blog_urls)) """ from django.conf.urls import url from spyne.protocol.soap import Soap11 from spyne.server.django import DjangoView from CRUD.views import hello_world_service, app, HelloWorldService urlpatterns = [ url(r'^hello_world/', hello_world_service), url(r'^say_hello/', DjangoView.as_view( services=[HelloWorldService], tns='spyne.examples.django', in_protocol=Soap11(validator='lxml'), out_protocol=Soap11())), url(r'^say_hello_not_cached/', DjangoView.as_view( services=[HelloWorldService], tns='spyne.examples.django', in_protocol=Soap11(validator='lxml'), out_protocol=Soap11(), cache_wsdl=False)), url(r'^api/', DjangoView.as_view(application=app)), ]
# # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE # DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY DIRECT, # INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, # BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY # OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING # NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, # EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # from django.conf.urls import patterns, url from spyne.protocol.soap import Soap11 from spyne.server.django import DjangoView from rpctest.core.views import app, HelloWorldService urlpatterns = patterns('', url(r'^hello_world/','rpctest.core.views.hello_world_service'), url(r'^say_hello/', DjangoView.as_view( services=[HelloWorldService], tns='spyne.examples.django', in_protocol=Soap11(validator='lxml'), out_protocol=Soap11())), url(r'^say_hello_not_cached/', DjangoView.as_view( services=[HelloWorldService], tns='spyne.examples.django', in_protocol=Soap11(validator='lxml'), out_protocol=Soap11(), cache_wsdl=False)), url(r'^api/', DjangoView.as_view(application=app)), )
# specific prior written permission. # # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE # DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY DIRECT, # INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, # BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY # OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING # NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, # EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # from django.conf.urls import patterns, url from spyne.protocol.soap import Soap11 from spyne.server.django import DjangoView from rpctest.core.views import app, HelloWorldService urlpatterns = patterns( '', url(r'^hello_world/', 'core.views.hello_world_service'), url( r'^say_hello/', DjangoView.as_view(services=[HelloWorldService], tns='spyne.examples.django', in_protocol=Soap11(validator='lxml'), out_protocol=Soap11())), url(r'^api/', DjangoView.as_view(application=app)), )
"""core URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.11/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-based views 1. Add an import: from other_app.views import Home 2. Add a URL to urlpatterns: url(r'^$', Home.as_view(), name='home') Including another URLconf 1. Import the include() function: from django.conf.urls import url, include 2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls')) """ from django.conf.urls import url from django.contrib import admin from spyne.protocol.soap import Soap11 from spyne.server.django import DjangoView from library.views import app urlpatterns = [ url(r'^admin/', admin.site.urls), url(r'^library/', DjangoView.as_view(application=app)), ]
from django.conf.urls import patterns, include, url from spyne.server.django import DjangoView from api.views import ResellerContractSOAP from spyne.protocol.soap import Soap11 urlpatterns = patterns( "", url( r"^wbser/", DjangoView.as_view( services=[ResellerContractSOAP], tns="ResellerContractSOAP", in_protocol=Soap11(), out_protocol=Soap11() ), ), )
from proj.pred import views urlpatterns = [ url(r'^$', views.index, name='pred.index'), url(r'^submit-seq/$', views.submit_seq, name='pred.submit_seq'), url(r'^thanks/$', views.thanks, name='pred.thanks'), url(r'^queue/$', views.get_queue, name='pred.get_queue'), url(r'^running/$', views.get_running, name='pred.get_running'), url(r'^finished/$', views.get_finished_job, name='pred.get_finished_job'), url(r'^failed/$', views.get_failed_job, name='pred.get_failed_job'), url(r'^download/$', views.download, name='pred.download'), url(r'^help-wsdl-api/$', views.help_wsdl_api, name='pred.help_wsdl_api'), url(r'^help/$', views.get_help, name='pred.get_help'), url(r'^news/$', views.get_news, name='pred.get_news'), url(r'^serverstatus/$', views.get_serverstatus, name='pred.get_serverstatus'), url(r'^reference/$', views.get_reference, name='pred.get_reference'), url(r'^example/$', views.get_example, name='pred.get_example'), url(r'^oldserver/$', views.oldserver, name='pred.oldserver'), url(r'^result/(?P<jobid>[^\/]+)/$', views.get_results, name='pred.get_results'), url(r'^result/(?P<jobid>[^\/]+)/(?P<seqindex>seq_[0-9]+)/$', views.get_results_eachseq, name='pred.get_results_eachseq'), url(r'^login/', login_required(views.login), name="pred.login"), # for spyne wsdl url(r'^api_submitseq/', DjangoView.as_view(application=views.app_submitseq)), ]
from django.conf.urls import url from django.conf.urls import patterns, include, url from django.contrib import admin from spyne.protocol.soap import Soap11 from spyne.server.django import DjangoView from packagesAdmin.views import app urlpatterns = [ url(r'^admin/', include(admin.site.urls)), url(r'^api/travelPackage', DjangoView.as_view(application=app)), ]
url(r'^get_quinielas/$', views.get_quinielas_by_provice, name='get_quinielas_by_provice'), url(r'^get_quinielas/(\d+)/$', views.get_quinielas_by_provice, name='get_quinielas_by_provice'), url(r'^lottery_time/$', views.lottery_time, name='lottery_time'), url(r'^provinces/$', views.provinces, name='provinces'), #================================ ENDQUINIELA ====================================== url(r'^extract/(\d+)/$', views.create_extract, name='extract'), url(r'^extract/(\d+)/html/$', views.extract_html, name='extract_html'), url(r'^extract_group/(\d+)/$', views.create_group_extract, name='extract_group'), url(r'^extract_group/(\d+)/html/$', views.extract_group_html, name='extract_group_html'), url(r'^faketicket/(\d+)/$', views.faketicket, name='faketicket'), url(r'^faketicket/(\d+)/html/$', views.faketicket_html, name='faketicket'), url(r'^fix/$', views.fix), #TODO! DELETE url(r'^prod2desa/$', views.prod2desa), url(r'^extract_email/(\d+)/$', views.extract_email), url(r'^extract_email/(\d+)/email$', views.extract_email, {'email': True}), url(r'^android_error/$', views.android_error), url(r'^wsdl/$', DjangoView.as_view(application=tcargo_app, cache_wsdl=False)), url(r'^mp_notification/$', views.mp_notification), url(r'^mp_sandbox/$', views.mp_sandbox), )
from django.urls import path, include, re_path from . import views from django.urls import path, include, re_path from spyne.protocol.soap import Soap11 from spyne.server.django import DjangoView from .views import distance_service, app, Distance urlpatterns = [ re_path( r'^distance', DjangoView.as_view(services=[Distance], tns='trouvetontrain.api.distance.calcul', in_protocol=Soap11(validator='lxml'), out_protocol=Soap11(), cache_wsdl=False)), ]
#!/usr/bin/env python # encoding: utf8 from django.conf.urls import url from spyne.protocol.soap import Soap11 from spyne.protocol.json import JsonDocument from spyne.protocol.xml import XmlDocument from spyne.server.django import DjangoView from rpctest.core.views import MakeModeling urlpatterns = [ url( r'^get_solution/', DjangoView.as_view(services=[MakeModeling], tns='spyne.examples.django', in_protocol=JsonDocument(), out_protocol=JsonDocument())) ] #in_protocol=Soap11(validator="lxml"), out_protocol=JsonDocument()))
1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-based views 1. Add an import: from other_app.views import Home 2. Add a URL to urlpatterns: url(r'^$', Home.as_view(), name='home') Including another URLconf 1. Import the include() function: from django.conf.urls import url, include 2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls')) """ from django.conf.urls import url from django.contrib import admin import ImpersonalRNG.views from spyne.protocol.soap import Soap11 from spyne.server.django import DjangoView from SoapLikeRNG.views import app, DataExchange from ImpersonalRNG.views import rest admin.autodiscover() urlpatterns = [ url(r'^admin/', admin.site.urls), url( r'^DataExchange/', DjangoView.as_view(services=[DataExchange], tns='http://www.dataexchange.org', name='DataExchangeSoapBinding', in_protocol=Soap11(validator='lxml'), out_protocol=Soap11())), url(r'^rest/', ImpersonalRNG.views.rest, name='rest'), url(r'^api/', DjangoView.as_view(application=app)), ]
from django.conf.urls import url from django.contrib import admin from django.urls import path from spyne.server.django import DjangoView from soapservice.views import application urlpatterns = [ path('admin/', admin.site.urls), url(r'^trembita/', DjangoView.as_view(application=application)), ]
from django.conf.urls import patterns, url from spyne.protocol.soap import Soap11 from spyne.server.django import DjangoView from rpctest.core.views import api, api2 urlpatterns = patterns('', #url(r'^hello_world/','core.views.hello_world_service'), url(r'^say_hello/', DjangoView.as_view( services=[api], tns='app_operaciones', in_protocol=Soap11(validator='lxml'), out_protocol=Soap11())), url(r'^say_hello2/', DjangoView.as_view( services=[api2], tns='app_operaciones', in_protocol=Soap11(validator='lxml'), out_protocol=Soap11())), # url(r'^api/', DjangoView.as_view(application=app)), )
The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based views 1. Add an import: from other_app.views import Home 2. Add a URL to urlpatterns: path('', Home.as_view(), name='home') Including another URLconf 1. Import the include() function: from django.urls import include, path 2. Add a URL to urlpatterns: path('blog/', include('blog.urls')) """ from django.conf.urls import url from django.urls import path from spyne.protocol.soap import Soap11 from spyne.server.django import DjangoView from appConnection.views.connection import QuickBooksService, Support urlpatterns = [ path('support/', Support), path( 'conexao/', DjangoView.as_view(services=[QuickBooksService], tns='projetoQB.appConnection.QuickBooksService', in_protocol=Soap11(validator='lxml'), out_protocol=Soap11())), ]
#!/usr/bin/env python from django.conf.urls import patterns, url from spyne.protocol.soap import Soap11 from spyne.server.django import DjangoView from .views import AvayaService from django.views.decorators.csrf import csrf_exempt urlpatterns = [ url(r'^avaya/$', csrf_exempt(DjangoView.as_view(services=[AvayaService], tns='mango.avaya.service', in_protocol=Soap11(), out_protocol=Soap11()))), ]
from django.contrib.staticfiles.urls import staticfiles_urlpatterns from django.urls import path, include from spyne.protocol.soap import Soap11 from spyne.server.django import DjangoView from . import views urlpatterns = [ path( 'info_jogo/', DjangoView.as_view(services=[views.InfoJogoService], tns='pandemic.soap', in_protocol=Soap11(validator='lxml'), out_protocol=Soap11())), path( 'faz_jogada/', DjangoView.as_view(services=[views.FazJogadaService], tns='pandemic.soap', in_protocol=Soap11(validator='lxml'), out_protocol=Soap11())) ]
from django.conf.urls import patterns, include, url # from django.contrib import admin from spyne.protocol.soap import Soap11 from spyne.server.django import DjangoView from main.views import PostService urlpatterns = patterns('', # Examples: url(r'^$', 'main.views.home', name='home'), url(r'^login/$', 'django.contrib.auth.views.login'), url(r'^logout/$', 'django.contrib.auth.views.logout'), url(r'^opensooq/', DjangoView.as_view( services=[PostService], tns='opensooq.webservice', in_protocol=Soap11(validator='lxml'), out_protocol=Soap11()), name="soap"), url(r'^search/(\w+)', 'main.views.search_post'), url(r'^delete/(\w+)', 'main.views.delete_post'), url(r'^add/(\w+)/(\w+)/(\w+)', 'main.views.add_post'), url(r'^update/(\w+)/(\w+)/(\w+)/(\w+)', 'main.views.update_post'), url(r'^list/', 'main.views.list_post'), # url(r'^admin/', include(admin.site.urls)), )
def register_the_view_in_soap(class_name): return DjangoView.as_view(services=[class_name], tns=API_NAME, in_protocol=Soap11(validator='lxml'), out_protocol=Soap11())
from django.urls import path from spyne.protocol.soap import Soap11 from spyne.server.django import DjangoView from django_quickbooks.views import QuickBooksService, Support urlpatterns = [ path('quickbooks-desktop/support/', Support.as_view()), path( 'quickbooks-desktop/', DjangoView.as_view(services=[QuickBooksService], tns='http://developer.intuit.com/', in_protocol=Soap11(validator='lxml'), out_protocol=Soap11())), ]
"""soap_web_services URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based views 1. Add an import: from other_app.views import Home 2. Add a URL to urlpatterns: path('', Home.as_view(), name='home') Including another URLconf 1. Import the include() function: from django.urls import include, path 2. Add a URL to urlpatterns: path('blog/', include('blog.urls')) """ from django.conf.urls import url from spyne.server.django import DjangoView from soap_web_services.core.views import app urlpatterns = [ url(r'^doctor_wsdl/', DjangoView.as_view(application=app)), ]
from django.conf.urls import patterns, url from spyne.server.django import DjangoView from rpctest.core.views import Operaciones from spyne.protocol.soap import Soap11 urlpatterns = patterns('', url(r'^operaciones/', DjangoView.as_view( services=[Operaciones], tns='Operaciones', in_protocol=Soap11(validator='lxml'), out_protocol=Soap11())), )
# _*_ coding: utf-8 _*_ __author__ = '*****@*****.**' __date__ = '2019/2/15 14:04' from django.conf.urls import url from spyne.server.django import DjangoView from spyne.protocol.json import JsonDocument from apps.api.views.LoginService import login_service, login_application, LoginService from apps.api.views.UserAdminService import useradmin_service, useradmin_application, UserAdminService urlpatterns = [ url(r'^LoginService/', login_service), url( r'^LoginService_/', DjangoView.as_view(services=[LoginService], tns='Usable-Programming.LoginService.CheckLogin', in_protocol=JsonDocument(validator='soft'), out_protocol=JsonDocument())), url(r'^LoginService__/', DjangoView.as_view(application=login_application)), url(r'^UserAdminService/', useradmin_service), url( r'^UserAdminService_/', DjangoView.as_view(services=[UserAdminService], tns='Usable-Programming.UserAdminService', in_protocol=JsonDocument(validator='soft'), out_protocol=JsonDocument())), url(r'^UserAdminService__/', DjangoView.as_view(application=useradmin_application)), ]
url(r'^submit-seq/$', views.submit_seq, name='pred.submit_seq'), url(r'^thanks/$', views.thanks, name='pred.thanks'), url(r'^queue/$', views.get_queue, name='pred.get_queue'), url(r'^running/$', views.get_running, name='pred.get_running'), url(r'^finished/$', views.get_finished_job, name='pred.get_finished_job'), url(r'^failed/$', views.get_failed_job, name='pred.get_failed_job'), url(r'^download/$', views.download, name='pred.download'), url(r'^privacy/$', views.privacy, name='pred.privacy'), url(r'^help-wsdl-api/$', views.help_wsdl_api, name='pred.help_wsdl_api'), url(r'^help/$', views.get_help, name='pred.get_help'), url(r'^news/$', views.get_news, name='pred.get_news'), url(r'^findjob/$', views.findjob, name='pred.findjob'), url(r'^serverstatus/$', views.get_serverstatus, name='pred.get_serverstatus'), url(r'^countjobcountry/$', views.get_countjob_country, name='pred.get_countjob_country'), url(r'^reference/$', views.get_reference, name='pred.get_reference'), url(r'^example/$', views.get_example, name='pred.get_example'), url(r'^oldtopcons/$', views.oldtopcons, name='pred.oldtopcons'), url(r'^result/(?P<jobid>[^\/]+)/$', views.get_results, name='pred.get_results'), url(r'^result/(?P<jobid>[^\/]+)/(?P<seqindex>seq_[0-9]+)/$', views.get_results_eachseq, name='pred.get_results_eachseq'), url(r'^login/', login_required(views.login), name="pred.login"), # for spyne wsdl url(r'^api_submitseq/', DjangoView.as_view(application=views.app_submitseq)), ]
from django.conf.urls import url from spyne.server.django import DjangoView from .views import app, XmlService, JsonService urlpatterns = [ url(r'^xml/GetAllData', XmlService.get_xml, name='xml'), url(r'^json/GetAllData', JsonService.get_json, name='json'), url(r'^wsdl', DjangoView.as_view(application=app)), ]