can we expose SOAP service using LAC? How? I've got WSDL & service URL with me.
soap service live api creator lac
LAC does not have any built-in SOAP capabilities, but that does not mean that it cannot talk to SOAP -- it just means that you'll have to do the work yourself, or use something like the CA API Gateway, which can do some translation between SOAP and REST.
One way to have LAC talk to a SOAP API is simply to add a Java library for said SOAP API (usually generated from the WSDL) to your classpath (e.g. Tomcat/lib or whatever) and make calls to that library from your LAC logic (rules, events, etc...). It would typically look something like:
var DefaultWebService = Java.type("com.acme.service1.soap.DefaultWebService");
var defaultWebService = new DefaultWebService();var res = defaultWebService.getDefaultWebServiceHttpSoap11Endpoint().login("webservice","dadsadasdasd");
You can also use the standard Java SOAP API, something like:
var SOAPConnectionFactory = Java.type("javax.xml.soap.SOAPConnectionFactory");
var soapConnectionFactory = SOAPConnectionFactory.newInstance();
var MessageFactory = Java.type("javax.xml.soap.MessageFactory");
var messageFactory = MessageFactory.newInstance();
var soapMessage = messageFactory.createMessage();
Hi, tarma thanks for the response. I'm trying to include few JAVA libraries into LAC.
as per documentation i've included it in lib/ext and have restarted the LAC, but still i don't see that library anywhere in LAC.
anything i might be missing ?
One of the library is javax.xml.soap
Thanks for the help.
Retrieving data ...