wood burning stoves 2.0*
The moose likes Web Services and the fly likes Spring WS + wsdl + contract First Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Spring WS + wsdl + contract First" Watch "Spring WS + wsdl + contract First" New topic
Author

Spring WS + wsdl + contract First

Prachi Pandey
Greenhorn

Joined: Aug 22, 2011
Posts: 13
Hi,

I am expected to work rather consume a web service develop by 3rd party. I need to develop web service client code and I am suppose to use Spring WS. What I have now is a wsdl from them and I have to set up everything here with scratch. Can any one help me in detailing each step or process to get that done in layman language?


Thanks
Prachi
Jesus Angeles
Ranch Hand

Joined: Feb 26, 2005
Posts: 2053
Layman's language. Try this:
1. download eclipse ide
2. create java web project, and copy the wsdl inside, e.g. webcontent folder (refresh project if needed)
3. right-click the wsdl and choose what you need like 'generate client', etc.

After a few seconds, you got a nice client ready to go.
Prachi Pandey
Greenhorn

Joined: Aug 22, 2011
Posts: 13
Well.. I want my ant to create those bean classes .

Thanks
Prachi
Jesus Angeles
Ranch Hand

Joined: Feb 26, 2005
Posts: 2053
Look at wsdl to java implementations.

You can also look at Spring's JaxWsPortProxyFactoryBean.
Prachi Pandey
Greenhorn

Joined: Aug 22, 2011
Posts: 13
I am referring this tutorial now but it seems that Maven is pre dominantly used here. May be I need to get maven too. I am feeling that Spring WS is much more complex than Apache Axis2 or JAX-ws ...but being client requirement I have to take up Spring only

Thanks
Prachi
Prachi Pandey
Greenhorn

Joined: Aug 22, 2011
Posts: 13
Hi,

How to create Java bean classes from wsdl in spring ws ? Can anyone help me ?




Thanks
Prachi
William P O'Sullivan
Ranch Hand

Joined: Mar 28, 2012
Posts: 859

Try SOAPUI.

WP
Prachi Pandey
Greenhorn

Joined: Aug 22, 2011
Posts: 13
I guess I asked in complete question. I want to frame my question again..

How to create Java bean classes from wsdl using Ant in spring ws ?

Thanks
Prachi
William P O'Sullivan
Ranch Hand

Joined: Mar 28, 2012
Posts: 859

Ant is just a tool.

You need to download/install the wsdl2java application.
Then your build.xml can simply invoke it and generate your Java client components.

WP
Prachi Pandey
Greenhorn

Joined: Aug 22, 2011
Posts: 13
Hi,

When you say WSDL2JAVA you are talking about Apache Axis I believe and my client's requirement is to make use of Spring WS only. Any thoughts ?

Thanks
Prachi
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Spring WS + wsdl + contract First