1. Use JBoss AS 7, (the one with EVERYTHING), not the Web profile version. The Web profile version doesn’t support Web Services.
2. Open standalone.xml and add the following:
<extension module="org.jboss.as.webservices"/>
and the following:
<subsystem xmlns="urn:jboss:domain:webservices:1.0" xmlns:javaee="http://java.sun.com/xml/ns/javaee" xmlns:jaxwsconfig="urn:jboss:jbossws-jaxws-config:4.0"> <wsdl-host> localhost </wsdl-host> <modify-wsdl-address> true </modify-wsdl-address> <endpoint-config> <jaxwsconfig:config-name> Standard-Endpoint-Config </jaxwsconfig:config-name> </endpoint-config> <endpoint-config> <jaxwsconfig:config-name> Recording-Endpoint-Config </jaxwsconfig:config-name> <jaxwsconfig:pre-handler-chains> <javaee:handler-chain> <javaee:protocol-bindings> ##SOAP11_HTTP ##SOAP11_HTTP_MTOM ##SOAP12_HTTP ##SOAP12_HTTP_MTOM </javaee:protocol-bindings> <javaee:handler> <javaee:handler-name> RecordingHandler </javaee:handler-name> <javaee:handler-class> org.jboss.ws.common.invocation.RecordingServerHandler </javaee:handler-class> </javaee:handler> </javaee:handler-chain> </jaxwsconfig:pre-handler-chains> </endpoint-config> </subsystem>
Some links, as reference: