简体   繁体   English

Debian / Linux中具有Java 1.6和Tomcat6的Web服务

[英]Web Service with Java 1.6 and Tomcat6 in Debian / Linux

I tried to develop a very simple Java WebService with Jdeveloper 12 (a single string variable with getter and setter). 我尝试使用Jdeveloper 12(带有getter和setter的单个字符串变量)开发非常简单的Java WebService。 I tried debugging it on Windows and all went fine (I can get and set the values on the variable). 我尝试在Windows上调试它,但一切正常(我可以获取并设置变量的值)。

I created the " .war " file but when I try to develop to tomcat (with basic configuration) 我创建了“ .war ”文件,但是当我尝试开发tomcat时(使用基本配置)

I can't see it on available webservices nor I can't access it... 我无法在可用的Web服务上看到它,也无法访问它...

I'm trying to develop it on Debian 6.0.7 . 我正在尝试在Debian 6.0.7上进行开发。

I didn't find the settings to change the port where the webservice is listening on too. 我也没有找到更改网络服务监听端口的设置。

I'll accept tutorial with Eclipse or Netbeans. 我将接受Eclipse或Netbeans的教程。

Does anyone know a guide or a complete tutorial from the developing to the deploy of the web service? 有谁知道从开发Web服务到部署Web服务的指南或完整教程? I need to know how to configure the various .xml files to let it working.. 我需要知道如何配置各种.xml文件以使其工作。

I Assume you are trying to deploy to tomcat. 我假设您正在尝试部署到tomcat。 Have you used any frameworks to convert your java program into a web service? 您是否使用过任何框架将Java程序转换为Web服务? Is there any " .wsdl " file which you can locate? 您可以找到任何“ .wsdl”文件吗?

  1. Create a java class with a string variable setter and getter 用字符串变量setter和getter创建一个Java类
  2. Expose this class as a webservice (Can be done by any frameworks ex: axis, cxf etc.) 将此类作为Web服务公开(可以通过任何框架(例如:axis,cxf等)完成)
  3. The framework provides with a wsdl file and a war if you built it. 该框架提供了一个wsdl文件和一个war(如果您构建了它)。
  4. Then deploy war file to any server. 然后将war文件部署到任何服务器。

Did you miss the points 2 & 3 ? 您是否错过了第2点和第3点?

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

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