Commit a57cec34 authored by Quxl's avatar Quxl

x

parent 31856385
......@@ -34,12 +34,12 @@ public class SAPServiceFactory {
@Value("${schneider.password}")
private String password;
public <T> T create(Class<T> requiredType, String WSDLPATH, QName serviceQName) {
public <T> T create(Class<T> requiredType, String wsdlLocation, QName serviceQName) {
assert requiredType != null : "WebService requiredType cannot be null";
assert WSDLPATH != null : "WebService WSDLPATH cannot be null";
assert wsdlLocation != null : "WebService wsdlLocation cannot be null";
assert serviceQName != null : "WebService serviceQName cannot be null";
try {
URL WSDL_URL = new URL(this.getAbsolutePath(WSDLPATH));
URL WSDL_URL = new URL(this.getAbsolutePath(wsdlLocation));
Service dyService = Service.create(WSDL_URL, serviceQName);
T service = dyService.getPort(requiredType);
ClientProxy.getClient(service).getOutInterceptors().add(getWSS4JOutInterceptor());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment