1. Component library

WebServiceDataSource

Version:

You use the We****bServiceDataSource component to call a web service and receive a response. You specify the following, either as static properties or in the code:

  • The URL of the web service
  • The namespace of the web service
  • The method that you want the component to call
  • Parameters for the method (optional)

The component calls the web service when you invoke the refresh method. The response (if any) is available as the response model member.

Note

The component does not change the response in any way. If you call a web service in another domain, the remote server must allow cross-domain calls.

Properties

NameDescriptionDefault
Behavior
HasResponseThe component sets this read-only property to True when the web service responds. You can retrieve the response from the “response” member.
Data
MethodNameSpecify the name of the web service method that the component calls.
NamespaceSpecify the namespace of the web service.
ParametersSpecify the parameters that the component passes on when it calls the web service.
UrlSpecify the URL of the web service
State
IsBusyThe component sets this read-only property to True when it has called the web service but not yet received a response.

Configuration

You can create a configuration item for a WebServiceDataSource component by creating an item based on the WebServiceDataSource Parameters template.

The configuration item has these specific fields:

  • Url
  • MethodName
  • Parameters
  • Namespace
  • HasResponse
  • IsBusy

It inherits these fields:

  • IsVisible
  • AccessKey
  • Tooltip
  • Behaviors
  • Id
If you have suggestions for improving this article, let us know!