<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
I'm trying to add a single service to a virtual path like <a href="http://localhost:8080/geospatial/geocoder/XMLRPC">
http://localhost:8080/geospatial/geocoder/XMLRPC</a>.
<div><br>
</div>
<div>Version info:</div>
<div>Twisted: 9.0</div>
<div>Python: 2.6</div>
<div><br>
</div>
<div>The following code does not work:
<div><br>
</div>
<div>root = resource.Resource()</div>
<div>srv = XMLRPCGeocoder()</div>
<div>root.putChild(&quot;geospatial/geocoder/XMLRPC&quot;, srv)</div>
<div><br>
</div>
<div>When I attempt to access the service, twisted gives the following error:</div>
<div>Request failed: &lt;ProtocolError for localhost:8080/geospatial/geocoder/XMLRPC: 404 Not Found&gt;</div>
<div><br>
</div>
<div>If I use the following code, and change the client to point only to localhost:8080/XMLRPC, it _does_ work:</div>
<div><br>
</div>
<div>root.putChild(&quot;XMLRPC&quot;, srv)</div>
<div><br>
</div>
<div>The docs say something about using putChild.putChild... so I tried the following:</div>
<div><br>
</div>
<div>root.putChild(&quot;geospatial&quot;, None).putChild(&quot;geocoder&quot;, None).putChild(&quot;XMLRPC&quot;, srv)</div>
<div><br>
</div>
<div>The problem is Resource.putChild _always_ returns None! &nbsp;Even the following, which is the working version:</div>
<div>print root.putChild(&quot;XMLRPC&quot;, srv) # Prints None too</div>
<div><br>
</div>
<div>Looking at twisted.web.resource.Resource's source code, all it does is add the path to a hash array and returns nothing...</div>
<div><br>
</div>
<div>It seems like such a simple thing to do! &nbsp;Thanks for your help!</div>
<div>
<div>
<div style="margin-top: 0in; margin-right: 0in; margin-bottom: 0.0001pt; margin-left: 0in; font-size: 11pt; font-family: Calibri, sans-serif; ">
<b><span style="color: gray; "><font class="Apple-style-span" face="Arial, sans-serif" size="2"><span class="Apple-style-span" style="font-size: 10px; font-weight: normal;"><font class="Apple-style-span" face="Calibri, sans-serif" size="4"><span class="Apple-style-span" style="font-size: 15px;"><b><br class="Apple-interchange-newline">
</b></span></font></span></font></span></b></div>
</div>
<br>
</div>
</div>
<br>
<hr>
<font face="Arial" color="Gray" size="2">Confidentiality Notice: This e-mail may contain proprietary information some of which may be legally privileged. It is for the intended recipient(s) only. If you believe that it has been sent to you in error, please
 notify the sender by reply e-mail and delete the message. Any disclosure, copying, distribution or use of this information by someone other than the intended recipient(s) is prohibited and may be unlawful.<br>
</font>
</body>
</html>