rest - WSO2 API Manager - Publishing API with non-XML response -
i trying proxy next phone call through wso2 api manager
http://api.qrserver.com/v1/create-qr-code/?data=helloworld&size=100x100
which returns qr code image. published api using http://api.qrserver.com/v1/ endpoint, no problem there. when perform phone call through api manager, next error:
curl -h 'authorization:bearer 7q6w4ltex9idvefwbsa_oagphvsa' 'http://ec2-xx-xx-xx-xx.eu-west-1.compute.amazonaws.com:8280/qrcode/1.0.0/create-qr-code/?data=helloworld&size=100x100' <exception>unexpected response received. http response code : 200 http status : ok exception : com.ctc.wstx.exc.wstxioexception: invalid utf-8 start byte 0x89 (at char #1, byte #-1)</exception>
when performing phone call straight response header seems me (the mime type image/png correctly set), wso2 api proxy refuses response... doing wrong? setting wadl file response mediatype="image/png" not seem help either.
thanks in advance
i have similar problem in wso2 esb. seems response works short xml files not big one.
rest wso2 wso2-am
No comments:
Post a Comment