com.ats.executor.drivers.engines.webservices.SoapOperation Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ats-automated-testing Show documentation
Show all versions of ats-automated-testing Show documentation
Code generator library to create and execute GUI automated tests
The newest version!
package com.ats.executor.drivers.engines.webservices;
public class SoapOperation {
private static final String SOAP_ENVELOPE_OPEN = "";
private static final String SOAP_ACTION = "<%1$s xmlns=\"%2$s\">%3$s%1$s>";
private static final String SOAP_ENVELOPE_CLOSE = " ";
private String headerName;
private String messageName;
public SoapOperation(String name) {
this.headerName = name;
this.messageName = name;
}
public String getEnvelope(String namespace, String data) {
return new StringBuilder().append(SOAP_ENVELOPE_OPEN).append(String.format(SOAP_ACTION, messageName, namespace, data)).append(SOAP_ENVELOPE_CLOSE).toString();
}
public String getHeaderName() {
return headerName;
}
public void setHeaderName(String name) {
this.headerName = name;
}
public String getMessageName() {
return messageName;
}
public void setMessageName(String messageName) {
if(messageName != null) {
this.messageName = messageName;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy