throw new NoSuchElementException("Operation metadata not found for "
+ expectedOperationName + " in the capabilities document");
}
private URL getDescribeFeatureTypeURLGet(String typeName, String outputFormat) {
final FeatureTypeType typeInfo = getFeatureTypeInfo(typeName);
final URL describeFeatureTypeUrl = getOperationURL(DESCRIBE_FEATURETYPE, false);
Map<String, String> kvp = new HashMap<String, String>();
kvp.put("SERVICE", "WFS");
kvp.put("VERSION", getServiceVersion().toString());
kvp.put("REQUEST", "DescribeFeatureType");
kvp.put("TYPENAME", typeName);
QName name = typeInfo.getName();
if (!XMLConstants.DEFAULT_NS_PREFIX.equals(name.getPrefix())) {
String nsUri = name.getNamespaceURI();
kvp.put("NAMESPACE", "xmlns(" + name.getPrefix() + "=" + nsUri + ")");
}