Polymorphism support in Web Service is a big problem?------- 怎样在Web service 中实现多态这一难题?

Kylix_XP 2003-12-17 03:12:00
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
...全文
59 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
PHMan 2004-01-01
  • 打赏
  • 举报
回复
what is your problem?

"
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.
"
You can not get the result format when you pass the different class instances?


Kylix_XP 2003-12-18
  • 打赏
  • 举报
回复
up

67,513

社区成员

发帖
与我相关
我的任务
社区描述
J2EE只是Java企业应用。我们需要一个跨J2SE/WEB/EJB的微容器,保护我们的业务核心组件(中间件),以延续它的生命力,而不是依赖J2SE/J2EE版本。
社区管理员
  • Java EE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧