Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

In the following example, the Data Retriever Connector applet connects to the web service at http://example.com/WebServiceExample/. The Web Service interface definition consists of two parts: Request and Response.

...

The first element in the request object is Url. The Data Retriever Connector applet identifies the web service to connect to in the Url element. The method the Data Retriever Connector applet uses to connect to the web service is a POST method.

The Data Retriever Connector applet sends two headers:

  • The first header has a key of Content-Type. The Content-Type header identifies the type of the content in the Interaction Definition field. In this example, the content type is XML.
  • The second header has a key of Password. The Password header contains the password that the Data Retriever Connector must use to access the web service. The password is contained within a custom configuration setting, WebServicePassword. This custom configuration setting is encrypted and stored by NewVoiceMedia.

The Data Retriever Connector applet sends a value in the orderId element within the Body element. The Data Retriever Connector obtains the order ID value from an IVR slot, IVRSlot|OrderId. The caller provided the order ID to an IVR applet earlier in the call.

...

The ResponseCodeDestination defines the Data Source that the Data Retriever Connector applet must store the response code in. The response code is a standard HTTP response code.

The Data Retriever Connector applet locates and stores two values from the web service response object:

  • /name. The Data Retriever Connector applet stores the name value in the response object in a Data Source called ExampleCo|CustomerName. The value is of a String data type.
  • /despatch. The Data Retriever Connector applet stores the despatch value in the response object in a Data Source called ExampleCo|DespatchDate. The value is of a String data type.

...