Published on WSO2 Oxygen Tank (http://wso2.org)

[commons-dev] AXIS2 client accessing .NET web service

By soundt
Created 2007-06-23 05:30

I had generated AXIS2 client stubs for .NET web services using wsdl2java utility. When I'm trying to access the web service method, getting following exception:

org.apache.axis2.AxisFault: Connection reset
at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:221)
...............................
...............................

Here is the code :

try
{
LoginWebServiceStub loginStub = new LoginWebServiceStub();
LoginWebServiceStub.Login param4 = new LoginWebServiceStub.Login();
param4.setUsername("abc");
param4.setPassword("abc");
LoginWebServiceStub.LoginResponse response = loginStub.Login(param4);
System.out.println("***"+response.localLoginResult);
}
catch (org.apache.axis2.AxisFault axisFault)
{
System.out.println(axisFault.getMessage());
axisFault.printStackTrace();
}
catch (RemoteException e)
{
e.printStackTrace();
}

I also tried simple exercise on my local box getting same problem. I had seen similar problem reported at different forums but no solution. I have tight schedule to move this code into production. Any help is appreciated.

Thanks,

soundt

_______________________________________________
Commons-dev mailing list
Commons-dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/commons-dev


Source URL:
http://wso2.org/forum/thread/1927