private SoapOperation createSoapOperation(String portId, String name) { SoapOperation soapOperation = new SoapOperation(); soapOperation.setName(name); soapOperation.setPortId(portId); return soapOperation; }
soapOperation.setName(bindingOperation.getName()); soapOperation.setHttpMethod(HttpMethod.POST); soapOperation.setStatus(SoapOperationStatus.MOCKED);
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; } }
soapOperation.setInvokeAddress("http://localhost:8080" + CONTEXT + SLASH + MOCK + SLASH + SOAP + SLASH + PROJECT + SLASH + PROJECT_ID + SLASH + SOAP_PORT_ID); soapOperation.setName("SOAP operation name"); soapOperation.setNetworkDelay(0L); soapOperation.setResponseStrategy(SoapResponseStrategy.SEQUENCE);
SoapOperation operation = new SoapOperation(); operation.setId(operationV1.getId()); operation.setName(operationV1.getName()); operation.setResponseStrategy(operationV1.getResponseStrategy()); operation.setStatus(operationV1.getStatus());