i hav created one web service its flow is as follows

1. jsp page calls servlet
2. servlet collect all elements of jsp pages, creates one class object and set all values into that object
3. but when this object is passed to method using port type object inside client side stub it is giving null pointer exception for the same object which is passed to it.

how to resolve this exception ?