usar web servicie en aplicacion jsp
Publicado por Jonathan Martinez (1 intervención) el 06/06/2017 21:56:45
al parecer el metodo no recibe los valores de variable1 y variable2 me podrían ayudar
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JSP Page</title>
</head>
<body>
<h1>Hello World!</h1>
action ="miservelet" method="post" >
<input type="text" name="variable1"/>
<input type="text" name="variable2"/>
<input type="submit" name="calcular"/>
<br>
el resultado es ; <%-- start web service invocation --%><hr/>
<%
try {
sv.edu.ufg.ws.Wstriangulo_Service service = new sv.edu.ufg.ws.Wstriangulo_Service();
sv.edu.ufg.ws.Wstriangulo port = service.getWstrianguloPort();
// TODO initialize WS operation arguments here
double lado1 = 0.0d;
double lado2 = 0.0d;
// TODO process result here
double result = port.area(lado1, lado2);
out.println("Result = "+result);
} catch (Exception ex) {
// TODO handle custom exceptions here
}
%>
<%-- end web service invocation --%><hr/>
</form>
</body>
</html>
Valora esta pregunta


0