This might be possible. Are you using Python or Java?
In Python, I created an app which both serves Django and a SOAP web
service so I had to learn how WSGI works, and how Google is handling
it. To do what I needed, I created a wrapper like this:
class ApplicationWrapper():
def __call__(self, env, start_response):
#check what the root request is
(f,s) = os.path.split(env['PATH_INFO'])
while f != '/':
(f,s) = os.path.split(f)
#if request is http://echo/, run web
service, if not, run django
if s == 'echo':
service_app = SOAPApplication()
service_app['echo'] = EchoService()
return service_app(env, start_response)
else:
# Create a Django application for WSGI.
application = django.core.handlers.wsgi.WSGIHandler()
# Run the WSGI CGI handler with that application.
run_wsgi_app(application)
application = ApplicationWrapper()
def main():
run_wsgi_app(application)
If you're using python, check out what Google is doing in their
'run_wsgi_app'. From there, you should be able to set up your
appropriate WSGI variables, and run your application.
Mark
On Mar 21, 12:32 pm, dhruvbird <[email protected]> wrote:
> Hello,
> I would like to call a URL of my own application. How can I go about
> doing that w/o using URL fetch? One option would be to manually
> construct a request object and call the function depending upon the
> URL mapping table. However, is there a way to do this w/o that mess
> and w/o using URL fetch (which will cost me a request)?
>
> for eg: If I have these URLs:
> /mail/send/
> /chat/send/
> /home/
>
> If I want to call them from within the handler of /home/, how can I do
> that?
>
> Regards,
> -Dhruv.
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en.