PowerBuilder provides support for adding and getting cookies when you use .NET Web services.
When you build a Web service proxy object, PowerBuilder adds PBAddCookie and PBGetCookies to the list of proxy object functions. You use the PBAddCookie function to add a cookie to the Web service proxy object. The cookies that you add must first be defined with methods of the SoapPBCookie class that is included in the pbwsclient190.pbx extension.
After you connect to the Web service and add a cookie to the instantiated Web service proxy object, the cookie will be sent to the server each time you invoke a Web service method. If there is already a cookie with the same name and URI as the cookie that you define, you will replace the existing cookie with the new one.
The PBGetCookies function returns an array of cookies from a URI that you specify in a function argument.
For information on SoapPBCookie methods for getting and setting cookie properties, see the section called “SoapPBCookie” in PowerBuilder Extension Reference. For descriptions of the PBAddCookie and PBGetCookies functions, see the section called “PBAddCookie (Obsolete)” in PowerScript Reference and the section called “PBGetCookies (Obsolete)” in PowerScript Reference.