File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes RMI from Webservice Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "RMI from Webservice" Watch "RMI from Webservice" New topic
Author

RMI from Webservice

ajay fra
Greenhorn

Joined: Mar 14, 2005
Posts: 6
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

Joined: Jul 13, 2001
Posts: 3150
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

Joined: Mar 14, 2005
Posts: 6
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

Joined: Mar 14, 2005
Posts: 6
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
 
subject: RMI from Webservice
 
Similar Threads
WSDL to Java- service Interface
Invoking a web service in wsdl
need webservice help
javax.xml.ws.WebServiceException: Failed to access the WSDL at: http://192.168.51.223:8080/QAAccessi
Is an object exported..??