[Twisted-Python] Re: SOAP and XML-RPC stuff
![](https://secure.gravatar.com/avatar/2d3e32506243224474e7292fab5fddba.jpg?s=120&d=mm&r=g)
Andrew Bennetts:
Obviously you can't have multiple things listening on port 7080. Perhaps this should raise an exception, though, so as to not seem like it can.
I figured the first was the case, but I didn't know if there was some way to support content negotiation appropriately, so that a SOAP request on a given URL goes to one handler and an XML-RPC request on the same URL goes to another handler. (Someday I would like to play around more with conneg, so I think this is cute, but the realistic side of me says it's a bad idea.)
I suspect you can probably do: from twisted.web.resource import Resource
root = Resource() # An empty resource ...
Bingo! It works now, and I'm one step further on my way to Twisted Enlightenment. Thanks Andrew! BTW, I looked up twisted.web.resource on the doc page at http://www.twistedmatrix.com/documents/TwistedDocs/current/api/ I don't see 'twisted.web.resource' in the 'Everything' section in the lower left, which means it should be labeled 'Not Quite Everything.' ;) Andrew dalke@dalkescientific.com
![](https://secure.gravatar.com/avatar/b3407ff6ccd34c6e7c7a9fdcfba67a45.jpg?s=120&d=mm&r=g)
On Mon, May 26, 2003 at 12:24:15PM -0600, Andrew Dalke wrote:
Bingo! It works now, and I'm one step further on my way to Twisted Enlightenment. Thanks Andrew!
You're welcome! [1]
BTW, I looked up twisted.web.resource on the doc page at
http://www.twistedmatrix.com/documents/TwistedDocs/current/api/
I don't see 'twisted.web.resource' in the 'Everything' section in the lower left, which means it should be labeled 'Not Quite Everything.' ;)
I do, however, see "twisted.web.resource.Resource"... -Andrew. [1] I've never actually written any Twisted Web code, but it seems I've now spent enough time reading the mailing list and documentation checkins that I can now write untested code that works ;)
participants (2)
-
Andrew Bennetts
-
Andrew Dalke