Set up a Web Services (SOAP) Input adapter that uses transport level username/token security and communicates over HTTPS.
The steps below result in the creation of a keystore. Provide a password for the user "sybase" but do not change the username "sybase".
The server.jks is created under the current working directory. The Tomcat SSL HTTP connector and Web Services (SOAP) adapter use the server.jks to set up the HTTPS connection between them.
<Connector port="8443" protocol="org.apache.coyote.http11.Http11Protocol" SSLEnabled="true" maxThreads="150" scheme="https" secure="true" keystoreFile="ESP_INSTALL\adapters\webservices\examples\input_transportUT\server.jks" keystorePass="YOURSTOREPASSWORD" clientAuth="false" sslProtocol="TLS" />
<transportReceiver name="https" class="org.apache.axis2.transport.http.AxisServletListener"> <parameter name="port">8443</parameter> </transportReceiver>
<security> <sslTrustStore>server.jks</sslTrustStore> <sslTrustStorePassword>YOURSTOREPASSWORD</sslTrustStorePassword><!--Just change the element to the same as your input--> <TransportUsernameToken> <credentials> <!-- The user value should not be changed in this adapter example --> <User>sybase</User> <!-- The password value shall match with the parameter "TransportUTPassword" in service.xml--> <Password encrypted="false">YOURPASSWORD</Password><!--Just change the element to the same as your input--> <EncryptionAlgorithm>RSA</EncryptionAlgorithm> </credentials> </TransportUsernameToken> </security>
Set the <User> and <Password> to the username and password used by node1 in $ESP_HOME/cluster/examples:
<EspProjects> <EspProject> <Name>StockTraderProject</Name> <Uri>esp://localhost:19011/w1/p1</Uri> <Security> <User>sybase</User> <Password>sybase</Password> <AuthType>user_password</AuthType>
<parameter name="TransportUTPassword">YOURPASSWORD</parameter>