Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Acceesing WSDL  RSS feed

 
ujwwala tem
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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/}exceptionNamerg.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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!