cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

HTTP Header in MII Webservice-Actions

former_member329581
Participant
0 Likes
3,170

Hi,

I try to call a SOAP-webservice that use a HTTP-header-entry instead of Basic-Authentification. Is there a possibility to put this entries to the request? Or any other ideas to do that in MII 15.1?

best regards

Kay

Accepted Solutions (1)

Accepted Solutions (1)

salvatore_castro
Product and Topic Expert
Product and Topic Expert

It's possible with both the HTTP Post and Web Service based actions via the Link Editor. In the action "Configure Links" and in the list for the incoming link for the action will be a property called RequestHeader and it's a type of map. To add a property to the request header link in the following expression into this property: put(emptymap, "Name", "Value")

former_member329581
Participant
0 Likes

Thank you so much. It works like a charme!

0 Likes

Dear Salvatore Castro ,

Good Day !

I am working on a requirement where I need to pass authentication Token in HTTP Header field Authorization using HTTP Post Action Block. And the service is REST Service. And the Rest API is GET Method api.

Authorization is a HTTP Request Header's field used to authenticate the HTTP Request.

I need to pass the token in header as Authorization: Bearer <Token>

In HTTP Post Action block, there is a property called as RequestProperty of type map. There is no property called as RequestHeader though.

I tried to create a map as you mentioned put(emptymap, "Authorization", "Bearer <token>") and linked it to RequestProperty map field.

But this seems to give error as Authorization denied.

Please suggest any solution or idea that i am missing out on.

Best Regards,

Anshul Arora

Answers (2)

Answers (2)

matica
Explorer
0 Likes
former_member192939
Active Participant
0 Likes

Anshul .. were you able to find a solution ? I have a requirement to pass few parameters in the header as well.

former_member749610
Discoverer
0 Likes

Anshul and Ajay,

I am facing same issue as to pass connectionid as header level.

Please direct me how to pass value in header level in http_post action block.

Thanks,

Nath