3

I want to generate service implementation from WSDL (Top down approach) in Java but I dont want to use any tool. For example If we want to create stubs we can use wsimport.

Please let me know if this is a duplicate question.

Thanks

3
  • Are you sure, that you really don't want to use existing tools for generating web services from WSDL? That means a lot of work, which could be done in a seconds with help of IDE(Eclipse or Idea) or wsdl2java tool for example. Commented Oct 12, 2015 at 7:06
  • I know that from Eclipse we can do that easily but I want to do that in IntelliJ if there is any way. Commented Oct 12, 2015 at 7:07
  • Not sure, if it could be done without some plugins. There is one I know about, but not sure, is it supported now, because it's not a new one axis.apache.org/axis2/java/core/tools/idea/… Commented Oct 12, 2015 at 7:18

2 Answers 2

1

If you don't want to use any tool to generate code or stubs, maybe you would like to use Spring WebServices. This way you only create an EndPoint able to process WS messages, that is, you only worry about implementing server logic.

With this approach you can define beans to marshalling, using jaxb2 (or another), and the EndPoint brings you functionality to receive not XML payload, but Java Objects instead.

If you don't want to genereta code or stubs, I think Spring WS is nice for you.

If you don't want to use any tool at all, then sorry for my answer, but I believed what you didn't want is to generate code.

Sign up to request clarification or add additional context in comments.

2 Comments

Thanks for replying...i want to generate code...to you my question is suppose if I generate client through wsimport and I provide impl file. Can both be used as service?
Sorry not sure. I don't use wsimport. If that serve for you I used ws services implemented with wsimport using SpringWS without considering wsimport implementation.
0

Below is the Maven plugins which create Java from WSDL:

Axis :

Axis plugin

CXF

CXF plugin

1 Comment

Thanks for replying but I am looking for revers, WSDL to java also not the client...I want service

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.