Still now i m using eclipse 3.3's facility to create a web service client
and my client is stand alone client.
It might be a part of any large system.in eclipse client i didnt do anything
to joint it with any large system a proxy is generated with methods so
just use (the method as metioned below) in a large system.
But for callback service i need a tuscany client only so want to know the
structure of client code.
here is my client code snippet which i have used for polling mechanism, it
was not running in a tuscany environment, but now i want to run it under
tuscany environment to use callback mechanism.
-----------------------------------------------
StartServicePortTypeProxy proxy = *new* StartServicePortTypeProxy();
proxy.getResult("Any Name");
*int* i = 1;
Thread.*sleep*(1000);
System.*out*.println("Doing something on client side");
Thread.*sleep*(4000);
*while*(!proxy.polling()) {
System.*out*.println("waiting..." + i);
i++;
Thread.*sleep*(100);
}
System.*out*.println("In client " + proxy.getData());
---------------------------------------------
here, mainly three methods, getResult(String ) is a @OneWay method,
polling() is used to check the status and getData() is used to get data from
service.
In example service take more than 10000 ms, so client will wait for it to
complete.
This client code can be easily embed with any java based system, all other
classes was generated by eclipse so no need to bother about it.
So now in Tuscany client i need a other interface (callback interface) to
get result from client so can you please guide me how can i write a
client(remote) code for simple-callback-ws.
I don't want to use polling mechanism, want to use only callback mechanism.
so currently we can assume that there is no complex client system it was a
simple standalone client as mentioned above.
many thanks
Nishant