However, as I mentioned, I get an error during testing of the web service.
I tried hardcoding the access token value during testing as
`Authorization = Bearer <ACTUAL_TOKEN_VALUE>`
But I get this error message instead:
`[{"message":"MediaType of 'application/x-www-form-urlencoded' is not supported by this resource","errorCode":"UNSUPPORTED_MEDIA_TYPE"}]`
I know the web service I am talking to works because using curl as below I get the response I expect.
`curl https://mysforg.salesforce.com/services/mywebservice -H 'Authorization: Bearer <ACTUAL_TOKEN_VALUE>' -H "Content-Type: application/json`
Any help is greatly appreciated!Passing Authorization/Bearer Token Back to SalesForce
However, as I mentioned, I get an error during testing of the web service.
I tried hardcoding the access token value during testing as
`Authorization = Bearer <ACTUAL_TOKEN_VALUE>`
But I get this error message instead:
`[{"message":"MediaType of 'application/x-www-form-urlencoded' is not supported by this resource","errorCode":"UNSUPPORTED_MEDIA_TYPE"}]`
I know the web service I am talking to works because using curl as below I get the response I expect.
`curl https://mysforg.salesforce.com/services/mywebservice -H 'Authorization: Bearer <ACTUAL_TOKEN_VALUE>' -H "Content-Type: application/json`
Any help is greatly appreciated!Best answer by iboafra
Sign up
Already have an account? Login
Welcome! To join the Qualtrics Experience Community, log in with your existing Qualtrics credentials below.
Confirm your username, share a bit about yourself, Once your account has been approved by our admins then you're ready to explore and connect .
Free trial account? No problem. Log in with your trial credentials to join.
No free trial account? No problem! Register here
Already a member? Hi and welcome back! We're glad you're here 🙂
You will see the Qualtrics login page briefly before being taken to the Experience Community
Login with Qualtrics
Welcome! To join the Qualtrics Experience Community, log in with your existing Qualtrics credentials below.
Confirm your username, share a bit about yourself, Once your account has been approved by our admins then you're ready to explore and connect .
Free trial account? No problem. Log in with your trial credentials to join. No free trial account? No problem! Register here
Already a member? Hi and welcome back! We're glad you're here 🙂
You will see the Qualtrics login page briefly before being taken to the Experience Community
Login to the Community
Welcome! To join the Qualtrics Experience Community, log in with your existing Qualtrics credentials below.
Confirm your username, share a bit about yourself, Once your account has been approved by our admins then you're ready to explore and connect .
Free trial account? No problem. Log in with your trial credentials to join.
No free trial account? No problem! Register here
Already a member? Hi and welcome back! We're glad you're here 🙂
You will see the Qualtrics login page briefly before being taken to the Experience Community
Login with Qualtrics
Welcome! To join the Qualtrics Experience Community, log in with your existing Qualtrics credentials below.
Confirm your username, share a bit about yourself, Once your account has been approved by our admins then you're ready to explore and connect .
Free trial account? No problem. Log in with your trial credentials to join. No free trial account? No problem! Register here
Already a member? Hi and welcome back! We're glad you're here 🙂
You will see the Qualtrics login page briefly before being taken to the Experience Community
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
