Dear List,
I have recently tried GS 2.2.4 and 2.2.5 and I am unable to get JSON respone against a wfs request encapsulated inside callback function .
Tried the following URL :
http://localhost:8082/geoserver/ows?service=WFS&request=GetFeature&version=1.0.0&typeName=topp:states&BBOX=-75.102613,40.212597,-72.361859,41.512517,EPSG:4326&outputFormat=json&format_options=callback:setData
Server log shows that format_options were received at geoserver`s end but did not take effect on response, has there been any changes or am I missing something because it seemed to work up till the release 2.2 from September 2012.
regards,
Imran
–
I.R
On Fri, Mar 1, 2013 at 10:41 PM, Imran Rajjad <rajjad@anonymised.com> wrote:
Dear List,
I have recently tried GS 2.2.4 and 2.2.5 and I am unable to get JSON respone against a wfs request encapsulated inside callback function .
Tried the following URL :
http://localhost:8082/geoserver/ows?service=WFS&request=GetFeature&version=1.0.0&typeName=topp:states&BBOX=-75.102613,40.212597,-72.361859,41.512517,EPSG:4326&outputFormat=json&format_options=callback:setData
Server log shows that format_options were received at geoserver`s end but did not take effect on response, has there been any changes or am I missing something because it seemed to work up till the release 2.2 from September 2012.
JSONP support has been disabled by default since it is perceived as a security issue:
http://docs.geoserver.org/latest/en/user/services/wfs/outputformats.html
Look in the docs, there is a system variable you can set to enable it.
Cheers
Andrea
–
Ing. Andrea Aime
@geowolf
Technical Lead
GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549
http://www.geo-solutions.it
http://twitter.com/geosolutions_it
Thanks a lot , found it here at http://docs.geoserver.org/stable/en/user/services/wms/global.html#wms-global-variables
set System variable ENABLE_JSONP=true and outFormat=text/javascript
regards,
Imran
On Sat, Mar 2, 2013 at 12:15 PM, Andrea Aime <andrea.aime@anonymised.com> wrote:
On Fri, Mar 1, 2013 at 10:41 PM, Imran Rajjad <rajjad@anonymised.com> wrote:
Dear List,
I have recently tried GS 2.2.4 and 2.2.5 and I am unable to get JSON respone against a wfs request encapsulated inside callback function .
Tried the following URL :
http://localhost:8082/geoserver/ows?service=WFS&request=GetFeature&version=1.0.0&typeName=topp:states&BBOX=-75.102613,40.212597,-72.361859,41.512517,EPSG:4326&outputFormat=json&format_options=callback:setData
Server log shows that format_options were received at geoserver`s end but did not take effect on response, has there been any changes or am I missing something because it seemed to work up till the release 2.2 from September 2012.
JSONP support has been disabled by default since it is perceived as a security issue:
http://docs.geoserver.org/latest/en/user/services/wfs/outputformats.html
Look in the docs, there is a system variable you can set to enable it.
Cheers
Andrea
–
Ing. Andrea Aime
@geowolf
Technical Lead
GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549
http://www.geo-solutions.it
http://twitter.com/geosolutions_it
–
I.R