

You must specify one of either destFile or destDir, although you cannot specify both. However, clientgen also provides a destFile attribute if you want the Ant task to compile the Java files for you and package them, along with the other generated artifacts, into the specified JAR file. You typically use the destDir attribute of clientgen to specify the directory into which all the artifacts should be generated, and then compile the generate Java files yourself using the javac Ant task. Java EE clients, such as EJBs, JSPs, and Web Services, that use the Java EE client container.Stand-alone Java clients that do not use the Java Platform, Enterprise Edition (Java EE) Version 5 client container.The Ant tasks, however, expect that two classes were compiled, thus resulting in an error similar to the following: So when you compile the files on Windows, the second class file overwrites the first, and you end up with only one class file.
APACHE ANT DOC WINDOWS
This means that Windows considers the files MyReturnType.java and MYRETURNTYPE.java to have the same name. However, compiling these source files into their respective class files might cause a problem if you are running the Ant task on Microsoft Windows, because Windows is a case insensitive operating system. This means that if, for example, the XML Schema file specifies two user-defined types whose names differ only in their capitalization (for example, MyReturnType and MYRETURNTYPE), the clientgen Ant task correctly generates two separate sets of Java source files for the Java representation of the user-defined data type: MyReturnType.java and MYRETURNTYPE.java. The Ant tasks process these files in a case-sensitive way. Many WebLogic Web Service Ant tasks have attributes that you can use to specify a file, such as a WSDL or an XML Schema file.

APACHE ANT DOC UPDATE
The Java Ant utility included in WebLogic Server uses the ant (UNIX) or ant.bat (Windows) configuration files in the WL_HOME \server\bin directory to set various Ant-specific variables, where WL_HOME is the top-level directory of your WebLogic Server installation If you need to update these Ant variables, make the relevant changes to the appropriate file for your operating system.ĭifferences in Operating System Case Sensitivity When Manipulating WSDL and XML Schema Files To determine the version of Ant that is bundled with WebLogic Server, run the following command after setting your WebLogic environment: The Apache Jakarta Web site publishes online documentation for only the most current version of Ant, which might be different from the version of Ant that is bundled with WebLogic Server. The Apache Web site provides other useful Ant tasks for packaging EAR, WAR, and EJB JAR files. BEA provides a number of Ant tasks that help you generate important Web Service-related artifacts. Ant uses XML-based configuration files (called build.xml by default) to execute tasks written in Java.

Overview of WebLogic Web Services Ant TasksĪnt is a Java-based build tool, similar to the make command but much more powerful. Iterative Development of WebLogic Web Services Starting From a WSDL File: Main Steps.Iterative Development of WebLogic Web Services Starting From Java: Main Steps.
