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 #CHEN XINJUN# <xj...@pmail.ntu.edu.sg> on 2005/09/14 09:06:53 UTC

Two practical questions: service type and wait

I have two practical questions regarding using Axis to develop web service. 

1. For the sake of the interoperability, I need to specify my service type to be "document" instead of "rpc". However, I need to use the org.apache.axis.client package, the Service and Call classes. If I deploy my service setting style="rpc" in the server-deploy.wsdd, my client can run correctly. But the client failed with exception of deserialization problem: unexpected child element. 
    Could you guy help me on this?

2. I implemented a Web service, one of the operations need to use wait() method to pause the thread for a few seconds. However, when I use wait, I get invalid job state error at runtime. I have some foggy impression that I could not use wait() (in Java) or sleep() (in C/C++) in distributed computing. How could I force the thread to sleep for a while in the implementation of a Web service?


Regards, 
Xinjun