[Zope-PAS] plonePAS and JAX-WS

Zachery Bir zbir at urbanape.com
Fri Aug 25 08:50:23 EDT 2006


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. :^)

Zac




More information about the Zope-PAS mailing list