You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Richard <ra...@xs4all.nl> on 2008/09/29 19:39:25 UTC

Internal/external operations

Perhaps someone can help me with two questions:

1.  Is it possible to create a web service where most operations can be
called by external ws clients but some operations can be called only by
internal ws clients.

2.  The behavior of an operation needs to differ slightly depending on
whether an operation is called internally or externally--this can be done
by checking the value an attribute or an element.  Is there a more
transparent way to determine the ws caller so that behavior such as how to
connect to the database can differ slightly.

Thanks,
Richard


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: Internal/external operations

Posted by keith chapman <ke...@gmail.com>.
Hi Richard,

See comments inline.

On Mon, Sep 29, 2008 at 11:09 PM, Richard <ra...@xs4all.nl> wrote:

> Perhaps someone can help me with two questions:
>
> 1.  Is it possible to create a web service where most operations can be
> called by external ws clients but some operations can be called only by
> internal ws clients.


What do u mean by external and internal WS-Clients?

>
>
> 2.  The behavior of an operation needs to differ slightly depending on
> whether an operation is called internally or externally--this can be done
> by checking the value an attribute or an element.  Is there a more
> transparent way to determine the ws caller so that behavior such as how to
> connect to the database can differ slightly.


Well, If you use something like username token authentication on your
service, you could access the username of the caller from within your web
service and thus vary the action you need to perform. This is just one way
of doing it though.

Thanks,
Keith.

>
>
> Thanks,
> Richard
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


-- 
Keith Chapman
Senior Software Engineer
WSO2 Inc.
Oxygenating the Web Service Platform.
http://wso2.org/

blog: http://www.keith-chapman.org