I am implementing approach 1). The code is turning out to be
straightforward and this approach fully supports the SCA callback
spec AIUI.
The Axis2 callback MEP isn't the same as an SCA callback, and it's
confusing that these have the same name. With the Axis2 callback
MEP, the forward call is sent asynchronously, and the callback
message carries the result from the forward call. In SCA, the
callback is a normal call made in the reverse direction, and the
signature of the callback is unrelated to the signature of the
forward call.
Simon
Simon Laws wrote:
On 7/18/07, Raymond Feng <[EMAIL PROTECTED]> wrote:
Hi,
Assuming we have the following declaration: reference r1 is wired to
service
s1.
<reference name="r1">
<interface.wsdl interface="http://ns1#wsdl.interface(Service1)"
callbackInterface="http://ns1#wsdl.interface(Service1Callback)"/>
<binding.ws .../>
<callback>
<binding.ws .../>
</callback>
</reference>
<service name="s1">
<interface.wsdl interface="http://ns1#wsdl.interface(Service1)"
callbackInterface="http://ns1#wsdl.interface(Service1Callback)"/>
<binding.ws .../>
<callback>
<binding.ws .../>
</callback>
</reference>
Then the callback path seems to be following: s1 (binding.ws) ---> r1
(binding.ws). Is this like another web service call? or is it really that
the s1 provides asynchronous response to the web service layer and the
web
service client is making a callback?
For the forward call, r1 --> ws client ......(soap/http) .....ws
service -->s1. Which path should be used for the callback?
1) s1--> ws client ......(soap/http) .....ws service -->r1 (another
regular
ws call)
or
2) s1--(ws-callback)--> ws server ...(soap/http) ... ws
client --(ws-callback)-->r1 (over ws callback MEP)
Thanks,
Raymond
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Well 1) would be useful if the callback occurs outside of the context of
the original call or if the callback doesn't happen for a really long time,
i.e. long enough for connection timeouts. Downside, I guess, is to do the
plumbing to host the callback.
Simon
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]