Monday, November 19, 2012

SEVERE: The system cannot infer the transport information from the http://localhost:8080/axis2/services/


Issue
 
Web Services that returns the following exception:

SEVERE: The system cannot infer the transport information from the  http://localhost:8080/axis2/services/DataService URL.
Exception in thread "main" org.apache.axis2.AxisFault: The system cannot infer the transport information from the  http://localhost:8083/axis2/services/DataService URL.

 
Solution

If the URL is really correct, try checking the spaces on the url.

Example of a undesirable initial space causing the problem (yellow):
String url = " http://localhost:8080/axis2/services/DataService";

To avoid such problem, instead of:
DataServiceStub service = new DataServiceStub(url)

do:
DataServiceStub service = new DataServiceStub(url.trim());

No comments:

Post a Comment