Web Services Q&A - December 2002/January 2003
Web Services Toolkit automatically supports PowerBuilder components whose
method signatures contain CORBA C++ IDL datatypes, and/or arrays of those
datatypes. In addition, the Web Services Toolkit allows you to create
and utilize User-Defined data types. A list of the CORBA C++ IDL datatypes,
and information about User-Defined types is provided in Chapter
7 of the Web Services Toolkit User's Guide.
2. My PowerBuilder application needs to access a Web service that returns an XML document containing the results from a database query. How can I call the Web service from my PowerBuilder application and process the XML document response?
The techniques for calling Web services from PowerBuilder, and for working with XML depend on the version of PowerBuilder you are using.
To call a Web service
Once you receive the response, utilize the XML data in the response as desired. For example, transform the XML into a different format, then import it into a DataStore object.
For PowerBuilder 9, see:
For PowerBuilder 8, see:
The EAServer Web Services Toolkit provides a GUI to simplify and automate the creation of WSDL files and corresponding client proxies, and to publish the location of your WSDL documents to a UDDI registry on the Web.
Creating a WSDL document
using the EAServer Web Services Toolkit GUI consists of a few simple steps:
Based on your choices, the Web Services Toolkit creates a WSDL file, along with the corresponding interface and implementations files.
See Chapter 3 in the EAServer Web Services Toolkit User Guide for more information, including step-by-step instructions.
There are numerous samples
available to demonstrate different ways to utilize Web services with EAServer.
Two sample applications are installed as part of the Web Services Toolkit:
Additional samples are available on Sybase.com, including:
The EAServer Web Services
Toolkit relies on the EAServer security mechanisms to control access to
the Web services it exposes. Enterprise-class Web services developed with
EAServer inherit and leverage integrated advanced security capabilities
including single sign-on, role-based access control, and Secure Business
Objects (SBO) out of the box.
Deploy your Java component to EAServer, and use the Web Services Toolkit to expose the component as a Web service. The Java component can be pooled, and can utilize an EAServer connection cache for database access. As a result, you have the added benefit of scalability and performance in your application. The Web Services Toolkit supports .NET clients, and even includes a sample to help you get started. See Chapter 9 of the Web Services Toolkit User Guide.