Java Reference
In-Depth Information
TicketSOAPServiceItf, Serializable {
. . . .
}
As you can see, the @org.jboss.ws.api.annotation.Webcontext annotation
basically reflects the same configuration options as that of POJO-based web services, with
BASIC authentication and unrestricted WSDL access.
Note
The @WebContext annotation can be found in the following dependency:
<dependency>
<groupId>org.jboss.ws</groupId>
<artifactId>jbossws-api</artifactId>
<version>1.0.2.Final</version>
<scope>provided</scope>
</dependency>
The @org.jboss.ejb3.annotation.SecurityDomain annotation should be
familiar to you since we introduced it to illustrate how to secure an EJB. As you can see,
it's a replacement for the information contained in the jboss-web.xml file, except that
the security domain is referenced directly by dbdomain (instead of java:/jaas/db-
domain ).
Note
The previous security configuration can also be specified by means of the META-INF/
ejb-jar.xml and META-INF/jboss-ejb3.xml file in case you prefer using
standard configuration files.
To pass your login credentials to the web service, you can use the RequestContext
object:
final TicketWebService infoService =
service.getPort(TicketWebService.class);
Map<String, Object> requestContext = ((BindingProvider)
infoService).getRequestContext();
requestContext.put(BindingProvider.USERNAME_PROPERTY,
Search WWH ::




Custom Search