Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Problem creation WSDL with eclipse
Problem creation WSDL with eclipse [message #1733180] Wed, 25 May 2016 07:36 Go to next message
Alessandro Siervo is currently offline Alessandro SiervoFriend
Messages: 1
Registered: May 2016
Junior Member
Hi all,

I am new of forum and i don't speak good english, sorry for this.

I tried to create a simple service , a class with one method that executes the sum of two numbers and then I created the wsdl with eclipse and deploy on tomcat . Works well.

Then I tried to create another project with another service that uses a library to extract weather information , the class code is this:
import net.aksingh.owmjapis.DailyForecast;
import net.aksingh.owmjapis.OpenWeatherMap;
import net.aksingh.owmjapis.OpenWeatherMap.Language;

public class WService {
	
	public float getCurrentWeather(String city) throws Exception{
		byte count=1;
		try {
	        OpenWeatherMap owm = new OpenWeatherMap("accessToken");
	        owm.setLang(Language.ITALIAN);
	        DailyForecast df = owm.dailyForecastByCityName(city,count );
	        return df.getForecastInstance(0).getTemperatureInstance().getDayTemperature();
		} catch(Exception e) {
			throw new Exception(e.getMessage());
		}
	}
}


i created the wsdl and deploy on tomcat but when I try to run it on server, it returns this error message :

<?xml version="1.0" encoding="utf-8"?><soapenv:Envelope xmlns:soapenv="http:/schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="ht:/.w3.org/2001/XMLSchema" xmlns:xsi="ht:/.w3.org/2001/XMLSchema-instance"><soapenv:Body><soapenv:Fault><faultcode>soapenv:Server.userException</faultcode><faultstring>java.lang.reflect.InvocationTargetException</faultstring><detail><ns1:hostname xmlns:ns1="ht:/xml.apache.org/axis/">Alessandro</ns1:hostname></detail></soapenv:Fault></soapenv:Body></soapenv:Envelope>

( i must eliminate the link to xml because is my first message on this forum )

Thanks
Re: Problem creation WSDL with eclipse [message #1733221 is a reply to message #1733180] Wed, 25 May 2016 13:28 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33224
Registered: July 2009
Senior Member
This sounds like a question better directed to the Web Tools forum
(assuming that's what you're using).


On 25.05.2016 14:58, Alessandro Siervo wrote:
> Hi all,
>
> I am new of forum and i don't speak good english, sorry for this.
> I tried to create a simple service , a class with one method that
> executes the sum of two numbers and then I created the wsdl with
> eclipse and deploy on tomcat . Works well.
>
> Then I tried to create another project with another service that uses
> a library to extract weather information , the class code is this:
> import net.aksingh.owmjapis.DailyForecast;
> import net.aksingh.owmjapis.OpenWeatherMap;
> import net.aksingh.owmjapis.OpenWeatherMap.Language;
>
> public class WService {
>
> public float getCurrentWeather(String city) throws Exception{
> byte count=1;
> try {
> OpenWeatherMap owm = new OpenWeatherMap("accessToken");
> owm.setLang(Language.ITALIAN);
> DailyForecast df = owm.dailyForecastByCityName(city,count );
> return
> df.getForecastInstance(0).getTemperatureInstance().getDayTemperature();
> } catch(Exception e) {
> throw new Exception(e.getMessage());
> }
> }
> }
>
> i created the wsdl and deploy on tomcat but when I try to run it on
> server, it returns this error message :
>
> <?xml version="1.0" encoding="utf-8"?><soapenv:Envelope
> xmlns:soapenv="http:/schemas.xmlsoap.org/soap/envelope/"
> xmlns:xsd="ht:/.w3.org/2001/XMLSchema"
> xmlns:xsi="ht:/.w3.org/2001/XMLSchema-instance"><soapenv:Body><soapenv:Fault><faultcode>soapenv:Server.userException</faultcode><faultstring>java.lang.reflect.InvocationTargetException</faultstring><detail><ns1:hostname
> xmlns:ns1="ht:/xml.apache.org/axis/">Alessandro</ns1:hostname></detail></soapenv:Fault></soapenv:Body></soapenv:Envelope>
>
>
> ( i must eliminate the link to xml because is my first message on this
> forum )
>
> Thanks


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:get Block of class ASTparser
Next Topic:Arrays Now Break Code Check
Goto Forum:
  


Current Time: Mon Oct 07 05:34:11 GMT 2024

Powered by FUDForum. Page generated in 0.04125 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top