tomcat 中使用 axis 的 Java webservice
我想问几个问题以确保我理解事情。
使用 tomcat 和 axis 创建 Web 服务时,我创建一个定义要公开的方法的接口。到目前为止,一切都很好。我还有几节课。我编译我的类(.class 文件,没有 jars)并将它们存储在 WEB-INF\classes 中..对吗?我对deploy.wsdd 文件进行硬编码,并通过使用Admin 或AdminClient(轴帮助器类)将deploy.wsdd 集成到server-config.wsdd 文件中。
一切正常。
问题:
WEB-INF\classes 目录中可以有类(.class 文件)吗?我应该创建一个 jar 或 war 文件并将其存储在某个地方吗???
我尝试使用java2wsdl(将interface.class作为输入)生成一个wsdl文件,然后生成wsdl2java。我这样做是为了生成deploy.wsdd 文件,然后将其集成到server-config.wsdd 文件中。生成的deploy.wsdd文件不正确,我的服务无法正常工作。我在这里缺少什么?有没有不同的方法来生成deploy.wsdd文件
帮助???
提前致谢。 西奥
I would like to ask a few questions to make sure that I understand things.
When creating a web service using tomcat and axis, I create an interface defining the methods that I am going to expose. so far so good. I have a couple more classes as well. I compile my classes (.class files no jars) an store them in WEB-INF\classes ..right?? I hardcode my deploy.wsdd file and by using Admin or AdminClient (axis helper classes) I integrate the deploy.wsdd to the server-config.wsdd file.
everything is working fine.
Questions:
Is it ok to have classes (.class files) in WEB-INF\classes directory?? should i create a jar or war file and store it somewhere???
I have tried using java2wsdl (giving it the interface.class as input) to produce a wsdl file and then wsdl2java. I did that in order to generate deploy.wsdd file and then integrate it in server-config.wsdd file. The deploy.wsdd file generated is not correct and my service is not working properly. What am i missing here?? is there a different way to generate the deploy.wsdd file?????
Help???
Thanx in advance.
Theo
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)