users@jaxb.java.net

JAXB problem with "com.xyz.ReadSomething nor any of its super class is known to this context."

From: schneidc <simon.work_at_gmx.de>
Date: Fri, 21 May 2010 02:42:52 -0700 (PDT)

Hi,

I'm facing this error when calling a web service method and so far didn't
find any useful hints on the internet.

I generated all the classes for a web service client via wsimport and was
able to access the service. But I can't use the classes the web service
returns as my client expects classes from my domain and not the generated
ones.
So I copied all the annotations from the duplicate classes, pasted them into
my domain objects and deleted the generated ones. Of course I had to fix the
imports in the proxy classes for the methods or ObjectFactory etc...

But when I now try to call the service I get the error from the subject,
that the method is not known to this context. What confuses me even more is
that I applied the some procedure with other services and they work
flawlessly with my domain objects. Only this certain services is causing
this problem.

Ok, my domain object and the generated one slightly differ, but for a try I
replaced the generated object with the domain one, did the necessary
adjustments and it worked, "ReadSomething" got called, so the reason can't
be the differences in the classes. Somehow it seems to be the packages but
as I said, the procedure is working with other services.


I hope somebody has a tip for me on how to fix this. I truly don't want to
transform the returned objects into domain ones by hand.


Thanks
Simon
-- 
View this message in context: http://old.nabble.com/JAXB-problem-with-%22com.xyz.ReadSomething-nor-any-of-its-super-class-is-known-to-this-context.%22-tp28631676p28631676.html
Sent from the java.net - jaxb users mailing list archive at Nabble.com.