I want to code for a REST service using Restlet framework that wraps a third party SOAP service with some XML data. So whenever I call the REST service with some XML data that REST service internally calls that third party SOAP service with the XML data that I provided and the response travels from that third party SOAP API to REST API and from REST API to me. I have gone through this questions;
我想使用Restlet框架为REST服务编写代码,该框架使用一些XML数据包装第三方SOAP服务。因此,每当我使用一些XML数据调用REST服务时,REST服务在内部使用我提供的XML数据调用第三方SOAP服务,响应从第三方SOAP API传递到REST API,从REST API传递给我。我已经完成了这些问题;
Calling a SOAP service using REST service
使用REST服务调用SOAP服务
在Jersey中调用SOAP
But it didn't help me a lot, So it would be great if anyone provide me the links or tutorial where I can get any help. Thanks.
但它对我帮助不大,所以如果有人向我提供我可以获得任何帮助的链接或教程,那将会很棒。谢谢。
1 个解决方案
#1
3
I think that the following links could help you if you want to implement by hand:
如果您想手动实现,我认为以下链接可以帮助您:
- Restlet tutorial - http://restlet.com/technical-resources/restlet-framework/tutorials/2.3
- Writing a SOAP Client - https://docs.oracle.com/cd/E19340-01/820-6767/aeqgc/index.html
Restlet教程 - http://restlet.com/technical-resources/restlet-framework/tutorials/2.3
编写SOAP客户端 - https://docs.oracle.com/cd/E19340-01/820-6767/aeqgc/index.html
The key challenge here is to convert request elements into the SOAP request since SOAP only uses HTTP as a transport protocol (both headers and payload) and the same for response (extract headers and payload to build the REST response). With Restlet, you need to leverage its REST API for this. See this link: http://restlet.com/technical-resources/restlet-framework/guide/2.3/core/http-headers-mapping.
这里的关键挑战是将请求元素转换为SOAP请求,因为SOAP仅使用HTTP作为传输协议(包括头和有效负载),并且响应相同(提取头和有效负载以构建REST响应)。使用Restlet,您需要利用其REST API。请参阅此链接:http://restlet.com/technical-resources/restlet-framework/guide/2.3/core/http-headers-mapping。
I also saw these tools that seem to provide a proxy to adapt a SOAP service as REST service:
我还看到这些工具似乎提供了一个代理,以使SOAP服务适应REST服务:
- Exposing SOAP Services as REST Resources - http://www.membrane-soa.org/service-proxy-doc/4.0/rest2soap-gateway.htm, https://github.com/membrane/service-proxy
- a RESTful API proxy to a SOAP-based service - http://apigee.com/docs/api-services/content/exposing-soap-service-api-proxy
将SOAP服务公开为REST资源 - http://www.membrane-soa.org/service-proxy-doc/4.0/rest2soap-gateway.htm,https://github.com/membrane/service-proxy
基于SOAP的服务的RESTful API代理 - http://apigee.com/docs/api-services/content/exposing-soap-service-api-proxy
Hope it helps you, Thierry
希望它对你有帮助,蒂埃里
#1
3
I think that the following links could help you if you want to implement by hand:
如果您想手动实现,我认为以下链接可以帮助您:
- Restlet tutorial - http://restlet.com/technical-resources/restlet-framework/tutorials/2.3
- Writing a SOAP Client - https://docs.oracle.com/cd/E19340-01/820-6767/aeqgc/index.html
Restlet教程 - http://restlet.com/technical-resources/restlet-framework/tutorials/2.3
编写SOAP客户端 - https://docs.oracle.com/cd/E19340-01/820-6767/aeqgc/index.html
The key challenge here is to convert request elements into the SOAP request since SOAP only uses HTTP as a transport protocol (both headers and payload) and the same for response (extract headers and payload to build the REST response). With Restlet, you need to leverage its REST API for this. See this link: http://restlet.com/technical-resources/restlet-framework/guide/2.3/core/http-headers-mapping.
这里的关键挑战是将请求元素转换为SOAP请求,因为SOAP仅使用HTTP作为传输协议(包括头和有效负载),并且响应相同(提取头和有效负载以构建REST响应)。使用Restlet,您需要利用其REST API。请参阅此链接:http://restlet.com/technical-resources/restlet-framework/guide/2.3/core/http-headers-mapping。
I also saw these tools that seem to provide a proxy to adapt a SOAP service as REST service:
我还看到这些工具似乎提供了一个代理,以使SOAP服务适应REST服务:
- Exposing SOAP Services as REST Resources - http://www.membrane-soa.org/service-proxy-doc/4.0/rest2soap-gateway.htm, https://github.com/membrane/service-proxy
- a RESTful API proxy to a SOAP-based service - http://apigee.com/docs/api-services/content/exposing-soap-service-api-proxy
将SOAP服务公开为REST资源 - http://www.membrane-soa.org/service-proxy-doc/4.0/rest2soap-gateway.htm,https://github.com/membrane/service-proxy
基于SOAP的服务的RESTful API代理 - http://apigee.com/docs/api-services/content/exposing-soap-service-api-proxy
Hope it helps you, Thierry
希望它对你有帮助,蒂埃里