@Override public OWS build() { return new WPService( metadata, workspace, config ); }
WPSRequestType requestType = getRequestTypeByName( requestName ); checkVersion( getVersion( KVPUtils.getRequired( kvpParamsUC, "VERSION" ) ) ); case GetCapabilities: GetCapabilities getCapabilitiesRequest = GetCapabilitiesKVPParser.parse( kvpParamsUC ); doGetCapabilities( getCapabilitiesRequest, response ); break; case DescribeProcess: DescribeProcessRequest describeProcessRequest = DescribeProcessRequestKVPAdapter.parse100( kvpParamsUC ); doDescribeProcess( describeProcessRequest, response ); break; case Execute: ExecuteRequest executeRequest = ExecuteRequestKVPAdapter.parse100( kvpParamsUC, processManager.getProcesses() ); doExecute( executeRequest, response ); break; case GetOutput: doGetOutput( kvpParamsUC.get( "IDENTIFIER" ), response ); break; case GetResponseDocument: doGetResponseDocument( kvpParamsUC.get( "IDENTIFIER" ), response ); break; sendServiceException( new OWSException( e.getMessage(), OWSException.MISSING_PARAMETER_VALUE ), response ); } catch ( OWSException e ) { sendServiceException( e, response ); } catch ( XMLStreamException e ) { LOG.debug( e.getMessage() );
OMElement requestElement = soapDoc.getBody().getFirstElement(); try { WPSRequestType requestType = getRequestTypeByName( requestElement.getLocalName() ); Version requestVersion = getVersion( requestElement.getAttributeValue( new QName( "version" ) ) ); if ( requestType != WPSRequestType.GetCapabilities ) { checkVersion( requestVersion ); beginSOAPResponse( response ); doGetCapabilities( getCapabilitiesRequest, response ); break; case DescribeProcess: doDescribeProcess( describeProcessRequest, response ); break; case Execute: doExecute( executeRequest, response ); break; case GetOutput: endSOAPResponse( response ); sendSOAPException( soapDoc.getHeader(), factory, response, e, null, null, null, request.getServerName(), request.getCharacterEncoding() ); } catch ( XMLStreamException e ) {
WPSRequestType requestType = getRequestTypeByName( xmlStream.getLocalName() ); Version requestVersion = getVersion( xmlStream.getAttributeValue( null, "version" ) ); if ( requestType != WPSRequestType.GetCapabilities ) { checkVersion( requestVersion ); getCapabilitiesAdapter.load( xmlStream ); GetCapabilities getCapabilitiesRequest = getCapabilitiesAdapter.parse100(); doGetCapabilities( getCapabilitiesRequest, response ); break; case DescribeProcess: describeProcessAdapter.load( xmlStream ); DescribeProcessRequest describeProcessRequest = describeProcessAdapter.parse100(); doDescribeProcess( describeProcessRequest, response ); break; case Execute: executeAdapter.load( xmlStream ); ExecuteRequest executeRequest = executeAdapter.parse100(); doExecute( executeRequest, response ); break; case GetOutput: sendServiceException( e, response ); } catch ( XMLStreamException e ) { LOG.debug( e.getMessage() );