How could we get Authorization Bearer from a SOAP Service
Hello, first of all thanks for your time and help.
We do send from a REST POST request using SoapUI software, an "Authorization Bearer".
POST http://[IP]:[Port]/aplicaciones/scs/informescctest/Servicios.SOAP.InformesCConcertadosv01r00.cls HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: application/xml
Authorization: Bearer eyJ0e[...]
SOAPAction: http://SCS.Servicios/InformesCConcertadosv01r00/ResultadosER7
Content-Length: 1871
Host: AAA
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.1.1 (java 1.5)
Our mission is to get it inside a SOAP Service.
The Service's ADAPTER is:
This service Extends from:
Could you help us, please?
We have already tried:
{
set token = ##class(%SYS.OAuth2.AccessToken).GetAccessTokenFromRequest(.status) set token = ..Adapter.%GetParameter("Authorization")
We have already read:
https://docs.intersystems.com/irislatest/csp/docbook/DocBook.UI.Page.cls...
https://community.intersystems.com/post/unexpected-contentype-when-call-...
https://docs.intersystems.com/irisforhealthlatest/csp/documatic/%25CSP.D...
Hi @Yone Moreno
Good read: Using Oauth2 with SOAP (Web)Services