Reputation: 13
How can I define an endpoint in ESB that connects to a wsdl that has basic autentification?
Upvotes: 0
Views: 434
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
Reputation: 16
It is not possible! Try to restrict the rights to wsdl from ESB, not from wsdl.
Upvotes: 0