aspose file tools
The moose likes Web Services and the fly likes Acceesing WSDL Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "Acceesing WSDL" Watch "Acceesing WSDL" New topic
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/}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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Acceesing WSDL
 
Similar Threads
Axis fault
Exception AxesFault Exception : No endpoint
client code to connect to Web services
Using Eclipse to create a web service, Axis Exception
Declarative Usage of Application Contexts