If my printprovider looks like this
printProvider = new GeoExt.data.PrintProvider({
method: "POST",
url: 'http://mygeoserver/geoserver/pdf',
autoLoad: true
});
In the json that is returned I have
printURL "http://localhost:8080/geoserver/pdf/print.pdf" and
createURL "http:/localhost:8080/geoserver/pdf/create.json"
When I try to print I get an error because
...proxy.py?url=http://localhost:8080/geoserver/pdf/create.json is bogus
Is there something wrong in my setup?
Do others see similar behavior and how do you handle it/fix it?
If I set up my printProvider to use the script tag in the head of the
html
<script type="text/javascript"
src="http://mygeoserver:8080/geoserver/pdf/info.json?var=printCapabiliti
es"></script>
printProvider = new GeoExt.data.PrintProvider({
method: "POST",
capabilities: printCapabilities // from the info.json
script in the html
});
In the printProvider.capabilities the urls are
printURL http://mygeoserver:8080/geoserver/pdf/print.pdf and
createURL http:/mygeoserver:8080/geoserver/pdf/create.json
everything works. I cannot use this in production because I have
customers behind firewalls that will not allow :8080 in the url
I received a answer to a previous printprovider post other day that
resolved my proxy problem and am using ext-override-ajax.js
I will post a comprehensive answer to my questions, hopefully in the
near future.
Ralph Dell
_______________________________________________
Users mailing list
[email protected]
http://www.geoext.org/cgi-bin/mailman/listinfo/users