Skip to Content

Car Rental Web service

I am trying out the CarRental example that comes with the Web AS 6.30 (from the CD distributed during Tech Ed Las Vegas).

I took the following steps in order to publish the Car Rental as a "Web service"

- Created the entity bean (QuickBookingBean) and the stateless session bean (QuickOrderProcessorBean)

- Created a Web service definition for the stateless session bean

- Created a Jar archive for the bean (the archive now also includes the Web services related deployment descriptor, I think)

- Created an enterprise application archive

- Tried to Deploy

I am getting an error during the deployment - Complex type for the QuickCarRentalService could not be handled.

Question:

- Do I have to also create and include a Web application in order to deploy the Web service? Please note that in my steps above, I have not created a Servlet, JSP pages, etc. Would that be causing the problem?

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • author's profile photo
    Former Member
    Oct 29, 2003 at 08:57 PM

    Hello Sanjay,

    you do not have to include a Web application in order to deploy a web service.

    Did you follow the tutorial developing and deploying this web service? If yes, you could download the prebuild project for this tutorial from SDN and try to deploy it.

    If you are developing and deploying own Web Services we recommend that you first build and deploy the EJB without Web Services definitions. If this works than add the Web Services definition and try deployment again. In this case we will at least know if the problem is related to the Web Service (the error message indicates that) or to deployment in general.

    Cheers

    Ivo

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Sanjay,

      I just learned that what you suggest is already being built into the product and will be available in the next version of Web AS.

      Many greetings

      Ivo