...
Go to https://developer.spotify.com / in your browser, and then click the HTTPS trust icon on the address bar (e.g., the padlock next to the URL in Firefox).
View the certificate details (the steps vary by browser) and then export the trust certificate to the file system.
Use the ESB Management Console or the following command to import that certificate into the ESB client keystore.
keytool -importcert -file CERT_FILE_NAME -keystore <ESB_HOME>/repository/resources/security/client-truststore.jks -alias "CERT_NAME"
NOTE : CERT_FILE_NAME - Replace CERT_FILE_NAME with the file name that was extracted from spotify with the extension. (e.g. spotify.crt)
CERT_NAME - Replace CERT_NAME with an arbitrary name for the certificate. (e.g. spotify)
- ESB should be configured as below.
Ensure that the following Axis2 configurations are added and enabled in the
<ESB_HOME>\repository\conf\axis2\axis2.xml
file.Required message formatters
Code Block title messageFormatters <messageFormatter contentType="text/html" class="org.wso2.carbon.relay.ExpandingMessageFormatter"/> <messageFormatter contentType="text/plain" class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
Required message builders
Code Block title messageBuilders <messageBuilder contentType="text/html" class="org.wso2.carbon.relay.BinaryRelayBuilder"/> <messageBuilder contentType="text/plain" class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
Restart the server and deploy the Spotify configuration.
...
Code Block | ||||
---|---|---|---|---|
| ||||
<spotify.init/> |
...