简体   繁体   English

使用JMS调用Tibco Web服务

[英]Invoking Tibco Web Service Using JMS

I have created and deployed a web service in tibco that use a JMS Connection, 我已经在tibco中创建并部署了使用JMS连接的Web服务,

I want to get a java class to connect to the tibco ems server and communicate with that service, using JMS. 我想获得一个Java类,以使用JMS连接到tibco ems服务器并与该服务通信。

is that possible ? 那可能吗 ? how would I proceed ? 我将如何进行?

Yes. 是。 It's possible... You need to provide more information about the use case and the tools you are using here but all you have to do is to use a JMS request-reply client listening to the queue/topic where you receive the message from the Web Service. 可能...您需要在此处提供有关用例和所用工具的更多信息,但是您所要做的就是使用JMS请求-答复客户端侦听从中接收消息的队列/主题。网络服务。 The nature of the request/reply JMS pattern is to consume the message, process it and then reply back with the response. 请求/回复JMS模式的本质是使用消息,对其进行处理,然后使用响应进行回复。 This is pretty straightforward with TIBCO BusinessWorks. 使用TIBCO BusinessWorks,这非常简单。 Have a look on the examples folder as it contains many pre-defined samples you can use as a starting point. 看一下examples文件夹,因为它包含许多可以用作起点的预定义示例。

If I understand correctly what you want to do is to invoke a SOAP Service over JMS. 如果我正确理解,您想要做的就是通过JMS调用SOAP服务。

This is possible in Java and has been discussed here in general. 这在Java中是可能的,并且已在此处进行了总体讨论。 Change the data to have a SOAP request and you have your answer. 将数据更改为具有SOAP请求,您就会得到答案。

You can also find multiple examples of how this is done by doing a Google Search for the same ( request reply jms ) . 您还可以通过对同一内容执行Google搜索(请求回复jms)找到有关如何完成此操作的多个示例。 If you want examples of EMS, combine the above with the examples already provided by TIBCO. 如果要使用EMS的示例,请将以上内容与TIBCO已提供的示例结合起来。

TIBCO EMS provides an example for request reply . TIBCO EMS提供了一个请求回复的示例。

You lost me a bit when you say "communicate with that web service using JMS". 当您说“使用JMS与该Web服务进行通信”时,您有点迷失了我。

Typically you communicate with web service over HTTP protocol. 通常,您通过HTTP协议与Web服务进行通信。 JMS is the messaging API typically used to queue incoming web service request for processing. JMS是消息传递API,通常用于将传入的Web服务请求排队以进行处理。

From what I understand, what you wanted to do is to build a webservice client that connect to your Tibco Web Service? 据我了解,您想做的是构建一个连接到Tibco Web服务的Web服务客户端?

If so, yes this is possible, Java EE come with web service API you can use. 如果是这样,可以,Java EE附带了可以使用的Web服务API。 Web service chapter on Java EE tutorial is a good place to start: http://docs.oracle.com/javaee/6/tutorial/doc/bnayk.html Java EE教程中的Web服务一章是一个不错的起点: http : //docs.oracle.com/javaee/6/tutorial/doc/bnayk.html

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

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