<% /****************************************************************************** * Copyright (c) 2000-2004 e-Deal * * e-Deal S.A. * 55 rue Brillat Savarin * 75013 Paris * France * * T: +33 (0)1 53 80 80 30 * F: +33 (0)1 73 01 69 77 * http://www.e-deal.com * * La diffusion de ce code source sous quelque forme que ce soit sans * l'autorisation de E-DEAL est interdite. * * Vous êtes autorisés à modifier ce code source uniquement pour votre usage * propre et sous réserve que les mentions de copyright demeurent intactes. * * Ce code est fourni en l'état. Aucune garantie d'aucune sorte, explicite ou * implicite n'est donnée. En aucun cas E-DEAL ne pourra être tenu pour * responsable des dommages pouvant résulter de l'utilisation de ce code * source. * * ******************************************************************************/ %><%@page session="true" import="java.util.*,com.edeal.frontline.*,com.edeal.frontline.services.*,com.edeal.frontline.services.yellowpages.*"%> <%@taglib uri="http://www.e-deal.com/taglib/fl" prefix="fl" %><% final org.apache.commons.logging.Log logger = org.apache.commons.logging.LogFactory.getLog(getClass()); String contextPath = (String)session.getAttribute("contextPath"); if(contextPath == null) { contextPath = request.getContextPath(); } FlContext context = Frontline.getContext(contextPath); DataDictionary dico = context.getDataDictionary(); String pPhone=Utils.getRequestParameter(context,request,"phone"); YellowPagesServiceClient yellowPagesServiceClient; yellowPagesServiceClient = (YellowPagesServiceClient)context.getServiceManager().getServiceClient(session, "YellowPages"); yellowPagesServiceClient.initialize(); yellowPagesServiceClient.authenticate(); YellowPagesServiceResponse yellowPagesServiceResponse = yellowPagesServiceClient.getCompanyFromPhone(pPhone); %> Nb Reponse: <%= yellowPagesServiceResponse.getNbOfResponse() %>
Résultat: <%= yellowPagesServiceResponse.getEntities().toString() %>