File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Advise needed !

 
Sandeep Advani
Ranch Hand
Posts: 78
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic