To integrate the epostcode web services with Java Server Pages, we have developed a sample web application that provides an example of a simple browser based interface.
Please
click here to download the JSP sample project.
Installation:
1) Install Tomcat v5.0 or higher.
2) Deploy the WAR file or the webapp it contains.
3) Open the project or invoke the index.jsp in a browser.
The ePostcode_JSP.rar file structure is as follows:
/ePostcode.war : The web application WAR file.
/WEB-INF
/classes : Contains Java class files for Axis.
/lib : Contains Axis JAR files.
/META-INF : Contains meta information about the WAR file.
/src : Contains Java source code (Axis-created Java stubs).
/Images : Image files.
/css : Css files.
/index.jsp : JSP file for Quick Address search.
/readme.txt : This readme file.
Note:
1) For Convenience Axis JAR files that are required for this samples are included (/WEB-INF/lib).
2) Class files that are part of com.epostcode.ws packages were created using Axis wsdl2java utility.
Example:
c:\>java org.apache.axis.wsdl.WSDL2Java http://ws.epostcode.com/uk/PostcodeServices09.asmx?WSDL
For more information on jars and WSDL2Java utility, see http://ws.apache.org/axis/