| Author |
Acceesing WSDL
|
ujwwala tem
Ranch Hand
Joined: Feb 10, 2010
Posts: 70
|
|
Hello,
I have wsdl for us whether forecast
I am craeting web service client project in europa eclipse the code is:
public class WheatherClient {
public static void main(String[] args) throws Exception {
WeatherData[] WeatherData;
WeatherForecastSoapStub stub = new WeatherForecastSoapStub();
WeatherForecasts whfc=new WeatherForecasts();
WeatherForecasts wf=(WeatherForecasts)stub.getWeatherByPlaceName("Chicago");
WeatherData wd[]=wf.getDetails();
for (int i = 0; i < wd.length; i++) {
System.out.println("Day is " + wd[i].getDay() + "Max temp is "
+ wd[i].getMaxTemperatureC() + "\n");
}
}
}
when I run the code as java application I am getting:
Exception in thread "main" AxisFault
faultCode: {http://xml.apache.org/axis/}Server.NoEndpoint
faultSubcode:
faultString: No endpoint
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}exceptionName rg.apache.axis.NoEndPointException
{http://xml.apache.org/axis/}stackTrace:No endpoint
at net.webservicex.www.WeatherForecastSoapStub.getWeatherByPlaceName(WeatherForecastSoapStub.java:206)
at com.training.client.WheatherClient.main(WheatherClient.java:14)
{http://xml.apache.org/axis/}hostname:pun-ujwwalat
No endpoint
at net.webservicex.www.WeatherForecastSoapStub.getWeatherByPlaceName(WeatherForecastSoapStub.java:206)
at com.training.client.WheatherClient.main(WheatherClient.java:14)
Please reply,do I need any connection to establish,
Thanks,
Ujwwala
|
 |
 |
|
|
subject: Acceesing WSDL
|
|
|