SOAP web services account details
To establish a connection to a SOAP web service, you must add an account that defines the account details to connect with. You can define these details by creating a configuration object in the App Connect Dashboard, the Red Hat® OpenShift® web console or CLI, or the Kubernetes CLI.
Account parameters
You can define one or more accounts for a SOAP web service.
For each account that you require, you can specify a new set of account details in any of the following ways:
- If you are using the App Connect Dashboard, either complete the
Account details fields in the
Create configuration
panel, or specify the account parameters in an accounts.yaml file before importing it into theCreate configuration
panel. For more information, see Accounts type. - If you are using the Red Hat OpenShift web console or CLI, or the Kubernetes CLI, specify the account parameters in an accounts.yaml file, and then use this configuration file to create a configuration object. For more information, see Creating the file for a configuration object of type Accounts.
The set of required and optional Account fields or parameters are listed in the following table.
The values that are required to connect to your SOAP web service are dependent on the security scheme that is configured for the web service, and whether the endpoint is publicly available or private.
- If no authentication or override values are required for connecting to or calling the web service, you don't need to specify any connection details, but must specify an account name by using the name parameter, and the API name, which is appended to a soapwsdl. prefix.
- If the web service is secured through the Web Services Security (WS-Security)
UsernameToken
element, use the wssecUsername and wssecPassword parameters to provide a username and password for validation. - If HTTP basic authentication is configured for the web service, use the httpTransportBasicUsername and httpTransportBasicPassword parameters to provide a username and password for validation.
- If you want to override the
soap:address location
host and port in your WSDL file with values that point to a public endpoint, use the endpointUrl parameter to provide an override URL. - If the web service is in a private network, use the endpointUrl and agentId parameters to provide an override URL and the name of a configured private network connection.
Field | Parameter | Values | Condition | Description |
---|---|---|---|---|
API name |
User defined |
Required |
The name that is assigned to the imported web service in App Connect Designer. This name is appended to the soapwsdl keyword with a period (.) separator;
for example, |
|
Account name |
name |
User defined |
Required |
The name of a SOAP web services account that is used in the exported flow. |
WS-Security username |
wssecUsername |
User defined |
Optional Use in conjunction with the wssecPassword parameter. |
A WS-Security username that is authorized to access the web service. Applicable if the web service is secured through the Web Services Security (WS-Security)
|
WS-Security password |
wssecPassword |
User defined |
Optional Use in conjunction with the wssecUsername parameter. |
The WS-Security password for the specified WS-Security username. |
HTTP basic auth username |
httpTransportBasicUsername |
User defined |
Optional Use in conjunction with the httpTransportBasicPassword parameter. |
The name of a user that is authorized to access the web service on an endpoint that is secured by using basic authentication. |
HTTP basic auth password |
httpTransportBasicPassword |
User defined |
Optional Use in conjunction with the httpTransportBasicUsername parameter. |
The password for the user connecting with basic authentication. |
Override the hostname and port of the SOAP address |
endpointUrl |
User defined |
Required if connecting to a private network. Use in conjunction with the agentId parameter. |
A URL that includes the protocol, hostname or IP address, and the port number in the format
|
Private network connection |
agentId |
User defined |
Required if connecting to a private network. Use in conjunction with the endpointUrl parameter. |
The name of a private network connection that App Connect uses to connect to your private network. You create private
network connections in the |
Examples
accounts:
BooksAPI
): soapwsdl.BooksAPI:
- name: Account 1
credentials: {}
endpoint: {}
Petstore
with WS-Security
credentials): soapwsdl.Petstore:
- name: Account 1
credentials:
wssecUsername: janebloggs
wssecPassword: mypassw0rd
endpoint: {}
soapwsdl.Petstore:
- name: Account 1
credentials:
httpTransportBasicUsername: janedoe
httpTransportBasicPassword: myPassw0rd
endpoint: {}
soapwsdl.Petstore:
- name: Account 1
credentials:
httpTransportBasicUsername: johnbloggs
httpTransportBasicPassword: myPassw0rD
endpoint:
endpointUrl: 'https://publicwebservice.example.com:1234'
soapwsdl.Petstore:
- name: Account 1
credentials:
wssecUsername: WSjohnbloggs
wssecPassword: WSjohnbloggs
agentId: pnc-mon-06-nov-2023-22-13-44-gmt-453
endpoint:
endpointUrl: 'https://myhost.com:1234'