In my previous post, I've shown how to quickly create a WSDL/SOAP based web service. This post will build on top of that to include WS-Security. We'll be using simple username/password authentication.
wget on Windows
5 years ago
Random thoughts on Linux, Java, security and other technical stuff...
package com.techtots.services; import javax.jws.WebMethod; import javax.jws.WebParam; import javax.jws.WebResult; import javax.jws.WebService; import javax.xml.bind.annotation.XmlElement; import com.techtots.contracts.UserRegisterRequest; import com.techtots.contracts.UserRegisterResponse; @WebService public interface UserService { @WebMethod @WebResult(name = "userRegisterResponse") public @XmlElement(required = true, nillable = false) UserRegisterResponse registerUser( @XmlElement(required = true, nillable = false) @WebParam(name = "userRegisterRequest") UserRegisterRequest userRegisterRequest); }
org.apache.cxf cxf-rt-frontend-jaxws 3.1.6 org.apache.cxf cxf-rt-transports-http 3.1.6