aspose file tools*
The moose likes Web Services and the fly likes Advise needed ! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Advise needed !" Watch "Advise needed !" New topic
Author

Advise needed !

Sandeep Advani
Ranch Hand

Joined: Mar 11, 2004
Posts: 78
Hi,

I have deployed a Web Service using Apache Axis exposing 2 methods.

1. int add(int a, int b)
2. String serviceMethod(byte[] classfile) - This method accepts byte codes and stores them in the local file system after executing it.

Note that these byte codes are self-contained byte codes which simply displays some characters on the screen.

Now I am trying to have this byte code call the exposed native Web Service method i.e. add() and send the result back to the client who at first sent it. This is the concept of sending mobile agents to a data source, doing filtering of data at the data source and getting only the result back.

I beleive that a local method call will not work since the environment will be different between the client and server Web Service. (Though I am giving this a shot).

Also writing the byte code such that it invokes the add() method Web Service as a regular Web Service client is not working. Reason being that once this class file is loaded on the server, it cannot make another WebService method call (add()) as serviceMethod() is still being processed. I am not sure about making asynchronous calls.

Any suggestions!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Advise needed !