Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to create a generic method which invokes Web Service

943678Jun 14 2012 — edited Jun 14 2012
Hi 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?
This post has been answered by Antonis Antoniou on Jun 14 2012
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 12 2012
Added on Jun 14 2012
3 comments
757 views