PBAddCookie – PB Docs 126

PBAddCookie PowerScript function

Description

Adds a cookie
to the Web service proxy object that will be sent to the server each
time you call a Web service method.

Syntax

Argument

Description

proxyObj

The proxy object that you deploy from
a Web Service Proxy project

acookie

An any containing
information about the cookie you want to add

Return Values

None.

Usage

If there is already a cookie with the same name and URI that
you set in the acookie argument, you will replace
the existing cookie when you invoke a Web service method. For the
types of information you can include in the acookie argument,
see the methods of the SoapPBCookie class in the PowerBuilder Extension
Reference
.

The SoapPBCookie class is defined in the pbwsclient126.pbx extension
that you can import into your application library. It is valid for
.NET Web services engine only.

Examples

The following example adds a cookie named myCookie that
is sent to the server after you connect to a Web service from an objProxy proxy
client:

See Also

PBGetCookies


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