priceline
priceline

Reputation: 3327

Have WSDL, need to generate services (step by step instructions)

Any documentation on creating a service and deploy to JBoss from WSDL? I have found several on the net, struggling to choose the correct/optimal approach. Using spring is also okay.

I have created WSDL from eclipse based on my requirements. Now, How do i generate request/response from WSDL? and then stubs. I also can use Intellij if it simplifies things.

I did generate a service, but i had to strip out so many jar files (jboss related) from my ear file before deploying to make it work. Any help generating ear file will be helpful too.

JDK 1.6; JBoss 5.1; Eclipse Indigo or Intellij Idea (11.1.4)

I know this question has been asked several times, but as i mentioned tons of information on the web, getting confused with several approaches.

Upvotes: 0

Views: 2232

Answers (2)

Nazar Annagurban
Nazar Annagurban

Reputation: 336

If you are using Maven, you can use the jaxws-maven-plugin to generate artifacts. You can find a simple maven project for generating artifacts from a WSDL, here (wsimport)

Step-by-step:

  1. Generate Java artifacts from your WSDL. (Use wsimport tool or Maven plugin)
  2. Implement the generated Service Endpoint Interface.
  3. Deploy.

Upvotes: 1

evandongen
evandongen

Reputation: 2065

If you want to start with Spring-WS, the obvious starting point is the documentation. You probably want to use a marshalling framework like JAXB to generate classes based on your WSDL. Based on those classes you can create @Endpoint annotated classes. In such an endpoint, you can create methods which are annotated with @PayloadRoot and @RequestPayLoad - based on that combination it will be mapped to a specific operation in the WSDL. Check out this page in the documentation for more information on annotating methods.

Upvotes: 0

Related Questions