<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1" import="axis2.tutorial.*" import="java.text.SimpleDateFormat" %> Axis tutorial client <% String _id = request.getParameter("id"); %>

Choose an CD ID :

"/>
<% if (_id!=null) { Long id = null; try { id = Long.parseLong(_id); } catch (Exception e) { out.write("Please enter a number...
"); } if (id!=null) { // --- Calling the service Axis2TutorialStub stub = new Axis2TutorialStub(); Axis2TutorialStub.GetById requestObject = new Axis2TutorialStub.GetById(); requestObject.setIn(id); Axis2TutorialStub.CD cd = stub.GetById(requestObject).getOut(); if (cd==null) { out.write("

No CD found with this id

"); } else { SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy"); out.write("

"+cd.getName()+"

"); out.write(""); } } } %>