| 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: 2036
|
|
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: 2036
|
|
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: 860
|
|
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: 860
|
|
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
|
 |
 |
|
|
subject: Spring WS + wsdl + contract First
|
|
|