Implementing WS Security Policies for your services on webMethods Integration Server - Username Over Transport Policy
Thursday, June 2, 2016Before implementing the policies for your services make sure that you
have completed the prerequisite steps described in the earlier post.
The Username Over Transport policy users a Username token to provide client authentication with transport binding and includes timestamp token to guard against replay attacks. The entire message is secured by HTTPS protocol. The policy does not enforce signature or encryption.
a. Go to the provider descriptor in the server machine. Open the policies tab and select Username over transport policy from the list. Click on Ok and save the descriptor.
b. Now if you try to invoke the connector service you will get the error as 'Invalid Security', because the provider web service expects the client to pass the necessary 'WS-Security' information in the header.
c. Attach the same policy on the consumer web service descriptor so that it will send the WS-Security information in the SOAP header while invoking the service. Make sure that you pass the 'user' and 'password' in the 'auth/message' document. This information will be used while constructing the username token.
Now when you run the service you should see a successful response.
The Username Over Transport policy users a Username token to provide client authentication with transport binding and includes timestamp token to guard against replay attacks. The entire message is secured by HTTPS protocol. The policy does not enforce signature or encryption.
a. Go to the provider descriptor in the server machine. Open the policies tab and select Username over transport policy from the list. Click on Ok and save the descriptor.
b. Now if you try to invoke the connector service you will get the error as 'Invalid Security', because the provider web service expects the client to pass the necessary 'WS-Security' information in the header.
c. Attach the same policy on the consumer web service descriptor so that it will send the WS-Security information in the SOAP header while invoking the service. Make sure that you pass the 'user' and 'password' in the 'auth/message' document. This information will be used while constructing the username token.
Now when you run the service you should see a successful response.