// Path: step3_jaxws-endpoint-cxf-spring-boot/src/main/java/de/jonashackt/tutorial/endpoint/WeatherServiceEndpoint.java
// public class WeatherServiceEndpoint implements WeatherService {
// 
//     @Override
//     public ForecastReturn getCityForecastByZIP(ForecastRequest forecastRequest)
//             throws WeatherException {
//         // TODO Auto-generated method stub
//         return null;
//     }
//     
//     @Override
//     public WeatherInformationReturn getWeatherInformation(String zip)
//             throws WeatherException {
//         // TODO Auto-generated method stub
//         return null;
//     }
// 
//     @Override
//     public WeatherReturn getCityWeatherByZIP(ForecastRequest forecastRequest)
//             throws WeatherException {
//         // TODO Auto-generated method stub
//         return null;
//     }
// 
// }


import javax.xml.ws.Endpoint;
import org.apache.cxf.Bus;
import org.apache.cxf.bus.spring.SpringBus;
import org.apache.cxf.jaxws.EndpointImpl;
import org.apache.cxf.transport.servlet.CXFServlet;
import org.springframework.boot.context.embedded.ServletRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import de.codecentric.namespace.weatherservice.WeatherService;
import de.jonashackt.tutorial.endpoint.WeatherServiceEndpoint;
package de.jonashackt.tutorial.configuration;




@Configuration
public class WebServiceConfiguration {
	
    @Bean
    public ServletRegistrationBean cxfServlet() {
        return new ServletRegistrationBean(new CXFServlet(), "/soap-api/*");
    }

    @Bean(name = Bus.DEFAULT_BUS_ID)
    public SpringBus springBus() {
        return new SpringBus();
    }    
    
    @Bean
    public WeatherService weatherService() {
// Path: step3_jaxws-endpoint-cxf-spring-boot/src/main/java/de/jonashackt/tutorial/endpoint/WeatherServiceEndpoint.java
// public class WeatherServiceEndpoint implements WeatherService {
// 
//     @Override
//     public ForecastReturn getCityForecastByZIP(ForecastRequest forecastRequest)
//             throws WeatherException {
//         // TODO Auto-generated method stub
//         return null;
//     }
//     
//     @Override
//     public WeatherInformationReturn getWeatherInformation(String zip)
//             throws WeatherException {
//         // TODO Auto-generated method stub
//         return null;
//     }
// 
//     @Override
//     public WeatherReturn getCityWeatherByZIP(ForecastRequest forecastRequest)
//             throws WeatherException {
//         // TODO Auto-generated method stub
//         return null;
//     }
// 
// }


// Path: step3_jaxws-endpoint-cxf-spring-boot/src/main/java/de/jonashackt/tutorial/configuration/WebServiceConfiguration.java
import javax.xml.ws.Endpoint;
import org.apache.cxf.Bus;
import org.apache.cxf.bus.spring.SpringBus;
import org.apache.cxf.jaxws.EndpointImpl;
import org.apache.cxf.transport.servlet.CXFServlet;
import org.springframework.boot.context.embedded.ServletRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import de.codecentric.namespace.weatherservice.WeatherService;
import de.jonashackt.tutorial.endpoint.WeatherServiceEndpoint;

package de.jonashackt.tutorial.configuration;




@Configuration
public class WebServiceConfiguration {
	
    @Bean
    public ServletRegistrationBean cxfServlet() {
        return new ServletRegistrationBean(new CXFServlet(), "/soap-api/*");
    }

    @Bean(name = Bus.DEFAULT_BUS_ID)
    public SpringBus springBus() {
        return new SpringBus();
    }    
    
    @Bean
    public WeatherService weatherService() {
    	return new WeatherServiceEndpoint();