Renga
Renga

Reputation: 119

Creating web services client from WSDL in Java

I am given a WSDL file. I need to call a SOAP web service in the WSDL. I would like to know the different ways of creating a web service clients from a WSDL in java. It would be helpful if the options are given with examples, links, pros and cons. I am now confused with different options like wsimport, wsdl2java, java2wsdl, saaj, apache axis, cxf, spring etc. Your help is much appreciated.

Upvotes: 0

Views: 1704

Answers (3)

Dim
Dim

Reputation: 11

SoapUI doesn't support WSDL 2.0

You may try an experimental wsdl-generic library from Apache Taverna

The library works with both WSDL 1.1 / 2.0 versions. The experimental branch creates XML tree based on Apache XML Schema 2.0 library, so you can easily create your XML message.

Then it dynamically calls the service via JAX-WS.

It also has a command-line WS executor!!!

Cheers,

D.

Upvotes: 1

Justinas Jakavonis
Justinas Jakavonis

Reputation: 8798

SoapUI is a quick solution with user interface to make initial tests for provided web service methods. Later you can use wsdl2java with specific options to generate Java classes from WSDL and make jar which you will include in your project.

Upvotes: 0

JasonZhao
JasonZhao

Reputation: 82

I was working on a project using Salesforce SOAP API, and here is a link of the guide for using WSDL to generate java lib:

https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_quickstart_import_WSDLs.htm

Hope it will help you.

Upvotes: 0

Related Questions