axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bill Nagy <n...@watson.ibm.com>
Subject Re: [Axis2] Should requestors not be reusing AxisService's that have been registered for deployed services or is AxisService.isClientSide() untrustworthy?
Date Mon, 16 Oct 2006 13:59:14 GMT
Hi Sanjiva,

Nope, you're not missing anything; I just wanted to make sure that my
understanding was correct (that requestors need their own AxisService
which is separate from the provider's) and that the Sandesha code was
wrong.  (org.apache.sandesha2.util.RMMsgCreator.createCreateSeqMsg(...)
passes in a message that it has received to
org.apache.sandesha2.util.SandeshaUtil.createNewRelatedMessageContext(...) which simply sets
the AxisService from the passed-in message onto the new message and adds an OutIn operation
to it.)  Thanks.

-Bill
 

On Sun, 2006-10-15 at 13:44 +0530, Sanjiva Weerawarana wrote:
> On Thu, 2006-10-12 at 06:37 -0700, Bill Nagy wrote:
> > Hi,
> > 
> > If you have a service, (A), deployed into the runtime and you want to
> > invoke either it or another service with the same WSDL, (A'), from that
> > runtime, should you (1)not be passing (A)'s AxisService into the
> > ServiceClient and always creating a new one to represent the client or
> > (2)is AxisService.isClientSide() untrustworthy (i.e. will it sometimes
> > return false even if you are a requestor -- a fact of reusing the
> > AxisService from a deployed service?  Thanks.
> 
> I'm confused (as usual :-)). The scenario is that there's a *service* A
> with its AxisService AS-A. Now you want to invoke that service right?
> 
> If so the AxisService for the client is different from the AxisService
> for the service. Remember the direction of the operations? So you'll
> have another AxisService AS-AC which is like AS-A except the operations
> are reversed (and bindings different etc.). So if you do
> AS-A.isClientSide() it should return false and AS-AC.isClientSide()
> should return true.
> 
> Am I missing a link?
> 
> Sanjiva.
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-dev-help@ws.apache.org


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


Mime
View raw message