xcdev
asked on
Sending an abstract argument to a web service
Can I send an abstract argument to a web service ?
Instead of having 2 web service methods
helloWorld(Teacher);
helloWorld(Student);
Can I have:
helloWorld(Person)
When Teacher & Student extend the abstract Person.
Instead of having 2 web service methods
helloWorld(Teacher);
helloWorld(Student);
Can I have:
helloWorld(Person)
When Teacher & Student extend the abstract Person.
Maybe you can make Person and Interface ?
ASKER
Didn't get your solution.
Can you explain it?
Can you explain it?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I have a slight mistake in my question.
the argument I send isn't ABSTRACT.
It's a regular good class which one of its members is abstract
the argument I send isn't ABSTRACT.
It's a regular good class which one of its members is abstract
That sounds strange.
You are probably rather sending an instance of a class which inherits form abstract class.
You are probably rather sending an instance of a class which inherits form abstract class.
ASKER
After further investigation I am closing this question.
I'll re-post it after I'll figure my problem more accurately.
I'll re-post it after I'll figure my problem more accurately.
Same should apply as with my previous comment. Use @XmlSeeAlso to annotate the abstract class
ASKER
Unmarshalling Error: Unable to create an instance of Person
Is there a way to make it work with the abstract class?