com.inpaas.http.impl.SOAPClientImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of inpaas-httpclient Show documentation
Show all versions of inpaas-httpclient Show documentation
HTTP Client for REST and SOAP Services
package com.inpaas.http.impl;
import java.util.Map;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.inpaas.http.api.HttpClientImport;
import com.inpaas.http.api.HttpClientInvocationBuilder;
import com.inpaas.http.model.HttpClientInvocation;
import com.inpaas.http.model.HttpService;
import com.inpaas.http.model.exception.ServiceImportException;
import com.inpaas.http.soap.WSDLClientInvocationBuilder;
import com.inpaas.http.soap.WSDLImportService;
public class SOAPClientImpl implements HttpClientImport, HttpClientInvocationBuilder {
protected static final Logger logger = LoggerFactory.getLogger(SOAPClientImpl.class);
@Override
public HttpService importService(String url) throws ServiceImportException {
logger.info("importWSDL: {}", url);
try {
return WSDLImportService.getInstance().readWsdl(url);
} catch (Throwable e) {
throw new ServiceImportException("error.wsdlimport", url, e);
}
}
@Override
public HttpClientInvocation buildRequest(HttpService service, String operationName, Map data) {
return WSDLClientInvocationBuilder.getInstance().buildRequest(service, operationName, data);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy