<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
<br><font style="font-size:12pt" color="#1F497D" face="Arial" size="3">This one may help you also, it worked for some people out there: http://www.webdeveloper.com/forum/showthread.php?t=187247<br><br>Cheers,<br><br><br><br><br>__________________________________________________________________________________________<br>Piensa en el medio ambie<font style="" face="Arial">nte - mantenlo en la pantalla. NO lo imprimas si NO es necesario.</font></font><font style="font-size:12pt" color="#1F497D" face="Arial" size="3"><br></font><font style="font-size:12pt" color="#1F497D" face="Arial" size="3">Think green - keep it on the screen. Do NOT print if it is NOT necessary.</font><font style="font-size:12pt" color="#1F497D" face="Arial" size="3"><br></font><font style="font-size:12pt" color="#1F497D" face="Arial" size="3"><span id="ecxresult_box" class="ecxshort_text" lang="de"><span class="ecxhps">Denken Sie an</span> <span class="ecxhps">die Umwelt</span></span></font><font style="font-size:12pt" color="#1F497D" face="Arial" size="3"><span id="ecxresult_box" lang="de"><span class="ecxhps"></span> <span class="ecxhps">-</span> <span class="ecxhps">bewahren Sie es</span> <span class="ecxhps">auf dem Bildschirm.</span> <span class="ecxhps">Drucken Sie NICHT</span><span>, wenn</span> <span class="ecxhps">es NICHT notwendig ist</span><span>.</span></span></font><br><br><br><div><div id="SkyDrivePlaceholder"></div><hr id="stopSpelling">From: gamejihou@hotmail.com<br>To: pedrocostaarma@sapo.pt; openlayers-users@lists.osgeo.org<br>Subject: RE: [OpenLayers-Users] Fwd: my vector data don't show up - wfs<br>Date: Wed, 4 Jul 2012 16:52:22 +0000<br><br>

<style><!--
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Tahoma;}

--></style>
<div dir="ltr">
<font style="font-size:12pt" color="#1F497D" face="Arial" size="3"><br>Hi Pedro,<br><br>I was reading about this error in google and it seems that this is one of the solutions, you have to use this: </font>
var url = 'proxy_php.php?fn=' + encodeURIComponent(src);<br><font style="font-size:12pt" color="#1F497D" face="Arial" size="3">it seems that the problem is ajax (as far I understand), but it can be firefox, try first in IE or safari to see what happens. Also this page is suggested about the php code above: </font>
http://developer.yahoo.com/javascript/howto-proxy.html<br><br><font style="font-size:12pt" color="#1F497D" face="Arial" size="3">This page is in spanish, it may help you: http://www.forosdelweb.com/f127/ayuda-access-restricted-uri-denied-599455/<br><br>Cheers,<br><br>Gery<br><br><br>__________________________________________________________________________________________<br>Piensa en el medio ambie<font style="" face="Arial">nte - mantenlo en la pantalla. NO lo imprimas si NO es necesario.</font></font><font style="font-size:12pt" color="#1F497D" face="Arial" size="3"><br></font><font style="font-size:12pt" color="#1F497D" face="Arial" size="3">Think green - keep it on the screen. Do NOT print if it is NOT necessary.</font><font style="font-size:12pt" color="#1F497D" face="Arial" size="3"><br></font><font style="font-size:12pt" color="#1F497D" face="Arial" size="3"><span id="ecxresult_box" class="ecxshort_text" lang="de"><span class="ecxhps">Denken Sie an</span> <span class="ecxhps">die Umwelt</span></span></font><font style="font-size:12pt" color="#1F497D" face="Arial" size="3"><span id="ecxresult_box" lang="de"><span class="ecxhps"></span> <span class="ecxhps">-</span> <span class="ecxhps">bewahren Sie es</span> <span class="ecxhps">auf dem Bildschirm.</span> <span class="ecxhps">Drucken Sie NICHT</span><span>, wenn</span> <span class="ecxhps">es NICHT notwendig ist</span><span>.</span></span></font><br><br><br><div><div id="ecxSkyDrivePlaceholder"></div><hr id="ecxstopSpelling">Date: Wed, 4 Jul 2012 15:04:39 +0100<br>From: pedrocostaarma@sapo.pt<br>To: gamejihou@hotmail.com; openlayers-users@lists.osgeo.org<br>Subject: Re: [OpenLayers-Users] Fwd: my vector data don't show up - wfs<br><br>
  
    
  
  
    <div class="ecxmoz-cite-prefix">Thank you Gery.<br>
      <br>
      Now my proxy is working but i got this error in firebug:<br>
      <br>
      <span role="presentation" class="ecxobjectBox ecxobjectBox-errorMessage
        ecxhasBreakSwitch "><span class="ecxerrorMessage ">'Access to
          restricted URI denied'</span></span><br>
      <br>
      <br>
      My code:<br>
      <br>
      <a class="ecxmoz-txt-link-freetext" href="http://pastebin.com/AGAFGSfn" target="_blank">http://pastebin.com/AGAFGSfn</a><br>
      <br>
      <br>
      <br>
      <br>
      <br>
      <br>
      <br>
      <br>
      Em 04-07-2012 11:37, Gery . escreveu:<br>
    </div>
    <blockquote cite="mid:DUB117-W2409D438E4A210B520A479B0E80@phx.gbl">
      <style><!--
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Tahoma;}

--></style>
      <div dir="ltr">
        <font style="" color="#1F497D"><font style="font-size:12pt" size="3"><font style="" face="Arial"><br>
              Hi Pedro, <br>
              <br>
              Glad to hear that it was useful to you and </font></font></font><font style="font-size:12pt" color="#1F497D" face="Arial" size="3">it
          worked. Well, I think you better do what this console says, it
          is a very clever one =)<br>
          If it says that it needs a proxy, it is very likely it needs
          one, just add the one you use, localhost:8080 or something
          like that, you can start playing with that and the FB console
          will tell you what to do after each step. Trust in this
          console, it's our friend =)<br>
          <br>
          Cheers,<br>
          <br>
          Gery<br>
          <br>
          <br>
          <br>
          <br>
          <br>
          <br>
          <br>
          <br>
__________________________________________________________________________________________<br>
          Piensa en el medio ambie<font style="" face="Arial">nte -
            mantenlo en la pantalla. NO lo imprimas si NO es necesario.</font></font><font style="font-size:12pt" color="#1F497D" face="Arial" size="3"><br>
        </font><font style="font-size:12pt" color="#1F497D" face="Arial" size="3">Think green - keep it on the screen. Do NOT print if
          it is NOT necessary.</font><font style="font-size:12pt" color="#1F497D" face="Arial" size="3"><br>
        </font><font style="font-size:12pt" color="#1F497D" face="Arial" size="3"><span id="ecxresult_box" class="ecxshort_text" lang="de"><span class="ecxhps">Denken Sie an</span> <span class="ecxhps">die Umwelt</span></span></font><font style="font-size:12pt" color="#1F497D" face="Arial" size="3"><span id="ecxresult_box" lang="de"><span class="ecxhps"></span> <span class="ecxhps">-</span> <span class="ecxhps">bewahren Sie
              es</span> <span class="ecxhps">auf dem Bildschirm.</span>
            <span class="ecxhps">Drucken Sie NICHT</span><span>, wenn</span>
            <span class="ecxhps">es NICHT notwendig ist</span><span>.</span></span></font><br>
        <br>
        <br>
        <div>
          <hr id="ecxstopSpelling">Date: Wed, 4 Jul 2012 11:33:24 +0100<br>
          From: <a class="ecxmoz-txt-link-abbreviated" href="mailto:pedrocostaarma@sapo.pt">pedrocostaarma@sapo.pt</a><br>
          To: <a class="ecxmoz-txt-link-abbreviated" href="mailto:gamejihou@hotmail.com">gamejihou@hotmail.com</a>; <a class="ecxmoz-txt-link-abbreviated" href="mailto:openlayers-users@lists.osgeo.org">openlayers-users@lists.osgeo.org</a><br>
          Subject: Re: [OpenLayers-Users] Fwd: my vector data don't show
          up - wfs<br>
          <br>
          <div class="ecxmoz-cite-prefix">Thanks Gery...<br>
            <br>
            I think that now i'm using ol firebug because i got alerts:<br>
            <br>
            <span role="presentation" class="ecxobjectBox
              ecxobjectBox-text ">proxyNeeded</span> <a class="ecxobjectLink
              ecxobjectLink-object ecxa11yFocus " target="_blank"><span class="ecxobjectTitle ">Object </span><span role="presentation" class="ecxobjectLeftBrace ">{</span>
              url<span role="presentation" class="ecxobjectEqual ">=</span><span role="presentation" class="ecxobjectBox
                ecxobjectBox-string ">"http://localhost:8080/geoserver/testes/wfs"</span><span role="presentation" class="ecxobjectComma "></span><span class="ecxobjectRightBrace ">}<br>
                <br>
                <br>
                This means i nedd proxy despite i'm using only local
                data?<br>
                <br>
                <br>
                Thanks<br>
              </span></a><br>
            <br>
            <br>
            <br>
            <br>
            <br>
            <br>
            <br>
            Em 04-07-2012 11:16, Gery . escreveu:<br>
          </div>
          <blockquote cite="mid:DUB117-W16A167F58C02C3116FCD0BB0E80@phx.gbl">
            <style><!--
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Tahoma;}

--></style>
            <div dir="ltr"> <font style="font-size:12pt" color="#1F497D" face="Arial" size="3"><br>
                Hola Pedro,<br>
                <br>
                I don't know if this helps, but you're using firebug as
                add-on of firefox or the one it comes with OpenLayers? I
                think you're using the first one. I've had better
                results (generally spoken) with the second one, just add
                the path of the javascript to your html <link>, I
                don't remember well the path but if I'm not wrong is
                /openlayers/lib/openlayers/Firebug.js, you can google it
                also. That js script is really useful, it tells in
                detail where the error is (ie. which js script and which
                line), at least in my case. Also, even though I don't
                work with geoserver or bing, I think you have to specify
                the projection in bing, but not sure. Sometimes I found
                that projection stuff is the one that *ucks everything.<br>
                <br>
                Hope this helps,<br>
                <br>
                Gery<br>
                <br>
                <br>
                <br>
                <br>
                <br>
                <br>
                <br>
                <br>
                <br>
                <br>
                <br>
                <br>
                <br>
                <br>
                <br>
                <br>
__________________________________________________________________________________________<br>
                Piensa en el medio ambie<font style="" face="Arial">nte
                  - mantenlo en la pantalla. NO lo imprimas si NO es
                  necesario.</font></font><font style="font-size:12pt" color="#1F497D" face="Arial" size="3"><br>
              </font><font style="font-size:12pt" color="#1F497D" face="Arial" size="3">Think green - keep it on the
                screen. Do NOT print if it is NOT necessary.</font><font style="font-size:12pt" color="#1F497D" face="Arial" size="3"><br>
              </font><font style="font-size:12pt" color="#1F497D" face="Arial" size="3"><span id="ecxresult_box" class="ecxshort_text" lang="de"><span class="ecxhps">Denken
                    Sie an</span> <span class="ecxhps">die Umwelt</span></span></font><font style="font-size:12pt" color="#1F497D" face="Arial" size="3"><span id="ecxresult_box" lang="de"><span class="ecxhps"></span> <span class="ecxhps">-</span>
                  <span class="ecxhps">bewahren Sie es</span> <span class="ecxhps">auf dem Bildschirm.</span> <span class="ecxhps">Drucken Sie NICHT</span><span>, wenn</span>
                  <span class="ecxhps">es NICHT notwendig ist</span><span>.</span></span></font><br>
              <br>
              <br>
              <div>
                <hr id="ecxstopSpelling">Date: Wed, 4 Jul 2012 11:06:36
                +0100<br>
                From: <a class="ecxmoz-txt-link-abbreviated" href="mailto:pedrocostaarma@sapo.pt">pedrocostaarma@sapo.pt</a><br>
                To: <a class="ecxmoz-txt-link-abbreviated" href="mailto:ramotswa@gmail.com">ramotswa@gmail.com</a>;
                <a class="ecxmoz-txt-link-abbreviated" href="mailto:openlayers-users@lists.osgeo.org">openlayers-users@lists.osgeo.org</a><br>
                Subject: Re: [OpenLayers-Users] Fwd: my vector data
                don't show up - wfs<br>
                <br>
                <div class="ecxmoz-cite-prefix">Also no erros on
                  console...<br>
                  <br>
                  Anybody have an ideia?<br>
                  <br>
                  all the code here:<br>
                  <br>
                  <a class="ecxmoz-txt-link-freetext" href="http://pastebin.com/mRnDC3UG" target="_blank">http://pastebin.com/mRnDC3UG</a><br>
                  <br>
                  <br>
                  <br>
                  Em 04-07-2012 10:58, Toby Reinicke escreveu:<br>
                </div>
                <blockquote cite="mid:E7DF3F34-A561-46C3-9134-38DB8466E504@gmail.com">
                  <div>Umm, yes, theoretically, although I'm slightly
                    confused why there is only one tab and hasn't got a
                    response one. Your syntax looks fine, although
                    others might be able to confirm that. As for proxy,
                    as you say you should be fine, and if it wasn't
                    you'd get some cross domain errors in your
                    console.. </div>
                  <div><br>
                  </div>
                  <div>Sorry I can't help more. </div>
                  <div><br>
                  </div>
                  <div>Toby</div>
                  <div><br>
                    <br>
                  </div>
                  <div><br>
                    On 4 Jul 2012, at 10:27, Pedro Costa <<a href="mailto:pedrocostaarma@sapo.pt">pedrocostaarma@sapo.pt</a>>


                    wrote:<br>
                    <br>
                  </div>
                  <blockquote>
                    <div> Hi Tobias,<br>
                      <br>
                      This(image attached)?<br>
                      <br>
                      <br>
                      <br>
                      <br>
                      <br>
                      <blockquote cite="mid:4FF40C03.30603@sapo.pt">
                        <div class="ecxmoz-cite-prefix"> <br>
                          Em 04-07-2012 10:21, Tobias Reinicke escreveu:<br>
                        </div>
                        <blockquote cite="mid:CAPitpCaZMrQ8CCis5r8a_9KZrK1AwNch-aqB7AfQyuZ8gAEfQQ@mail.gmail.com">If

                          you expand that "options.wfs" in the firebug
                          console, what does the "response" tab have in
                          it?
                          <div><br>
                          </div>
                          <div><br>
                            <br>
                            <div class="ecxgmail_quote">On 4 July 2012
                              10:09, Pedro Costa <span dir="ltr"><<a href="mailto:pedrocostaarma@sapo.pt">pedrocostaarma@sapo.pt</a>></span>
                              wrote:<br>
                              <blockquote class="ecxgmail_quote" style="border-left:1px\00000d\00000a                                #ccc\00000d\00000a\00000d\00000a                                solid;padding-left:1ex">
                                <div> <br>
                                  <div><br>
                                    I forgot image....<br>
                                    <br>
                                    <br>
                                    <div><br>
                                      <br>
                                      -------- Mensagem Original
                                      --------
                                      <table border="0" cellpadding="0" cellspacing="0">
                                        <tbody>
                                          <tr>
                                            <th align="RIGHT" valign="BASELINE">Assunto:
                                            </th>
                                            <td>my vector data don't
                                              show up - wfs</td>
                                          </tr>
                                          <tr>
                                            <th align="RIGHT" valign="BASELINE">Data: </th>
                                            <td>Wed, 04 Jul 2012
                                              09:56:54 +0100</td>
                                          </tr>
                                          <tr>
                                            <th align="RIGHT" valign="BASELINE">De: </th>
                                            <td>Pedro Costa <a href="mailto:pedrocostaarma@sapo.pt"><pedrocostaarma@sapo.pt></a></td>
                                          </tr>
                                          <tr>
                                            <th align="RIGHT" valign="BASELINE">Para: </th>
                                            <td><a href="mailto:openlayers-users@lists.osgeo.org">openlayers-users@lists.osgeo.org</a></td>
                                          </tr>
                                        </tbody>
                                      </table>
                                      <div class="ecxim"> <br>
                                        <br>
                                        <pre>Hi,

I'm trying to add vector data to my map from geoserver but data don't 
show up.
I tried like that:


var wfs = new OpenLayers.Layer.Vector("Equipamentos_WFS", {
            strategies: [new OpenLayers.Strategy.BBOX()],
            protocol: new OpenLayers.Protocol.WFS({
            url: <a href="http://localhost:8080/geoserver/testes/wfs" target="_blank">"http://localhost:8080/geoserver/testes/wfs"</a>,
            featurePrefix:"testes",
            featureType: "testes:equipamentos",
            featureNS: "<a href="http://namespacetestes.pt" target="_blank">namespacetestes.pt</a>",
            srsName: "EPSG:900913",
            geometryName: "the_geom",
            version: "1.0.0"
            })
            });

map.addLayer(wfs);

I'm using only data from localhost (my computer) so i don't need proxy 
right?
Using firebug I can see that the request is made, but returns nothing 
(image attached).

Can anybody help me?


Thanks
</pre>
                                        <br>
                                        <br>
                                      </div>
                                    </div>
                                    <br>
                                    <br>
                                    <br>
                                  </div>
                                  <br>
                                </div>
                                <br>
_______________________________________________<br>
                                Users mailing list<br>
                                <a href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a><br>
                                <a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><br>
                                <br>
                              </blockquote>
                            </div>
                            <br>
                          </div>
                        </blockquote>
                        <br>
                        <br>
                      </blockquote>
                      <br>
                      <br>
                    </div>
                  </blockquote>
                  <blockquote>
                    <div><request.png></div>
                  </blockquote>
                </blockquote>
                <br>
                <br>
                <br>
                _______________________________________________ Users
                mailing list <a class="ecxmoz-txt-link-abbreviated" href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a>
                <a class="ecxmoz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a></div>
            </div>
          </blockquote>
          <br>
          <br>
        </div>
      </div>
    </blockquote>
    <br>
    <br></div>                                        </div></div>                                        </div></body>
</html>