-
-
Save tassioauad/dd220e0d0712a57de77c248e2d664f7c to your computer and use it in GitHub Desktop.
Spring Boot + Apache CXF (JAX-WS)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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