I'm not sure whether I really understand the problem and what works and what
not. (One paragraph says that the hacked classes don't work, another one
says "did [...] adjustments [...] and it worked.) But it does look like a
package/namespaces misfit. Consider adding a package-info.java with an
XmlSchema annotation to your own patched domain classes, according to:
https://jaxb.dev.java.net/tutorial/section_6_2_3-Annotations-for-the-Schema-XmlSchema.html#Annotations%20for%20the%20Schema:%20XmlSchema
-W
2010/5/21 schneidc <simon.work_at_gmx.de>
>
> 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.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
> For additional commands, e-mail: users-help_at_jaxb.dev.java.net
>
>