cancel
Showing results for 
Search instead for 
Did you mean: 

SAP MII HTTP post - multiple headers

matica
Explorer
0 Kudos
1,489

Dear All,

I am trying to do an HTTP post in SAP MII, when I use only one header it works OK, but I simply cannot make it work with multiple headers. Can I get an example for posting multiple headers? I can get this to work easily with postman, insomnia or soap UI.

Error:

[ERROR] Post Action: error occured while trying to connect to the server Exception: [Illegal character(s) in message header value:

I have attached printscreens of what I am trying.

Thanks!

Best regards,

Matic

Accepted Solutions (1)

Accepted Solutions (1)

matica
Explorer

Hi all,

the solution is to pack all the headers in a local map variable and then paste it in requested properties of the HTTP post.

Best regards,

Matic

Answers (2)

Answers (2)

parandhaman4shell
Discoverer

Thank you, It worked.

former_member813094
Discoverer
0 Kudos

Hi Matic,

In the MII BLS HTTP_POST action block, when I use only one header it works OK, but it doesn't work when I add multiple headers. Could you let me know what I am doing wrong?

Note: with the PostMan app, it's working fine.

Thanks,

Lakshmi.

matica
Explorer
0 Kudos

Hi Lakshmi,

you should use the map data type property. And list all the header info in there. And than use the property instead of your empty map.

you can list here your x-version and so on.