简体   繁体   English

如何使用jboss部署wsdl

[英]How to deploy wsdl using jboss

I had created wsdl file using the axis codegen(JAVA2WSDL). 我已经使用轴代码生成器(JAVA2WSDL)创建了wsdl文件。 The wsdl got generated on the local hard disk. 在本地硬盘上生成了wsdl。 I want to use it in order to call the methods exposed via it. 我想使用它来调用通过它公开的方法。
To do so, I think I have to deploy it in the server(am using JBoss). 为此,我认为我必须将其部署在服务器中(使用JBoss)。 Can anyone tell me how I can do it ? 谁能告诉我我该怎么做? Main aim is to access the methods exposed by the wsdl. 主要目的是访问wsdl公开的方法。

Imp: I want to add that I had created the wsdl using axis codegen, and it doesen't have annotations like @webmethod or @webservice 小鬼:我想补充一点,我已经使用轴编码生成了wsdl,它没有像@webmethod或@webservice这样的注释。

Thanks 谢谢

-Aj -Aj

Quite simply, you would create a Web project and export it in a EAR file. 很简单,您将创建一个Web项目并将其导出到EAR文件中。 The EAR file would then contain a WAR file that would have all your generated class and WSDL. 然后,EAR文件将包含一个WAR文件,该文件将包含所有生成的类和WSDL。

What I do, is create a simple Web project in Eclipse, write my Services class and generate a web service using a tool like Axis. 我要做的是在Eclipse中创建一个简单的Web项目,编写我的Services类,并使用Axis之类的工具生成Web服务。 That way, Axis puts relevant servlets and filters on my web.xml and I export it to its relevant archive file (EAR/WAR) to publish to my application Server. 这样,Axis将相关的servlet和过滤器放在我的web.xml中,然后将其导出到其相关的归档文件(EAR / WAR)中,以发布到我的应用程序服务器中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM