REST wrapper for SOAP service with support for HATEOAS

0

I did a REST wrapper to consume some SOAP services. Now I need to add support for HATEOAS but, for the resources I use the self generated classes with the library maven-jaxb2-plugin . For example, the auto generated class BookDetails :

  @XmlAccessorType(XmlAccessType.FIELD)
  @XmlType(name = "BookDetails", propOrder = {
  "id",
  "name",
  "title",
  "author"
  })
  public class BookDetails {

  @XmlElement(required = true)
  protected String id;>

  ...

  }

However, this class can not extend from ResourceSupport since if the .wsdl changes; then the class BookDetails is recreated and overwritten. Also if I create another class that extends from BookDetails for example BookDetailsResource then I will not be able to extend from ResourceSupport . Any idea or someone with a similar problem?

Here I share a tutorial on how I created the wrapper in case someone needs it. link

    
asked by Andres Gonzalez 20.02.2018 в 13:37
source

0 answers