问题描述
我在哪里找不到如何从服务器框架(java pojo的)创建Web服务的地方.使用JAXWS的wsdl.我看到的唯一教程是在NetBeans中使用自动向导,在eclipse中使用axis2.有人可以给我提示如何从给定的wsdl生成服务器端类吗?
i can't find any where how to create web service from server skeletons ( java pojo's )fromwsdl using JAXWS. The only tutorials I see are using automated wizard in NetBeans and and axis2 in eclipse. Can someone please give me hints on how to generate server side classes from given wsdl?
谢谢
更新:
我只需要做:
wsimport.bat -Xendorsed SOAP.WSDL
并创建了工件.但是现在如何在服务器中实现它?
UPADATE:
I just need to do :
wsimport.bat -Xendorsed SOAP.WSDL
and it creates the artifacts.But now how do I implement it in the server ?
推荐答案
除了客户端类,wsimport还会生成SEI(服务端点接口).您需要做的就是为此创建一个实现.
In addition to client side classes, wsimport also generates a SEI (Service Endpoint Interface). All you need to do is creating an implementation for that.
然后它应该已准备就绪,可以在您的应用程序服务器中进行部署了.
Then it should be ready for deployment in your application server.
答案扩展:
如果您使用的是Metro,则这是有关如何映射SEI的教程和SIB(服务实施Bean)添加到配置文件,并准备将其部署.
If you are using Metro, this is a tutorial on how to map your SEI and SIB (Service Implementation Bean) to the config files and get it ready for deployment.
这篇关于如何从wsdl中创建JAXWS Web服务服务器框架(不在IDE中)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!