简体   繁体   English

使用REST服务调用SOAP服务

[英]Calling a SOAP service using REST service

I want to call a SOAP service using REST service. 我想使用REST服务调用SOAP服务。 Can anybody please share some example programme or snippets where we can invoke a soap service using JAX-RS(Jersey) written REST service. 任何人都可以分享一些示例程序或片段,我们可以使用JAX-RS(Jersey)编写的REST服务调用soap服务。 I am using jdk 1.7 & eclipse juno. 我正在使用jdk 1.7和eclipse juno。 What will we be using to refer to the soap service? 我们将用什么来参考肥皂服务? Please note that I am entirely new to webservice, so examples will be a huge help! 请注意,我对webservice来说是全新的,所以示例将是一个巨大的帮助!

You cannot use a REST service framework to access a SOAP Web-Service. 您不能使用REST服务框架来访问SOAP Web服务。 This are two completely different technologies. 这是两种完全不同的技术。

It's like you're asking how to drive with a locomotive on a motorway... 就像你在问高速公路上如何用机车驾驶......

You can call the SOAP service using restful API. 您可以使用restful API调用SOAP服务。 In SOAP the xml is built dynamically. 在SOAP中,xml是动态构建的。 You can built the soap request XML in your program and call the SOAP URI with this xml as string parameter. 您可以在程序中构建soap请求XML,并使用此xml作为字符串参数调用SOAP URI。

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

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