On Aug 25, 2006, at 10:17 AM, Tres Seaver wrote:

Zachery Bir wrote:
On Aug 25, 2006, at 5:40 AM, Jens Vagelpohl wrote:

On 25 Aug 2006, at 05:47, Serge Zagorac wrote:

Hi All

Is there any way or example how to configure plonePAS to consume a web service (in my case JAX-WS via SOAP ) in order to get user details?

This won't be a configuration issue, it will be a coding issue. You
don't mention specifically what "consume a web service" means, but you
might be able to put together a Scriptable Multiplugin or write your
own filesystem-based plugin to do the job.

However, there is one big caveat. Making HTTP calls (or almost any
other network request) out of Zope code during the execution of a web
request is risky. The executing thread will wait until the external
request has been answered, and if for whatever reason no answer is
received it will hang forever. There are four threads available in a
normal Zope configuration, the fourth time this happens your website
will be unavailable and Zope must be restarted. A lot of care needs to be taken to ensure there are sensible timeouts on these external calls
to prevent hangs.

You can get around it, though, if you use something like Zasync. A bit
heavy-handed, but it's there for ya. :^)

You can't authenticate asynchronously -- the original request is stalled
untill the out-of-process call returns, and there is no way to release
the thread / connection pool it is using.

Well, fine. Bring you "reality" into it. ;^)

Zac

_______________________________________________
Zope-PAS mailing list
Zope-PAS@zope.org
http://mail.zope.org/mailman/listinfo/zope-pas

Reply via email to