Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

SetWSObject – PB Docs 150 – PowerBuilder Library

SetWSObject – PB Docs 150

SetWSObject method (DataWindows)

Description

Causes a DataWindow control or DataStore to use a programmer-specified Web
service connection object. The connection object provides the information
necessary for communicating with a Web service data source.

Controls

DataWindow type

Method applies to

PowerBuilder

DataWindow control, DataWindowChild object, DataStore
object

Syntax

[PowerBuilder]

Argument

Description

dwcontrol

A reference to a DataWindow control,
DataStore, or child DataWindow in which you want to use a programmer-specified Web
service connection object

wsobject

The name of the connection object you
want to use in the dwcontrol

Return Values

Returns 1 if it succeeds and –1 if an error occurs.
If the WSConnection object is null, in PowerBuilder the method returns
null.

Usage

You call the SetWSObject method to pass
an instance of the WSConnection object and connect to a Web service
data source.when the Web service requires user–related,
session-related, or authentication information. If the Web service
does not require this information, you do not need to use the WSConnection
object (or call SetWSObject) to access Web service
data.

Examples

The following code instantiates a WSConnection object,
then sets the object as the connection object for a Web service
data source:

See Also


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x