This article was created in response to a support issue logged with K2. The content may include typographical errors and may be revised at any time without notice This article is not considered official documentation for K2 software and is provided “as is” with no warranties.

Objective

Using K2 SmartObjects and the Endpoint WebService to get the definition of a word.

Before You Begin

  1. Navigate to the following URL: 

    http://services.aonaware.com/DictService/DictService.asmx

  2. Select "Define"

  3. In the Word Box Type in a word:
    Image
  4. Select Invoke:
    Image

How-to Steps

  1. Open the K2 SmartObject Tester Tool
  2. Register a new Endpoint WebService ServiceInstance:

    Image

  3. Generate SmartObject from the ServiceInstance

  4. Execute the following SmartObject and enter any word
    Endpoint WebService / [SERVICE_NAME] / DictService Objects / Define (String word)

  5. Output:
    Image

  6. Copy all of this text and execute the following SmartObject:
    Endpoint WebService / [Service_Name] / Object Types / Definition / Methods / Deserialize Array

    Image

  7. Copy the first entry into Notepad, (remove the header as this is copied with the results):

    Image

    Before continueing, please do not copy the YELLOW part
  8. Copy the string and paste it into the following method:
    Endpoint WebService / [Service_Name] / Object Types / Definition / Methods / Deserialize

    Image

  9. Following the same steps but using SmartForms, it will look similar to this:

    Image