I've created an api which uses http azure function as endpoint and once the api is invoked I return the response of xml type but it throws an error
" <am:description>Cannot retrieve response with content type [application/xml]</am:description>"
when I execute it via WSO2 API dev portal.
could someone help me to figure out where it goes wrong or is there any document for help? below is my api definition
/processdata:
post:
consumes:
- application/xml
produces:
- application/xml
parameters:
- in: body
name: input
description: Request data
required: false
schema:
type: object
properties:
input:
type: string
responses:
'200':
description: ok