soapOperation.setForwardedEndpoint(address.getLocation()); soapOperation.setOriginalEndpoint(address.getLocation()); soapOperation.setSoapVersion(address.getVersion()); soapOperation.setMockResponses(new ArrayList<SoapMockResponse>()); soapOperation.setDefaultBody(generateDefaultBody(operationResponseIdentifier));
public static SoapOperation generateSoapOperation(){ final SoapOperation soapOperation = new SoapOperation(); soapOperation.setId("SOAP OPERATION"); soapOperation.setName("Soap operation name"); soapOperation.setCurrentResponseSequenceIndex(1); soapOperation.setDefaultBody("Default body"); soapOperation.setForwardedEndpoint("Forwarded event"); soapOperation.setInvokeAddress("Invoke address"); soapOperation.setOriginalEndpoint("Original endpoint"); soapOperation.setHttpMethod(HttpMethod.POST); soapOperation.setStatus(SoapOperationStatus.MOCKED); soapOperation.setSoapVersion(SoapVersion.SOAP11); soapOperation.setIdentifyStrategy(SoapOperationIdentifyStrategy.ELEMENT_NAMESPACE); soapOperation.setMockResponses(new ArrayList<SoapMockResponse>()); return soapOperation; } }
private SoapOperation createSoapOperation(String portId, HttpMethod method, SoapVersion soapVersion, String identifierName, String namespace) { SoapOperation soapOperation = new SoapOperation(); soapOperation.setPortId(portId); soapOperation.setHttpMethod(method); soapOperation.setSoapVersion(soapVersion); soapOperation.setIdentifyStrategy(SoapOperationIdentifyStrategy.ELEMENT_NAMESPACE); SoapOperationIdentifier soapOperationIdentifier = new SoapOperationIdentifier(); soapOperationIdentifier.setName(identifierName); soapOperationIdentifier.setNamespace(namespace); soapOperation.setOperationIdentifier(soapOperationIdentifier); return soapOperation; }
operation.setStatus(operationV1.getStatus()); operation.setHttpMethod(operationV1.getHttpMethod()); operation.setSoapVersion(operationV1.getSoapVersion()); operation.setDefaultBody(operationV1.getDefaultBody()); operation.setCurrentResponseSequenceIndex(operationV1.getCurrentResponseSequenceIndex());
existingSoapOperation.setSoapVersion(newSoapOperation.getSoapVersion()); this.operationRepository.update(existingSoapOperation.getId(), existingSoapOperation); } else {