Polymorphism support in Web Service is a big problem?------- 怎样在Web service 中实现多态这一难题?
For example, let us create an interface called TextFormatter and its two implementing classes, SimpleTextFormatter and PrettyTextFormatter. I want to pass these classes as parameters to my Web service. The Web service has a method:
public String format(TextFormatter formatter, String[] args)
I call this method remotely twice; the first time with the SimpleTextFormatter instance and the second time with the PrettyTextFormater instance. I want the right class to be used for the text formatting. Polymorphism in Weblogic application Server for Java assures that the correct class instance will be created on the Web service side during the parameter deserialization (either SimpleTextFormatter or PrettyTextFormatter) and will be passed to the Web service implementation class.
关于axis 或者weblogic web 服务中实现多态..,请高手指点一二..
偶客户端用C#,服务端用J2EE