Issue Type: Improvement Improvement
Affects Versions: 2.2.x
Assignee: Andrea Aime
Components: WFS, WMS
Created: 02/Aug/12 4:24 AM
Description:

I'm going to provide exceptions in json format patching:

  • WMSExceptionHandler
  • WFSExceptionHandler

WFS -------- Example ---------

http://localhost:8080/geoserver/wfs/?service=wfs
&version=1.1.0
&request=DescribeFeatureType
&typeName=topp:group
&outputFormat=text/_javascript_
&format_options=callback%3AgetLayerFeatures_MY
&EXCEPTIONS=text/_javascript_

-------- Result ---------

getLayerFeatures_MY({"ExceptionReport": {
"@version": "1.1.0",
"Exception": {
"@exceptionCode": "noApplicableCode",
"@exceptionLocator": "noLocator",
"ExceptionText": "Could not find type: {http://www.openplans.org/topp}group"
}
}})

WFS -------- Example ---------

http://localhost:8080/geoserver/wfs/?service=wfs
&version=1.1.0
&request=DescribeFeatureType
&typeName=topp:group&outputFormat=text/_javascript_
&format_options=callback%3AgetLayerFeatures_MY
&EXCEPTIONS=application/json

-------- Result ---------

{"ExceptionReport": {
"@version": "1.1.0",
"Exception": {
"@exceptionCode": "noApplicableCode",
"@exceptionLocator": "noLocator",
"ExceptionText": "Could not find type: {http://www.openplans.org/topp}group"
}
}}

WFS -------- Example ---------

http://localhost:8080/geoserver/wfs/?service=wfs
&version=1.1.0
&request=DescribeFeatureType
&typeName=topp:group
&outputFormat=text/_javascript_

-------- Result ---------

<ows:ExceptionReport xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ows="http://www.opengis.net/ows" version="1.0.0"xsi:schemaLocation="http://www.opengis.net/ows http://localhost:8080/geoserver/schemas/ows/1.0.0/owsExceptionReport.xsd">
<ows:Exception exceptionCode="NoApplicableCode">
<ows:ExceptionText>
Could not find type: {http://www.openplans.org/topp}group
</ows:ExceptionText>
</ows:Exception>
</ows:ExceptionReport>

--------------------------

Patch incoming

Project: GeoServer
Priority: Major Major
Reporter: carlo cancellieri
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to