Skip to content

Commit

Permalink
Remove SOAP code.
Browse files Browse the repository at this point in the history
  • Loading branch information
adiroiban committed May 1, 2024
1 parent ac0d3a5 commit f107afc
Show file tree
Hide file tree
Showing 11 changed files with 5 additions and 439 deletions.
5 changes: 1 addition & 4 deletions docs/installation/howto/optional.rst
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,9 @@ The following optional dependencies are supported:

* `cryptography`_

* **soap** - the `SOAPpy`_ package to work with SOAP.

* **serial** - the `pyserial`_ package to work with serial data.

* **all-non-platform** - installs **tls**, **conch**, **soap**, and **serial** options.
* **all-non-platform** - installs **tls**, **conch**, and **serial** options.

* **macos-platform** - **all-non-platform** options and `pyobjc`_ to work with Objective-C apis.

Expand All @@ -61,7 +59,6 @@ The following optional dependencies are supported:
.. _pyOpenSSL: https://pypi.python.org/pypi/pyOpenSSL
.. _service_identity: https://pypi.python.org/pypi/service_identity
.. _cryptography: https://pypi.python.org/pypi/cryptography
.. _SOAPpy: https://pypi.python.org/pypi/SOAPpy
.. _pyserial: https://pypi.python.org/pypi/pyserial
.. _pyobjc: https://pypi.python.org/pypi/pyobjc
.. _pywin32: https://pypi.python.org/pypi/pywin32
Expand Down
1 change: 0 additions & 1 deletion docs/web/examples/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,3 @@ Miscellaneous

- :download:`webguard.py` - pairing ``twisted.web`` with ``twisted.cred`` to guard resources against unauthenticated users
- :download:`silly-web.py` - bare-bones distributed web setup with a master and slave using ``twisted.web.distrib`` and ``twisted.spread.pb``
- :download:`soap.py` - use ``twisted.web.soap`` to publish SOAP methods
45 changes: 0 additions & 45 deletions docs/web/examples/soap.py

This file was deleted.

2 changes: 1 addition & 1 deletion docs/web/howto/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Developer Guides
- :doc:`Using twisted.web <using-twistedweb>`
- :doc:`Web application development <web-development>`
- :doc:`HTML Templating with twisted.web.template <twisted-templates>`
- :doc:`XML-RPC and SOAP <xmlrpc>`
- :doc:`XML-RPC <xmlrpc>`
- :doc:`Twisted Web in 60 Seconds: A series of short, complete examples using twisted.web <web-in-60/index>`
- :doc:`Quixote resource templates <resource-templates>`

Expand Down
13 changes: 0 additions & 13 deletions docs/web/howto/listings/soap.rpy

This file was deleted.

33 changes: 0 additions & 33 deletions docs/web/howto/listings/xmlAndSoapQuote.py

This file was deleted.

54 changes: 0 additions & 54 deletions docs/web/howto/xmlrpc.rst
Original file line number Diff line number Diff line change
Expand Up @@ -319,27 +319,6 @@ no ``help`` attribute is specified, the
method's documentation string is used instead.





SOAP Support
------------



From the point of view of a Twisted developer, there is little difference
between XML-RPC support and SOAP support. Here is an example of SOAP usage:





:download:`soap.rpy <listings/soap.rpy>`

.. literalinclude:: listings/soap.rpy



Creating an XML-RPC Client
--------------------------

Expand Down Expand Up @@ -434,36 +413,3 @@ responses.

An example Twisted application that does this can be found in
``docs/web/examples/xmlrpc-debug.py`` .




Serving SOAP and XML-RPC simultaneously
---------------------------------------



:py:class:`twisted.web.xmlrpc.XMLRPC` and :py:class:`twisted.web.soap.SOAPPublisher` are both :py:class:`Resource <twisted.web.resource.Resource>` s. So, to serve both XML-RPC and
SOAP in the one web server, you can use the :py:meth:`putChild <twisted.web.resource.IResource.putChild>` method of Resource.




The following example uses an empty :py:class:`resource.Resource <twisted.web.resource.Resource>` as the root resource for
a :py:class:`Site <twisted.web.server.Site>` , and then
adds ``/RPC2`` and ``/SOAP`` paths to it.





:download:`xmlAndSoapQuote.py <listings/xmlAndSoapQuote.py>`

.. literalinclude:: listings/xmlAndSoapQuote.py


Refer to :ref:`Twisted Web
Development <web-howto-using-twistedweb-development>` for more details about Resources.



4 changes: 0 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -383,8 +383,6 @@ module = [
"psycopg",
"MySQLdb",
"kinterbasdb",

"SOAPpy",
]

[[tool.mypy.overrides]]
Expand Down Expand Up @@ -733,7 +731,6 @@ module = [
'twisted.web.proxy',
'twisted.web.resource',
'twisted.web.server',
'twisted.web.soap',
'twisted.web.static',
'twisted.web.sux',
'twisted.web.tap',
Expand All @@ -748,7 +745,6 @@ module = [
'twisted.web.test.test_httpauth',
'twisted.web.test.test_newclient',
'twisted.web.test.test_proxy',
'twisted.web.test.test_soap',
'twisted.web.test.test_static',
'twisted.web.test.test_util',
'twisted.web.test.test_vhost',
Expand Down
3 changes: 3 additions & 0 deletions src/twisted/newsfragments/12146.removal
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
twisted.web.soap was removed.
The SOAP support was already broken, for at least the last 4 years.
The SOAP support in Twisted has no active maintainer.
166 changes: 0 additions & 166 deletions src/twisted/web/soap.py

This file was deleted.

0 comments on commit f107afc

Please sign in to comment.