Groovilicious
Groovilicious

Reputation: 13

wso2 header authentication bearer

I get an file.xml has some syntax errors whenever i tried setting a header for authentication in wso2 developer studio

<header name="Authentication" scope="default" value="Bearer code"/>

Upvotes: 0

Views: 136

Answers (1)

Dilshani Subasinghe
Dilshani Subasinghe

Reputation: 1952

There is an issue in this configuration. ESB synapse can not validate your requirement with given configurations.

<header name="Authentication" scope="default" value="Bearer code"/>

You are going to add SOAP header as you define scope as "default". In WSO2 documentation, you may find sample scenarios for adding a header [1]

<header xmlns:m="http://org.synapse.example" xmlns:sym="http://services.samples/xsd" name="m:header1" scope="default" expression="//sym:symbol"/>

Change your configuration which will be compatible with standards.

[1] https://docs.wso2.com/display/ESB490/Header+Mediator

Upvotes: 1

Related Questions