Hi,
hello Jervis,
i'm try to use cxf with a developed framework. This are 3 kind of
problem that i have:
1). when a web service return an application object, the generated
wsdl return more
fields than the necessary to transfer. how can i configure cxf to
define the fields
to transfer?
I do not understand what you mean . Do you want to JAXB marshal part of
the fileds?
You can do it by annotating @XmlTransient to the filed you do not want
to expose :
public class USAAddress {
@XmlTransient
public String name;
public String time;
}
2). when a web service return a List (or a class that extends an implementation
of List) the generated wsdl not recognize a sequence of elements. Can
i change this?
Can you give us a wsdl or soap message segment ? I do not get what you
exactly mean .
3). I have a hierarchy of object that extend from a base class. I want
to define a web
service with a parameter whose type is the base class. Can I do this?
(the generated wsdl only define the base class and don't their subclasses).
Another problem is that I can only create instances
of these objects using a builder.
You can do it. If you hava CXF source code , you can refer to
type_substitution system test.
Cheers
Jim