/**
* Main unit test method.
* @param args startup arguments
*/
public static void main(String[] args) {
RequestContext rc = null;
try {
rc = RequestContext.extract(null);
String cswCtx = "/csw";
String resPfx = "gpt/metadata/";
String testFolder = "C:/Projects/GPT10/Portal/src/testdata/cswxmls";
String path = testFolder+"/GetCapabilities_1.xml";
path = testFolder+"/DescribeRecord_1.xml";
//path = testFolder+"/GetCapabilities_1.xml";
//path = testFolder+"/GetRecordById_1.xml";
//path = testFolder+"/GetRecords_1.xml";
String xml = com.esri.gpt.framework.xml.XmlIoUtil.readXml(path);
System.err.println(xml);
IProviderFactory self = new ProviderFactory();
RequestHandler handler = self.makeRequestHandler(null,rc,cswCtx,resPfx);
OperationResponse opResponse = handler.handleXML(xml);
System.err.println(opResponse.getResponseXml());
} catch (Throwable t) {
t.printStackTrace(System.err);
} finally {
if (rc != null) rc.onExecutionPhaseCompleted();
}
}