# Post-Call Webservice

A post-call webservice is one that a Fuse application connects to immediately after a call ends. \
This call is triggered on any termination event, whether it is by the caller hanging up, or by the IVR through the [Exit](https://docs.plumvoice.com/fuse/call-flow/exit) (<img src="https://820663326-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M40QJ5NXmtM4utV6bD_%2F-M4u8_YcRziLXQiLsKMa%2F-M4u9_0fkf2qL_nGYS0q%2Fexit.svg?alt=media&#x26;token=760e88b0-f144-4480-bcb1-569aa9054834" alt="" data-size="line">)  module.\
\
Because the IVR call flow terminates right when the caller hangs up,  the [REST ](https://docs.plumvoice.com/fuse/data/rest)(<img src="https://firebasestorage.googleapis.com/v0/b/gitbook-28427.appspot.com/o/assets%2F-M40QJ5NXmtM4utV6bD_%2F-M4u8_YcRziLXQiLsKMa%2F-M4u9_1ajC7GIKRSWvr_%2Frest.svg?alt=media&#x26;token=61a7d6cf-4223-43b0-b1af-f2c11e6c7f1d" alt="" data-size="line">) or [SOAP](https://docs.plumvoice.com/fuse/data/soap) (<img src="https://820663326-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M40QJ5NXmtM4utV6bD_%2F-M4u8_YcRziLXQiLsKMa%2F-M4u9_1ajC7GIKRSWvr_%2Frest.svg?alt=media&#x26;token=61a7d6cf-4223-43b0-b1af-f2c11e6c7f1d" alt="" data-size="line">) modules within the call flow will not run in those scenarios. The post-call webservice should be used instead to communicate with the webserver.\
\
This is especially useful for survey call flows (where the caller hangs up after answering a question), or IVR that relies on the Record module to capture the caller voice mail, where caller might just hang up after recording a voice mail)<br>

**Type**: This drop-down menu lets users select either a SOAP or a REST webservice.

![](https://820663326-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M40QJ5NXmtM4utV6bD_%2F-Mj042O8PXwbnQHQxEQO%2F-Mj04CY0EMildMeaeC-k%2Fpost_call_rest%402x.png?alt=media\&token=8cae02fe-f621-48a9-8762-9215166b759f)

**1. REST**: Selecting a REST webservice dynamically changes the available options. Fuse generates fields for URL and parameters.

* Request Type: Choose the desired REST request type from the drop-down menu. The options are the same as the [REST module](https://docs.plumvoice.com/fuse/data/rest): GET, POST, POST RAW, PUT, and DELETE.
* Timeout: Set the desired timeout duration, in seconds.
* Private: Check this box to enable privacy mode for post-call web services.
* URL: This is the web address for the webservice. Users can insert variables into the URL using a REST webservice.
* Header: Type any desired headers into this field. Users can include Fuse variables in headers using the 'plus' button in the text field.
* Paramenters: Click on the <img src="https://820663326-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M40QJ5NXmtM4utV6bD_%2F-M4u8_YcRziLXQiLsKMa%2F-M4u9_-iPo50OGXrE5An%2Fadd.svg?alt=media&#x26;token=b446c69d-2224-4e8a-b248-ca9098cd3002" alt="" data-size="line"> button to add a new parameter to the post-call webservice. Users can insert variables in the 'Value' field.

![](https://820663326-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M40QJ5NXmtM4utV6bD_%2F-Mj042O8PXwbnQHQxEQO%2F-Mj04K_h-7BiMzEf_qJc%2Fpost_call_soap%402x.png?alt=media\&token=048d8989-167c-463b-abf9-b364085a1341)

**2. SOAP**: Selecting a SOAP webservice dynamically changes the available options. Fuse generates WSDL and Method fields.

* Timeout: Set the desired timeout duration, in seconds.
* Private: Check this box to enable privacy mode for post-call web services.
* WSDL: Enter WSDL connection information into this field. Click the icon (<img src="https://820663326-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M40QJ5NXmtM4utV6bD_%2F-M4u8_YcRziLXQiLsKMa%2F-M4u9_1U0zSkQRxfV-NV%2Frefresh.svg?alt=media&#x26;token=64964066-b4e8-47a6-93aa-cfe98d4512b4" alt="" data-size="line">) to the right of the text box to refresh the connection.
* Method: Select the webservice method from the first drop-down menu; this menu auto-populates after fetching values from a valid SOAP URL. Users can also choose between SOAP v1.1 or SOAP v1.2.
