Spring Konsumowanie SOAP - RuntimeModelerException

0

Witam mam następujący problem, chce wyświetlić sobie lotniska dla Polski korzystając z webserwisu. Niestety wali mi błędami.

 

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <groupId>com.app.spring.nauka</groupId>
    <artifactId>nauka1.0</artifactId>
    <packaging>pom</packaging>
    <version>1.0-SNAPSHOT</version>
    <modules>
        <module>Nauka-Logic</module>
        <module>Nauka-Data</module>
        <module>Nauka-Web</module>
        <module>Nauka-WebServices</module>
    </modules>
    <dependencies>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-core</artifactId>
            <version>4.2.0.RELEASE</version>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-beans</artifactId>
            <version>4.2.0.RELEASE</version>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-context</artifactId>
            <version>4.2.0.RELEASE</version>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-web</artifactId>
            <version>4.2.0.RELEASE</version>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-webmvc</artifactId>
            <version>4.2.0.RELEASE</version>
        </dependency>
        <dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>javax.servlet-api</artifactId>
            <version>3.1.0</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.hibernate</groupId>
            <artifactId>hibernate-entitymanager</artifactId>
            <version>4.3.5.Final</version>
        </dependency>
        <dependency>
            <groupId>javax.validation</groupId>
            <artifactId>validation-api</artifactId>
            <version>1.1.0.Final</version>
        </dependency>
        <dependency>
            <groupId>org.hibernate</groupId>
            <artifactId>hibernate-validator</artifactId>
            <version>5.1.3.Final</version>
        </dependency>
        <dependency>
            <groupId>org.hibernate</groupId>
            <artifactId>hibernate-core</artifactId>
            <version>4.3.5.Final</version>
        </dependency>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>4.11</version>
        </dependency>
        <dependency>
            <groupId>log4j</groupId>
            <artifactId>log4j</artifactId>
            <version>1.2.17</version>
        </dependency>
        <dependency>
            <groupId>org.postgresql</groupId>
            <artifactId>postgresql</artifactId>
            <version>9.3-1102-jdbc41</version>
        </dependency>
        <dependency>
            <groupId>org.springframework.data</groupId>
            <artifactId>spring-data-jpa</artifactId>
            <version>1.7.1.RELEASE</version>
        </dependency>
        <dependency>
            <groupId>javax</groupId>
            <artifactId>javaee-api</artifactId>
            <version>7.0</version>
        </dependency>
        <dependency>
            <groupId>javax.persistence</groupId>
            <artifactId>persistence-api</artifactId>
            <version>1.0.2</version>
        </dependency>
    </dependencies>


</project>

package com.app.spring.nauka.web.controllers;


import com.app.spring.nauka.logic.country.services.CountryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;


/**
 * Created by wiktor on 26.02.2016.
 */
@Controller
public class HomeController {

    @Autowired
    private CountryService countryService;

    @RequestMapping(value = "/greeting", method = RequestMethod.GET)
    public String greeting() {

        System.out.println("Lotniska w Polsce" + countryService.getAirportInfo("Poland"));
        return "welcome";
    }


}



package com.app.spring.nauka.logic.country.services;
import com.app.spring.nauka.webservice.Airport;
import org.springframework.stereotype.Service;

import javax.xml.ws.WebServiceRef;

/**
 * Created by Wiktor on 20.05.2016.
 */
@Service
public class CountryService  {

    @WebServiceRef
    private Airport airport;

    public CountryService() {
    }

    public String getAirportInfo(String country)
    {
        String result = airport.getAirportSoap().getAirportInformationByCountry(country);

        return result;
    }
}
![user image](http://imgur.com/uYzw4Z2)
![user image](http://imgur.com/JluW1SB)



0

No nawet masz podpowiedz przeciez: "A WebService annotation is not present..."

1 użytkowników online, w tym zalogowanych: 0, gości: 1