File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

RMI from Webservice

 
ajay fra
Greenhorn
Posts: 6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can any one help me to invoke RMI Server program from my web service.
I am using axis to create wsdl file.while trying for adding a new Wsdd file into the service all the other wsdl files seems vanished.
Please help dear friends
Thanks in advance
Ajay
 
Balaji Loganathan
author and deputy
Bartender
Posts: 3150
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to Javaranch Ajay.

Originally posted by ajay fra:
Can any one help me to invoke RMI Server program from my web service.

I really dont understand the context here. Could you please explain from where you are invoking an rmi, that is from client or from server??
Originally posted by ajay fra:

while trying for adding a new Wsdd file into the service all the other wsdl files seems vanished.
Please help dear friends
Thanks in advance
Ajay

Again, the question is not very clear. Why you are adding a new wsdd file ? Please brief us what you tried to do and at what stage your lost the other wsdl files.
This would help us to understand your question clearly.
 
ajay fra
Greenhorn
Posts: 6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
dear friends
i tried to invoke RMI server with RMI client inside a a method and when i tried to make that method which calling the RMI Client program all my deployed WSDD's vanished from http://localhost:8080/axis/servlet/AxisServlet.

public void add(){
.....
rmiServer=(ReceiveMessageInterface)(registry.lookup("rmiServer"));
registry=LocateRegistry.getRegistry(
serverAddress,
(new Integer(serverPort)).intValue());
...
Document document = getSOAPDoc("ajay","siju");
rmiServer.receiveMessage(document);
Document SOAPDoc =(Document)rmiServer.getSOAPDoc();
XMLOutputter fmt = new XMLOutputter();
fmt.output(SOAPDoc, System.out);
}
where i made mistake?.can i invoke RMI from a webservice?
Thanks in advance
Ajay
 
ajay fra
Greenhorn
Posts: 6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear friends ,
I got the answer,i was trying to call RMI methods through WebService,and trying to send SOAP context as JDOM Document through RMI.There i missed to put jdom.jar file in axis lib directory.
Thank you for all,
Regards
Ajay.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic