Get a word’s definition using K2

  • 24 February 2022
  • 0 replies
  • 4 views

Userlevel 5
Badge +20
 

Get a word’s definition using K2

KBS100031

PRODUCT
K2 blackpearl
K2 smartforms 4.6.10 to 4.7
BASED ON
K2 blackpearl 4.7
TAGS
K2 SmartObject Integration
Service Broker
Web Services
SmartForms
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.
LEGACY/ARCHIVED CONTENT
This article has been archived, and/or refers to legacy products, components or features. The content in this article is offered "as is" and will no longer be updated. Archived content is provided for reference purposes only. This content does not infer that the product, component or feature is supported, or that the product, component or feature will continue to function as described herein.

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

 

 


0 replies

Be the first to reply!

Reply