Prev | Current Page 220 | Next

Binildas A Christudas

"Service-Oriented Java Business Integration"


To do that, we have to use the wsdl2java ant task. Let us first declare the task definition
and execute that task to generate stub classes, as shown in the following code:
classname="org.apache.axis.tools.ant.wsdl.Wsdl2javaAntTask"
loaderref="axis" >



fork="true"
failonerror="true">











Chapter 8
[ 159 ]
The task will extract the details from the WSDL and generate the following
client-side artifacts in the ch08\BindEjb\03_AxisClient\src folder:
com\binildas\esb\bindejb\HelloServiceBIBindingStub.java
com\binildas\esb\bindejb\HelloServiceBIService.java
com\binildas\esb\bindejb\HelloServiceBIServiceLocator.java
com\binildas\esb\bindejb\JsrEjbEPPortType.java
Remember that the above WSDL from where the Axis tool generated the client-side
artifacts is, in fact, the WSDL retrieved from the ServiceMix ESB.


Pages:
208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232