简体   繁体   English

从Java客户端调用Tibco Webservcie

[英]Calling tibco webservcie from java client

I have been given WSDL and XSD files for Tibco Web service. 我已获得Tibco Web服务的WSDL和XSD文件。 Along with that I have Tibco queue details. 除此之外,我还有Tibco队列详细信息。 I need to hit the Tibco sync queue and get the response from the queue. 我需要点击Tibco同步队列并从队列中获取响应。 My question is hot to create the java stub(client) with appropriate endpoint address. 我的问题很热,要创建具有适当端点地址的java stub(client)。 When I create the stub using CXF, it says "nvalid endpoint address" while I running the stub client. 当我使用CXF创建存根时,在我运行存根客户端时会显示“ n终结点地址”。

There is another option to send request to queue using spring's WebServiceTemplate. 还有一个使用spring的WebServiceTemplate将请求发送到队列的选项。 But to construct the input XML message. 但是要构造输入的XML消息。

Does any one call the Tibco webservice from Java? 是否有人从Java调用Tibco Web服务? Which is the best way? 最好的方法是什么?

I think it would be helpful if you post the actual WSDL you have problems with. 我认为,如果您发布遇到问题的实际WSDL,这将有所帮助。 I assume the WSDL was generated with TIBCO Businessworks. 我认为WSDL是由TIBCO Businessworks生成的。 TIBCO supports exposing WSDL's with JMS Transport bindings a long while in a proprietary way before a SOAP over JMS standard from W3C was defined. 在定义来自W3C的SOAP over JMS标准之前,TIBCO以专有的方式支持使用JMS Transport绑定公开WSDL。 CXF implemented the W3C standard so it won't understand the binding and you ll have to do some hand wiring for the transport of your client like described eg here: CXF实施了W3C标准,因此它不了解绑定,您将不得不手动布线以传输客户,如此处所述:

http://cxf.apache.org/docs/using-the-jmsconfigfeature.html http://cxf.apache.org/docs/using-the-jmsconfigfeature.html

Make sure that the problem is actually in the generated client, and not the WSDL or the given endpoint is worng, First try to test the wsdl with SOAP UI or any similar tool. 确保问题实际上出在生成的客户端上,而不是WSDL或给定的端点已损坏。首先尝试使用SOAP UI或任何类似工具来测试wsdl。

if it works then you can check what is wrong with the generated client. 如果可行,则可以检查生成的客户端出了什么问题。

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

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