File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Services and the fly likes Problem in cross paltform webservice Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Problem in cross paltform webservice" Watch "Problem in cross paltform webservice" New topic

Problem in cross paltform webservice

Ravindranath Nalanagu

Joined: Aug 31, 2007
Posts: 1
hey guys i have written a server code in php which produces a wsdl file, i am using eclipse 3.3(europa). the server code runs very well but the client code is written in java by which i am calling the php webservice. the code is as follows.

Client Code:

import org.apache.axis.client.Call;
import org.apache.axis.client.Service;
import javax.xml.namespace.QName;
public class Client2
static ObjectOutputStream out;
static ObjectInputStream in;
public static void main(String[] args)
String endpoint = "http://localhost/PhpPrograms/hello_server.php?wsdl";
Service service = new Service();
Call call = (Call) service.createCall();

call.setOperationName(new QName("", "sayHello"));
String ret = (String) call.invoke(new Object[] {"Ravindranath"});

catch (Exception e)

the service endpoint is my php webservice wsdl, but i am unable to call it it gives me the following error: Connection reset

this error as per my knowledge comes if my server is reset or stopped. but my server is running vry gud. please do let me know as soon as possible.

I agree. Here's the link:
subject: Problem in cross paltform webservice
It's not a secret anymore!