%@ page language="java" contentType="text/html;charset=Shift_JIS" %> <%@ page pageEncoding="Shift_JIS" %> <%@ page import="org.apache.axis.client.Call, org.apache.axis.client.Service,org.apache.axis.encoding.XMLType, javax.xml.rpc.ParameterMode, ushiws.shiten.* " %>
<% /*** String endpoint = "http://localhost:8766/app04/services/ShitenFinder"; Service service = new Service(); Call call = (Call) service.createCall(); call.setTargetEndpointAddress(new java.net.URL(endpoint)); call.setOperationName("findByCode"); call.addParameter("shitenCode", XMLType.XSD_STRING, ParameterMode.IN); call.setReturnType(new javax.xml.namespace.QName("http://shiten.ushiws", "Shiten")); call.setReturnClass(ushiws.shiten.Shiten.class); ***/ ShitenFinderService service = new ShitenFinderServiceLocator(); ShitenFinder sf = service.getShitenFinder(); Shiten s = sf.findByCode("00300"); if(s == null){ out.println("該当データはありませんでした。"); } else{ out.println("支店コード=" + s.getShitenCode() + "