Step 1. Create a Web Services Consumer Connection
Connect to a web service using Web Services Description Language (WSDL) and an endpoint URL. You can also enable security for the web service.
1. Go to Configure > Connections and click New.
2. Enter the connection details. For the Type, select WSConsumer.
If the WSConsumer connection is not in the list of connections, go to Configure > Add-On Connectors to install the connector for your organization.
Note: Ensure that you select WSConsumer, not Web Service. Web Service connections are used for plug-ins or PowerCenter tasks.
3. Enter the connection properties.
- a. Enter the runtime environment for the web service connection.
- b. For Authentication, select one of the following options:
- ▪ Select Username Token to enter the user name and the password to authenticate the web service. You can choose to encrypt the password by sending a digest that is derived from the password in the security token.
- ▪ Select Other Authentication to enter the WSDL URL and endpoint URL to access the web service. If the web service is a private web service, enter the HTTP user name and password.
4. Enter the authentication connection properties. The properties that appear depend on the authentication that you selected.
The following table describes the properties to configure:
Property | Description |
---|
WSDL URL | The URL provided by the web service. If you are using a WSDL URL that has HTTP Basic authentication, then download the WSDL to your local machine. For the WSDL URL, enter the file path. For example, you can enter the following directory path: C:\WSDL\Human_Resources.wsdl |
Endpoint URL | Endpoint URL for the web service. The WSDL file specifies this URL in the location element. |
Username | Applicable to username token authentication. User name to authenticate the web service. |
Password | Applicable to username token authentication. Password to authenticate the web service. |
Encrypt Password | Applicable to username token authentication. Enables the PasswordDigest property which combines the password with a nonce and a time stamp. The Mapping Configuration task applies a SHA hash on the password, encodes it in base64 encoding, and uses the encoded password in the SOAP header. If you do not select this option, the PasswordText property is enabled and the Mapping Configuration task does not change the password in the WS-Security SOAP header. |
HTTP Username | User name used to access the web service. |
HTTP Password | Password to access the web service. |
5. Click OK to save the connection.