|
Re: Problem creation WSDL with eclipse [message #1733221 is a reply to message #1733180] |
Wed, 25 May 2016 13:28 |
Ed Merks 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/
|
|
|
Powered by
FUDForum. Page generated in 0.04125 seconds