<!--
/**************************************************************************
*@author Chandar
*@version 1.0
*Development Environment : Oracle9i JDeveloper
*Name of the File : WebServicesTags.jsp
*Creation/Modification History :
* 02-Jun-2003 Created
*
*Overview:
*This JSP page accesses Java Web Service using OC4J JSP Web Services tags.
*************************************************************************/
-->
<%@ page contentType="text/html"%> <%@ taglib uri="http://xmlns.oracle.com/j2ee/jsp/tld/ws/wstaglib.tld" prefix="ws" %>
<HTML> <BODY> <% String zip = "94041"; %>
<ws:webservice id="weatherservice" wsdlUrl="http://www.xmethods.net/sd/2001/TemperatureService.wsdl " binding="TemperatureBinding" soapLocation="http://services.xmethods.net:80/soap/servlet/rpcrouter" scope="page"> <ws:property name="http.proxyHost" value="www-proxy.us.oracle.com"/> <ws:property name="http.proxyPort" value="80"/> </ws:webservice> <ws:invoke id="temperature" webservice="weatherservice" operation="getTemp"> <ws:part name="zipcode" value="<%=zip%>"/> </ws:invoke>
<B>The current temperature for city with zipcode = <%=zip%> is :</B>
<P><b><%= temperature%> </b></P>
</BODY>
</HTML>
|