Skip to content

Instantly share code, notes, and snippets.

@tassioauad
Created January 3, 2018 18:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tassioauad/dd220e0d0712a57de77c248e2d664f7c to your computer and use it in GitHub Desktop.
Save tassioauad/dd220e0d0712a57de77c248e2d664f7c to your computer and use it in GitHub Desktop.
Spring Boot + Apache CXF (JAX-WS)
import org.apache.cxf.Bus;
import org.apache.cxf.jaxws.EndpointImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import javax.xml.ws.Endpoint;
@Configuration
public class WebServiceConfig {
@Autowired
private Bus bus;
@Bean
public Endpoint endpoint() {
EndpointImpl endpoint = new EndpointImpl(bus, new HelloPortImpl());
endpoint.publish("/Hello");
return endpoint;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment