Order order = spooler_task.order();
Web_service_operation operation = order.web_service_operation();
if (operation == null) throw new Exception( "no web service operation available" );
Web_service_request request = operation.request();
if (request == null) throw new Exception( "no web service request available" );
spooler_log.debug3( "content of web service request:\n" + request.string_content() );
// should the request be previously transformed ...
if (spooler_task.params().value("request_stylesheet") != null && spooler_task.params().value("request_stylesheet").length() > 0) {
Xslt_stylesheet stylesheet = spooler.create_xslt_stylesheet();
stylesheet.load_file(spooler_task.params().value("request_stylesheet"));
xml_document = stylesheet.apply_xml(request.string_content());
spooler_log.debug3( "content of request transformation:\n" + xml_document );
} else {
xml_document = request.string_content();
}
SOSXMLXPath xpath = new sos.xml.SOSXMLXPath(new StringBuffer(xml_document));
// add order parameters from request xml element /params
Variable_set params = spooler.create_variable_set();