简体   繁体   English

可以在Web服务中包含Client JAVA API库吗?

[英]Possible to include Client JAVA API libraries in Web-services?

We want to develop a Java based Web-services (since the API's we want to use are Java based) 我们想开发一个基于Java的Web服务(因为我们要使用的API是基于Java的)

I would like to know if it's possible to use the IBM Rational Team Concert Plain Java API's ( https://jazz.net/downloads/rational-team-concert/releases/5.0/RTC-Client-plainJavaLib-5.0.zip ) as part of the Web-servicesand deploy them in the server? 我想知道是否可以将IBM Rational Team Concert Plain Java API( https://jazz.net/downloads/rational-team-concert/releases/5.0/RTC-Client-plainJavaLib-5.0.zip )用作Web服务的一部分并将它们部署在服务器中?

Basically we use these API's on a client based Java applications. 基本上,我们在基于客户端的Java应用程序上使用这些API。 What I am looking at is more like a services which can be consumed by many applications 我正在看的更像是可以被许多应用程序使用的服务

Anyone has any experience in deploying the client based API in the server as Web-services? 是否有任何将基于客户端的API作为Web服务部署在服务器中的经验?

After multiple tries, it is possible to use the RTC Plain Java API's as Webservices. 经过多次尝试,可以将RTC Plain Java API用作Web服务。

How I did: 我是怎么做的:

  • Followed the simple Webs Service creation tutorial ( http://wiki.eclipse.org/Creating_a_Bottom-Up_Java_Web_Service ) 遵循了简单的Web服务创建教程( http://wiki.eclipse.org/Creating_a_Bottom-Up_Java_Web_Service

  • Adapted to my needs 适应了我的需求

  • First added the "RTC plain Java API's (JAR's)" to the Eclipse build path 首先将“ RTC普通Java API(JAR)”添加到Eclipse构建路径

  • Then added the "RTC plain Java API's (JAR's)" to the "WebContent/Lib/" folder of my Dynamic web project 然后将“ RTC普通Java API(JAR)”添加到我的Dynamic Web项目的“ WebContent / Lib /”文件夹中

  • Created a new Web service & Web service client 创建一个新的Web服务和Web服务客户端

I was able to login to RTC via this for starters 我可以通过它登录到RTC

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

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