<%-- 
    Document   : index
    Created on : 14-dic-2010, 15.49.03
    Author     : Fulvio
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Travel Agency</title>
    </head>
    <body>
        <h2>Hello World!</h2>
        
        
        
        
        
    <%-- start web service invocation --%><hr/>
    <%
    try {
	org.netbeans.j2ee.wsdl.travelwsdl.TravelWSDLService service = new org.netbeans.j2ee.wsdl.travelwsdl.TravelWSDLService();
	org.netbeans.j2ee.wsdl.travelwsdl.TravelWSDLPortType port = service.getTravelWSDLPort();
	 // TODO initialize WS operation arguments here
	org.netbeans.xml.schema.travelxsd.InputComplex input = new org.netbeans.xml.schema.travelxsd.InputComplex();
        input.setName("fulvio");
        input.setDestination("roma");
        input.setSource("milano");
        input.setSeats(1);
        input.setDays(2);
	org.netbeans.xml.schema.travelxsd.OutputComplex result = port.travelWSDLOperation(input);
	out.println("Result = "+result.getTicket());
    } catch (Exception ex) {
	// TODO handle custom exceptions here
    }
    %>
    <%-- end web service invocation --%><hr/>
    </body>
</html>
