|
Ok,
finally I solved this issue.
First
I want to mention that I'm using Axis 1.2.1
The
major problem was, that while creating the stub, the inheriting class had not
been produced.
(It
was there, but only because I have two services in the same stub (or two
stubs in the same package) and it was produced by the other one, which I
haven't used, yet. That's why I didn't recognize the
problem.)
But
there was definiteley no entry in the XXXSoapBindingStub.java, so the
stub didn't know the class.
On the
other hand, the abstract class had been produced.
So why
did that happen?
I
found out the following:
In the
service I did not use the the inheriting class in a method and I only used the
abstract one as an array, like:
Message[] getMessage()
In
this case, the inheriting class is not generated. It's different if you mention
the abstract class somewhere in the service like this:
Message getMessage()
Then
the inheriting class will be generated, too, and there
will definiteley be an entry in the
XXXSoapBindingStub.java
Now
everything works fine! :-)
Well,
I'm a newbie in Webservices and maybe I did something wrong that's supposed to
be very simple,
but
perhaps this helps other novices not to fall into the same
trap.
Markus
########################################### |
Title: Abstract classes and inheritance
- AW: Abstract classes and inheritance Knötzinger Markus
- Re: Abstract classes and inheritance Ales St
- AW: Abstract classes and inheritance Knötzinger Markus
- AW: Abstract classes and inheritance Knötzinger Markus
