XML SOAP -> WEBSERVICE REST

Asked

Viewed 199 times

0

I wonder if it is possible to send an xml in the SOAP pattern to an "endpoint" in REST? Or if the best way would be to create Webservice in SOAP so as not to mix the protocols?

I ask this, because we are redoing the whole backend (JEE7) for REST, but there is a "piece" of the application, where we receive the xml (accountability) in the SOAP standard. The company that sends the xml to consume in our application will not change the upload pattern so soon.

1 answer

0


Yes it is possible to do it, but you will have to adapt the return of all endpoints that respond to a request via SOAP.

There is a project that I took as a basis to guide me when I needed to do the same thing in an application. The project can be found here.

  • I was just taking a look at the project you mentioned. The adaptation of the return of all endpoints that you mentioned, would implement a class in the REST standard? Or would you still have to have a class like the project that has @Endpoint? I’m not using Fw Spring to implement here so I was a little confused by this part of the example...

Browser other questions tagged

You are not signed in. Login or sign up in order to post.