This week's book giveaway is in the Beginning Java forum.
We're giving away four copies of Get Programming with Java (MEAP only) and have Peggy Fisher on-line!
See this thread for details.
Win a copy of Get Programming with Java (MEAP only) this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Liutauras Vilda
  • Tim Cooke
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Ron McLeod
  • Ganesh Patekar
  • salvin francis
  • Tim Holloway
  • Carey Brown
  • Stephan van Hulst

Having difficulties setting up Web Service (No serializer found for class example.Car)  RSS feed

Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I am experiencing some difficulties setting up a very simple Web Service.
I made a Web Service which has 2 methods: getCars() and getCarById(int id).
Whenever I tried to run getCarById(int id) I used to get an error saying there was no serializer found for class example.Car. I searched the internet and came across something called "beanMapping" so I added this line to my server-config.wsdd:

From now on, I am getting this error:
Exception in thread "main" org.xml.sax.SAXException: Deserializing parameter 'id': could not find deserializer for type {http://DefaultNamespace}int

Does anyone know what I am doing wrong here?
I've uploaded the source code of the service here:

The client code looks like this:

public class testClient {
public static void main(String[] args) {
CarServiceService service = new CarServiceService();
CarService carService = service.getCarService();
//GetCarsReturn cars = carService.getCars();
Car car = carService.getCarById(1);

Ofcourse it has a service package which is created after passing the wsdl file. This service package contains:


If you open the box, you will find Heisenberg strangling Shrodenger's cat. And waving this tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!