private void createSerialized(WebProcessingServiceInput pInput, ProcessDescriptionType pProcessDescription, ExecuteDocument pExecuteDocument, Map<String, List<String>> pSerializedInputData) throws ExceptionReport InputType[] inputParameterList = pExecuteDocument.getExecute().getDataInputs().getInputArray();
InputType input = execute.getExecute().getDataInputs().addNewInput(); input.addNewIdentifier().setStringValue( inputDesc.getIdentifier().getStringValue());
InputType[] currentInputTypeArray = execute.getExecute().getDataInputs().getInputArray(); execute.getExecute().getDataInputs().setInputArray(newInputTypeArray);
private void createDeserialized(ProcessDescriptionType pProcessDescription, ExecuteDocument pExecuteDocument, Map<String, List<String>> pSerializedInputData, Map<String, List<IData>> pDeSerializedInputData) throws ExceptionReport InputType[] inputParameterList = pExecuteDocument.getExecute().getDataInputs().getInputArray();
/** * add an input element. sets the data in the xml request * * @param parameterID the ID of the input (see process description) * @param value the actual value as String (for xml data xml for binary data is should be base64 encoded data) * @param schema schema if applicable otherwise null * @param encoding encoding if not the default encoding (for default encoding set it to null) (i.e. binary data, use base64) * @param mimeType mimetype of the data, has to be set * @throws WPSClientException */ public void addComplexData(String parameterID, String value, String schema, String encoding, String mimeType) throws WPSClientException { InputDescriptionType inputDesc = getParameterDescription(parameterID); if (inputDesc == null) { throw new IllegalArgumentException("inputDesription is null for: " + parameterID); } if (inputDesc.getComplexData() == null) { throw new IllegalArgumentException("inputDescription is not of type ComplexData: " + parameterID); } InputType input = execute.getExecute().getDataInputs().addNewInput(); input.addNewIdentifier().setStringValue(inputDesc.getIdentifier().getStringValue()); ComplexDataType data = input.addNewData().addNewComplexData(); setComplexData(data, value, schema, mimeType, encoding); }
InputHandler parser = new InputHandler(pExecuteDocument.getExecute().getDataInputs().getInputArray(), algorithmIdentifier); Map<String, List<IData>> inputParameter = parser.getParsedInputData(); WebProcessingServiceInput input = new WebProcessingServiceInput(inputParameter);
.addNewInput(); input.addNewIdentifier().setStringValue( inputDesc.getIdentifier().getStringValue());
inputs = getExecute().getDataInputs().getInputArray();
/** * Add literal data to the request * @param parameterID the ID of the input paramter according to the describe process * @param value the value. other types than strings have to be converted to string. The datatype is automatically determined and set accordingly to the process description */ public void addLiteralData(String parameterID, String value) { InputDescriptionType inputDesc = this.getParameterDescription(parameterID); if (inputDesc == null) { throw new IllegalArgumentException("inputDescription is null for: " + parameterID); } if (inputDesc.getLiteralData() == null) { throw new IllegalArgumentException("inputDescription is not of type literalData: " + parameterID); } InputType input = execute.getExecute().getDataInputs().addNewInput(); input.addNewIdentifier().setStringValue(parameterID); input.addNewData().addNewLiteralData().setStringValue(value); DomainMetadataType dataType = inputDesc.getLiteralData().getDataType(); if (dataType != null) { input.getData().getLiteralData().setDataType(dataType.getReference()); } }
inputs=new InputType[0]; else inputs = getExecute().getDataInputs().getInputArray();
+ key, ExceptionReport.MISSING_PARAMETER_VALUE); InputType input = dataInputs.addNewInput(); input.addNewIdentifier().setStringValue(key);
request = request + processDesc.getIdentifier().getStringValue(); request = request + "&DataInputs="; InputType[] inputs = execute.getExecute().getDataInputs().getInputArray(); int inputCounter = 0; for(InputType input : inputs){
InputType input = execute.getExecute().getDataInputs().addNewInput(); input.addNewIdentifier().setStringValue(parameterID); input.addNewReference().setHref(value);