Calling a SOAP service from a server that uses REST in JAVA

0

Good morning.

I have an application in JAVA that has defined Rest services and I want to consume within this application SOAP services, this is possible ???

That is to say when making a GET request to the URL link my application internally consumes a SOAP service to obtain certain information and then respond to the request.

    
asked by Jesus Oviedo Riquelme 05.07.2017 в 04:12
source

2 answers

0

Of course it is possible, with java there are different technologies to generate a web service client with SOAP, among them are:

In my opinion, I have used SOAPClientSAAJ, since it is not necessary to create stubs with unnecessary code, as axis does.

Axis generates classes that make the connection, it is easy to understand them but sometimes the topic is a little unruly, even though the endpoint contains several url (methods) that you can consult.

It should be mentioned that with SOAP, at least as far as I have seen (if not someone corrects me), there are no definitions for the HTTP protocol endopoints (GET, POST, etc.), only a descriptor (wsdl) that contains the signature of the methods, this descriptor is a url which contains the xml of the definition of the methods.

I hope you help.

    
answered by 05.07.2017 / 17:34
source
0

Making a call to a web service that returns a response in SOAP, from a JAVA application is possible.

Greetings.

    
answered by 05.07.2017 в 09:32