Java Reference
In-Depth Information
Target Description
build-service Compile the Web Service class using the jwsc task, which generates
a WAR file. Has dependency on the jar target.
assemble-app
Create an EAR file from the EJB JAR file and the web service WAR
file. Has dependency on the build-service target.
deploy
Deploy the EAR file to the WebLogic server. Has dependency on the
assemble-app target.
build-client
Compile the web service client class with the clientgen task. Has
dependency on the build-client target.
run
Run the web service client class.
WebLogic Server provides a task for compiling a Web Service class: jwsc . We shall
be compiling the EJB3WSImpl class with the jwsc task, which uses the weblogic.
wsee.tools.anttasks.JwscTask class. Create a taskdef for the jwsc task:
<taskdef name="jwsc" classname="weblogic.wsee.tools.anttasks.
JwscTask">
<classpath>
<path refid="project.classpath"/>
</classpath>
</taskdef>
The jwsc Ant task ( http://download.oracle.com/docs/cd/E12840_01/wls/
docs103/webserv_ref/anttasks.html#wp1069899 ) takes an annotated JWS file as
input and generates all the artifacts required to create a web service. When the jwsc -
generated WAR file is deployed, the application server and the JAX-WS runtime
generate the WSDL file and any additional artifacts required to invoke the web service
from a client. The following artifacts get generated:
• Java Source iles that implement a standard web service, such as the
Service Endpoint Interface (SEI). For a JWS class EJB3WSImpl , an SEI
EJB3WSImplPortType.java gets created.
• Standard and WebLogic-speciic deployment descriptors. The standard
webservices.xml deployment descriptor and the JAX-RPC mapping files
get created. The WebLogic-specific web services deployment descriptor
weblogic-webservices.xml also gets created.
• The WSDL ile that describes the web service.
• The XML Schema representation of any Java user-deined types used as
parameters or return values of web service methods.
Search WWH ::




Custom Search