<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.26.0">
</HEAD>
<BODY TEXT="#1a1a1a" LINK="#0000ff" BGCOLOR="#ffffff" BACKGROUND="file:///home/ajuarez">
Thanks Andreas,<BR>
<BR>
I was change the code with your suggestion, and change the url for the ip, only my local examples.<BR>
I am checking with firebug, and send me a request rare, that request I am puting in the end of this mail.<BR>
<BR>
<FONT SIZE="2"><TT><I><!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd"></I></TT></FONT><BR>
<FONT SIZE="2"><TT><I><html xmlns="<A HREF="http://www.w3.org/1999/xhtml">http://www.w3.org/1999/xhtml</A>"></I></TT></FONT><BR>
<FONT SIZE="2"><TT><I><head></I></TT></FONT><BR>
<FONT SIZE="2"><TT><I>        <title>Prueba 1a</title></I></TT></FONT><BR>
<FONT SIZE="2"><TT><I></head></I></TT></FONT><BR>
<FONT SIZE="2"><TT><I> <script src="http://www.openlayers.org/dev/OpenLayers.js" type="text/javascript"></I></TT></FONT><BR>
<FONT SIZE="2"><TT><I> </script></I></TT></FONT><BR>
<BR>
<BR>
<FONT SIZE="2"><TT><I><body BGCOLOR=#CCCC98 onload="load();"></I></TT></FONT><BR>
<BR>
<FONT SIZE="2"><TT><I><div id="map" style="width: 800px; height: 500px; top:-3px; left:-350px; border: 9px solid #EBE9D4;"></div></I></TT></FONT><BR>
<BR>
<FONT SIZE="2"><TT><I><script type="text/javascript"></I></TT></FONT><BR>
<FONT SIZE="2"><TT><I>function load() {</I></TT></FONT><BR>
<FONT SIZE="2"><TT><I>        format = 'image/png';</I></TT></FONT><BR>
<FONT SIZE="2"><TT><I>        var options = {</I></TT></FONT><BR>
<FONT SIZE="2"><TT><I>        </I></TT></FONT><BR>
<FONT SIZE="2"><TT><I> controls:[</I></TT></FONT><BR>
<FONT SIZE="2"><TT><I>                        new OpenLayers.Control.Navigation(),</I></TT></FONT><BR>
<FONT SIZE="2"><TT><I>                        new OpenLayers.Control.PanZoomBar(),</I></TT></FONT><BR>
<FONT SIZE="2"><TT><I>                        new OpenLayers.Control.LayerSwitcher({'ascending':false}),</I></TT></FONT><BR>
<FONT SIZE="2"><TT><I>                        new OpenLayers.Control.ScaleLine(),</I></TT></FONT><BR>
<FONT SIZE="2"><TT><I>                        new OpenLayers.Control.MousePosition(),</I></TT></FONT><BR>
<FONT SIZE="2"><TT><I>                        new OpenLayers.Control.KeyboardDefaults() ],</I></TT></FONT><BR>
<FONT SIZE="2"><TT><I>                numZoomLevels: 31,units: 'm' };</I></TT></FONT><BR>
<FONT SIZE="2"><TT><I>        var map = new OpenLayers.Map("map", options);</I></TT></FONT><BR>
<BR>
<FONT SIZE="2"><TT><I>        l1 = new OpenLayers.Layer.WMS(</I></TT></FONT><BR>
<FONT SIZE="2"><TT><I> 'Limites', "<A HREF="http://172.16.23.21:8080/geoserver/wms">http://172.16.23.21:8080/geoserver/wms</A>",</I></TT></FONT><BR>
<FONT SIZE="2"><TT><I> {layers: 'sde:SPF_CATASTRO.LMA',</I></TT></FONT><BR>
<FONT SIZE="2"><TT><I> srs: 'EPSG:900913',</I></TT></FONT><BR>
<FONT SIZE="2"><TT><I>                        transparent: true,</I></TT></FONT><BR>
<FONT SIZE="2"><TT><I> format: format,</I></TT></FONT><BR>
<FONT SIZE="2"><TT><I> tiled: 'true'</I></TT></FONT><BR>
<FONT SIZE="2"><TT><I> },{singleTile: true, isBaseLayer: true});</I></TT></FONT><BR>
<FONT SIZE="2"><TT><I>        l1.setVisibility(true); </I></TT></FONT><BR>
<FONT SIZE="2"><TT><I> map.addLayer(l1);</I></TT></FONT><BR>
<BR>
<FONT SIZE="2"><TT><I>        var layer = new OpenLayers.Layer.Vector("WFS", {</I></TT></FONT><BR>
<FONT SIZE="2"><TT><I> strategies: [new OpenLayers.Strategy.BBOX()],</I></TT></FONT><BR>
<FONT SIZE="2"><TT><I> protocol: new OpenLayers.Protocol.WFS({</I></TT></FONT><BR>
<FONT SIZE="2"><TT><I> url: "<A HREF="http://172.16.23.21:8080/geoserver/wfs">http://172.16.23.21:8080/geoserver/wfs</A>",</I></TT></FONT><BR>
<FONT SIZE="2"><TT><I> featureType: "sde:DTYT.SSC_RUTAS_2009",</I></TT></FONT><BR>
<FONT SIZE="2"><TT><I> featureNS: "<A HREF="http://geoserver.sf.net">http://geoserver.sf.net</A>",</I></TT></FONT><BR>
<FONT SIZE="2"><TT><I> version: "1.1.0",</I></TT></FONT><BR>
<FONT SIZE="2"><TT><I> srsName: "EPSG:4326"</I></TT></FONT><BR>
<FONT SIZE="2"><TT><I> }) });</I></TT></FONT><BR>
<BR>
<FONT SIZE="2"><TT><I>/*        var layer2 = new OpenLayers.Layer.WFS( </I></TT></FONT><BR>
<FONT SIZE="2"><TT><I> 'schools', "<A HREF="http://172.16.23.21:8080/geoserver/wfs">http://172.16.23.21:8080/geoserver/wfs</A>",</I></TT></FONT><BR>
<FONT SIZE="2"><TT><I> {typename: 'TYT:rutas_2009',maxfeatures: 10}, </I></TT></FONT><BR>
<FONT SIZE="2"><TT><I> { featureClass: OpenLayers.Feature.WFS}); */</I></TT></FONT><BR>
<FONT SIZE="2"><TT><I> map.addLayer(layer);</I></TT></FONT><BR>
<FONT SIZE="2"><TT><I>map.setCenter(new OpenLayers.LonLat(-99.854736328125,20.80875529543977), 9); </I></TT></FONT><BR>
<BR>
<FONT SIZE="2"><TT><I>}</I></TT></FONT><BR>
<FONT SIZE="2"><TT><I></script></I></TT></FONT><BR>
<BR>
<FONT SIZE="2"><TT><I></body></I></TT></FONT><BR>
<FONT SIZE="2"><TT><I></html></I></TT></FONT><BR>
<BR>
this is the request from firebug<BR>
<BR>
<BR>
<PRE>
<I><B><FONT SIZE="2"><?xml version="1.0" encoding="UTF-8"?></FONT></B></I>
<I><B><FONT SIZE="2"><ows:ExceptionReport version="1.0.0"</FONT></B></I>
<I><B><FONT SIZE="2"> xsi:schemaLocation="http://www.opengis.net/ows http://172.16.23.21:8080/geoserver/schemas/ows/1.0.0/owsExceptionReport.xsd"</FONT></B></I>
<I><B><FONT SIZE="2"> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ows="http://www.opengis.net/ows"></FONT></B></I>
<I><B><FONT SIZE="2"> <ows:Exception exceptionCode="NoApplicableCode"></FONT></B></I>
<I><B><FONT SIZE="2"> <ows:ExceptionText>Could not locate {http://geoserver.sf.net}sde:DTYT.SSC_RUTAS_2009 in catalog.</ows:ExceptionText></FONT></B></I>
<I><B><FONT SIZE="2"> </ows:Exception></FONT></B></I>
<I><B><FONT SIZE="2"></ows:ExceptionReport</FONT></B></I><TT>></TT>
</PRE>
<BR>
<BR>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
-- <BR>
Arturo Juárez Lima <<A HREF="mailto:ajuarez@queretaro.gob.mx">ajuarez@queretaro.gob.mx</A>><BR>
GEQ
</TD>
</TR>
</TABLE>
<BR>
<BR>
El jue, 29-10-2009 a las 16:32 +0100, Andreas Hocevar escribió:<BR>
<BLOCKQUOTE TYPE=CITE>
<TT><FONT COLOR="#1a1a1a">var layer = new OpenLayers.Layer.Vector("WFS", {</FONT></TT><BR>
<TT><FONT COLOR="#1a1a1a"> strategies: [new OpenLayers.Strategy.BBOX()],</FONT></TT><BR>
<TT><FONT COLOR="#1a1a1a"> protocol: new OpenLayers.Protocol.WFS({</FONT></TT><BR>
<TT><FONT COLOR="#1a1a1a"> url: "<A HREF="http://www.aplicanet.gob.mx:8080/geoserver/wfs">http://www.aplicanet.gob.mx:8080/geoserver/wfs</A>",</FONT></TT><BR>
<TT><FONT COLOR="#1a1a1a"> featureType: "DTYT.SSC_RUTAS_2009",</FONT></TT><BR>
<TT><FONT COLOR="#1a1a1a"> featureNS: "<A HREF="http://geoserver.sf.net">http://geoserver.sf.net</A>",</FONT></TT><BR>
<TT><FONT COLOR="#1a1a1a"> version: "1.1.0",</FONT></TT><BR>
<TT><FONT COLOR="#1a1a1a"> srsName: "EPSG:4326"</FONT></TT><BR>
<TT><FONT COLOR="#1a1a1a"> })</FONT></TT><BR>
<TT><FONT COLOR="#1a1a1a"> });</FONT></TT>
</BLOCKQUOTE>
</BODY>
</HTML>