ibm.com/developerWorks
Presented by developerWorks, your source for great tutorials
return this.id;
}
public void setId(Integer id) {
this.id = id;
}
}
Declaring Type Mappings in the WSDD
The
HRSystem
Service has a similar Ant build script and structure to the last example.
Except now you have to add custom serializers. Luckily Axis provides serializers for
Arrays
and
Beans
. This is exactly what you need since you have an Array of Beans
(
DeptValue[]
to be exact). Notice that the additions to Axis Web Service Deployment
Descriptor for the
DeptValue
are as follows:
xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
>
value="http://localhost:8080/hrsys/hessian"/>
value="com.caucho.hessian.HessianContextFactory"/>
value="http://localhost:8080/hrsys/services/HRService"/>
value="HRSystemService"/>
value="HRService"/>
value="HRSystem"/>
value="getDepartments"/>
>
Page 26 of 33
Service enable EJB SessionBeans with the IBM ETTK
footer
Our partners:
PHP: Hypertext Preprocessor Best Web Hosting
Java Web Hosting
Jsp Web Hosting
Cheapest Web Hosting
Visionwebhosting.net Business web hosting division of Web
Design Plus. All rights reserved