Skip to Content

SOAP adapter to REST adapter - html response

Hi gurus,

I have the following problem with the synchronous scenario ERP -> SAP PO -> REST, the rest service returns the answer in html format and I don't know how to configure the adapter for this case. After the configuration, how could I do the mapping of the fields from html response?

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • Best Answer
    Jan 12 at 01:27 AM

    Hi Kevin,

    If the response is coming in html format I would suspect that the HTTP adapter would be better suited for the scenario. Haven't heard of any accommodation in the REST adapter for formats outside of JSON and XML.

    Regards,

    Ryan Crosby

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 15 at 12:59 AM

    Hi Kevin,

    Fully agree with Ryan Crosby Try using a HTTP receiver adapter. In case you want to continue with REST adapter , in the response mapping use java mapping to extract each field of HTML and conert output into XML before sending back to ERP server.

    Regards

    Anupam

    Add comment
    10|10000 characters needed characters exceeded

  • Mar 26 at 11:21 PM

    Hi @Kevin !Do you have a example of this HTML response?

    Add comment
    10|10000 characters needed characters exceeded