cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

Hello,

In sap cloud platform, under workflow application I am using service task as a last step to create entity on on-premise system. For that I have Odata service created on on-premise system. When I am calling it through service task I am getting below error

Service endpoint:XXX
Error message:The XSRF token request to URL 'https://XXX.XXX/sap/opu/odata/sap/ZF_UPD_CPTASK_SRV?$format=json' failed with HTTP status code 405 (Method Not Allowed) and response body 'HTTPS proxying is not supported. Use HTTP instead. HTTPS is not needed because communication is already secured by the tunnel. '

The Type of Destination is http and the url of destination is https.

Kindly help. Please let me know if any other inputs needed.

Regards,

Neha

0 Likes
View Entire Topic
Archana
Product and Topic Expert
Product and Topic Expert
0 Likes

This error comes because Workflow only support services which have application/json based content-type output but in your case it is returning text/html. Can you run this URL in your browser and see the output header type.

parab_neha
Explorer
0 Likes

Thanks Archana for replying.

When I call the URI in the browser then it goes for an additional authentication (login to the backend system), manually once I login to the system then the result json is returned.

Since in service task we cannot login to the backend by manual intervention hence the return is HTML which is of the login page.

I assume my service is working but the whole issue is because of this additional login page.

Kindly help.Please let me know if any other inputs needed.

Thanks,

Neha