IBM Websphere Integration Developer - 使用 JAX-RS
我知道这不是提出这个问题的最佳位置,但这里是...
我正在使用 IBM Websphere Integration Developer...
我使用 JAX-WS 运行时从 Java 测试类创建 Web 服务,该测试类实例化了其他几个类。
我通过以下方式做到了这一点:
- 右键单击 Java 测试 类
Web 服务 ->创建网络服务 服务:Webshpere Process Manager v7.0 Web 服务运行时:IBM Websphere JAX-WS
检查“发布 Web 服务”->下一步->文档已打包
- 检查“将 WSDL 文件生成到项目中”
- 检查“配置 WSDL 服务名称”->完成
这导致在测试类的同一包上创建了一个 Delegate Java 类 创建 WSDL 文件和 XSD 文件。
Web 服务工作得很好,这个问题已经解决了...
不,我需要有一个类似的过程来生成 REST Web 服务,并找到 JAX-RS API。
为了实现这一点,我安装了“Websphere Application Server Feature Pack for Web 2.0”,并认为通过这样做,我不仅能够使用 JAX-WS、JAX-RPC,还能够使用 JAX-RS,但这并没有不工作。
我需要能够从 Java 文本类自动生成 REST Web 服务,那么这是否可能?
问候
I know this isn't the best place to put this question but here it goes...
I'm using IBM Websphere Integration Developer...
I used JAX-WS runtime to create webservices from a Java test class, that instantiates severall other classes.
I did this by:
- Right clicking on the Java test
class Web Services -> Create Web Service
Service: Webshpere Process Manager v7.0 Web Service Runtime: IBM
Websphere JAX-WSChecking "Publish the Web Service" -> Next -> Document Wrapped
- Checking "Generate WSDL file into the project"
- Checking "Configure WSDL service name" -> Finish
This resulted on the creating of a Delegate Java class on the same package of the test class
The creation of a WSDL file and an XSD file.
The Web Service is working great an this is solved...
No I need to have a similar process to generate a REST web service, and found out the JAX-RS API.
In order to have this I installed the "Websphere Application Server Feature Pack for Web 2.0" and thought that by doing this I would have the abilitty to use no only JAX-WS, JAX-RPC, but also JAX-RS, but this doesn't work.
I need the ability to generate REST Web Services automatically from a Java text class so is or isnt this possible?
Regards
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
事实证明,目前 JAX-RS API 无法实现通过使用 JAX-WS 和 JAX-RPC 提供的自动化。
尽管如此,您可以使用 Rational Application Developer 非常轻松地完成此操作,但在 Websphere Integration Developer 上则不然。
问候
As it turns out the automatization supplied by the usage of JAX-WS and JAX-RPC is not possible at this moment for JAX-RS API.
Despite of this, you can do this quite easily using Rational Application Developer, but not as easily on Websphere Integration Develloper.
Regards