Soap Client Consumes Rest Web Services

I am working on this project where the client only supports SOAP WSDL for using web services, where it supports rest for incoming calls. I need to integrate this tool with another tool that completely calms down (has WADL). Is it possible for a soap client to consume soothing web services? If so, which tool will you all offer?

+5
source share
2 answers

SOAP defines a standard communication protocol specification (rule set) for XML-based messaging. SOAP uses various transport protocols such as HTTP and SMTP. The standard HTTP protocol simplifies SOAP modeling for tunneling between firewalls and proxies without any changes to the SOAP protocol.

REST describes a set of architectural principles by which data can be transmitted over a standardized interface (for example, HTTP). REST does not contain an additional layer of messaging and focuses on design rules for creating stateless services. The client can access the resource using a unique URI, and a representation of the resource is returned. With each presentation of a new resource, the client is said to pass state. When accessing RESTful resources with the HTTP protocol, the URL of the resource is the identifier of the resource, and GET, PUT, DELETE, POST and HEAD are standard HTTP operations that must be performed on this resource.

This can be done through jQuery.

JQuery example for language id:

$.post('https://services.open.xerox.com/RestOp/LanguageIdentifier/GetLanguageForString', {'document' : 'This is a sample'}, function (data) { var res = 'Not found'; if (data != null) { res = data; } }); 

Further reading: https://spring.io/guides/gs/consuming-rest-jquery/

+2
source

No, a soap client cannot consume sedative services. There is no interaction between them.

Even if you can do it, it’s not worth it. Use the tool library and just create a relaxation client for your relaxation.

+2
source

Source: https://habr.com/ru/post/1236188/


All Articles