<%@ page import = "samples.hello.*" %>

Hello Service!

<% String name = request.getParameter("name"); String pageUri = HttpUtils.getRequestURL(request).toString(); String SERVLET = "/servlet/hello/hello-service"; String serviceLocation = "http://lccalhost:8080/soaprmi"+SERVLET; if(pageUri != null) { int pos = pageUri.lastIndexOf('/'); String soaprmiUri = pageUri; if(pos != -1) { soaprmiUri = pageUri.substring(0, pos); } serviceLocation = soaprmiUri + SERVLET; } if(name != null) { %> Invoking hello service with name='<%=name%>' <% HelloService serverRef = (HelloService) soaprmi.soaprpc.SoapServices.getDefault().createStartpoint( serviceLocation, new Class[]{HelloService.class} ); String greeting = serverRef.sayHello(name); %>

Received <%=greeting%>. <% } %>

Send greeting to hello service: ">