Connectors class exists which automatically detects
every connector in the classpath. It can be used to get the SOAP connector
instance by its connector ID, which is soap-http-connector.
Request
Creating a Request
The SOAP HTTP connector can be used to create a new request, set a URL, content type and payload.Adding HTTP Headers to a Request
To add own headers to the HTTP request the methodheader is
available.
Using the Generic API
Besides the configuration methods also a generic API exists to set parameters of a request. The following parameters are available:| Parameter | Description |
|---|---|
| method | Sets the HTTP method of the request |
| url | Sets the URL of the request |
| headers | Contains a map of the configured HTTP headers of the request |
| payload | Sets the payload of the request |
Response
A response contains the status code, response headers and body.Using the Generic API
Besides the response methods a generic API is provided to gather the response parameters. The following parameters are available:| Parameter | Description |
|---|---|
| statusCode | Contains the status code of the response |
| headers | Contains a map with the HTTP headers of the response |
| response | Contains the response body |