I use wildfily 8.0.0.alpha4 and eclipse kepler ide and try to implement basic ws-security web service. These are my codes :
===== IHelloWorld Interface
@WebService ( targetNamespace = "http://www.aaa.com/jbossws/ws-extensions/wssecurity" )
@PolicySets({"WS-SP-EX223_WSS11_Anonymous_X509_Sign_Encrypt"})
public interface IHelloWorld {
@WebMethod
@WebResult
public String sayHello(@WebParam String name);
}
=====HelloWorld.java
@WebService(
portName = "HelloWorldServicePort",
serviceName = "HelloWorldService",
targetNamespace = "http://www.aaa.com/jbossws/ws-extensions/wssecurity",
endpointInterface = "com.aaa.ws.IHelloWorld"
)
@EndpointConfig(configFile = "WEB-INF/jaxws-endpoint-config.xml", configName = "Custom WS-Security Endpoint") // this line does not throw exceptions even for the bug !!!
public class HelloWorld implements IHelloWorld {
@Override
public String sayHello(String name) {
// TODO Auto-generated method stub
return "Hello " + name;
}
}
====== jaxws-endpoint-config.xml
<endpoint-config>
<config-name>Custom WS-Security Endpoint-BugMe1</config-name>
<property>
<property-name>ws-security.signature.properties-BugMe2</property-name>
<property-value>META-INF/server.properties</property-value>
</property>
<property>
<property-name>ws-security.encryption.properties</property-name>
<property-value>META-INF/server.properties</property-value>
</property>
.....
@EndpointConfig annotation throws no exception for the misprinting bug of jaxws-endpoint-config.xml. Even more, deployment of the web service is successful.
Do i miss something? Or is the bug of JBossTools?
I need your advice desperately. Thanks in advanced !