How to create a generic method which invokes Web Service
943678Jun 14 2012 — edited Jun 14 2012Hi I have a question how to create Web Service client. In design mode I can't specify static url ?WSDL and process.
I found briliant method in apache cxf library.
for example
JaxWsDynamicClientFactory dcf = JaxWsDynamicClientFactory.newInstance();
Client clientA = dcf.createClient("http://soabpm-vm:8001/soa-infra/services/default/MailSender/mailsender_client_ep?WSDL");
Object[] resultA;
try{
resultA = clientA.invoke(new QName("http://xmlns.oracle.com/SynchDSBpel20/MailSender/MailSender", "process"), "@", "body", "topic");
}catch (Exception e){}
In my case I should create a method with params (urls ?WSDL, URI, operetion name, param1, praram2, param3)
Is there anything like CXF in ADF library's?