Calling a SOAP service using REST service

别来无恙 提交于 2019-12-23 20:25:28

问题


I want to call a SOAP service using REST service. Can anybody please share some example programme or snippets where we can invoke a soap service using JAX-RS(Jersey) written REST service. I am using 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!


回答1:


You cannot use a REST service framework to access a SOAP Web-Service. This are two completely different technologies.

It's like you're asking how to drive with a locomotive on a motorway...




回答2:


You can call the SOAP service using restful API. In SOAP the xml is built dynamically. You can built the soap request XML in your program and call the SOAP URI with this xml as string parameter.



来源:https://stackoverflow.com/questions/26121406/calling-a-soap-service-using-rest-service

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!