Eugen
Eugen

Reputation: 13

WSO2 ESB wsdl endpoint with password

How can I define an endpoint in ESB that connects to a wsdl that has basic autentification?

Upvotes: 0

Views: 434

Answers (2)

Ernesto
Ernesto

Reputation: 266

You can add following configuration in the synapse config before sending message to endpoint.

<property xmlns:ns="http://org.apache.synapse/xsd" name="Authorization" expression="fn:concat('Basic ', base64Encode('username:password'))"  scope="transport"/>

If your wsdl url require Basic Authentication you can do is authenticate in the browser download the wsdl and create your service based in downloaded wsdl file.

Upvotes: 3

Ladder
Ladder

Reputation: 16

It is not possible! Try to restrict the rights to wsdl from ESB, not from wsdl.

Upvotes: 0

Related Questions