Calling a SOAP service using REST service

2019-07-04 22:17发布

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!

2条回答
成全新的幸福
2楼-- · 2019-07-04 22:33

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...

查看更多
贼婆χ
3楼-- · 2019-07-04 22:39

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.

查看更多
登录 后发表回答