ExceptionText_on_GetCapabilities.patch
qgswfssourceselect.cpp (working copy) | ||
---|---|---|
159 | 159 |
return 1; //error |
160 | 160 |
} |
161 | 161 | |
162 |
// TODO: test against multiple services and exceptions |
|
163 |
// |
|
164 |
// WFS-1.0 specs contain an example of exception response at page 17 |
|
165 |
// That one contains http://www.opengis.net/ogc as a namespace for the ServiceExceptionReport |
|
166 |
// |
|
167 |
QDomNodeList exlist = capabilitiesDocument.elementsByTagName( "ExceptionText" ); |
|
168 |
if ( exlist.length() ) { |
|
169 |
QDomElement ex = exlist.at( 0 ).toElement(); |
|
170 |
QMessageBox::critical( 0, tr( "Error" ), ex.firstChild().nodeValue() ); |
|
171 |
return 1; |
|
172 |
} |
|
162 | 173 | |
163 | 174 | |
164 | 175 |
//get the <FeatureType> elements |