aspose file tools*
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
Author

Problem in cross paltform webservice

Ravindranath Nalanagu
Greenhorn

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)
{
try
{
String endpoint = "http://localhost/PhpPrograms/hello_server.php?wsdl";
Service service = new Service();
Call call = (Call) service.createCall();

call.setTargetEndpointAddress(new java.net.URL(endpoint));
call.setOperationName(new QName("http://soapinterop.org/", "sayHello"));
String ret = (String) call.invoke(new Object[] {"Ravindranath"});

System.out.println(ret);
}
catch (Exception e)
{
System.err.println(e.toString());
}
}
}


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

java.net.SocketException: 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.


Ravindranath
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem in cross paltform webservice