|
Comments
|
Today's Top SOA Links
.NET Sybase TechWave 2007: How to Develop a .NET Client/Server Application with PowerBuilder
PowerBuilder & EAServer Bonded Together
By: Jian Yang
Aug. 9, 2007 01:15 PM
This article is based on my presentation at TechWave 2007 and is intended for the beginner or moderately experienced PowerBuilder developer. I hope to share some of the useful information I've picked up as an application developer using PowerBuilder and EAServer.
PowerBuilder & EAServer Work Great Together EAServer is a J2EE-certified application server, has industry-leading performance with fully configurable caching and load-balancing options, and provides enterprise-level performance while maintaining full data integrity. PowerBuilder NVOs are wrapped as EJBs to interact seamlessly with various kinds of clients. PowerBuilder and EAServer have been together for a long time and many of you are already very experienced with them. For those who are not familiar with setting EAServer up, there's a PowerBuilder project wizard that can guide you through it step-by-step (see Figure 2).
EAServer 6.1 .NET Feature Design With netcc (Net Compiler) and an IDL for C# tools, C# stubs of the existing EAServer components can be generated. .NET client applications will use these C# stubs to communicate with EJB components running on EAServer through the .NET Client ORB. The .NET client applications can also use CORBA's client API to call EAServer components through the ORB. A .NET client application that has to communicate with EAServer components won't work with existing Java or C/C++ ORBs. A .NET Client ORB should be implemented for these applications to call EAServer components through IIOP or IIOPS. PowerBuilder Win32 client applications can still call EAServer components using the existing EAServer Client ORB.
Below are the main supported features of the EAServer 6.1 .NET Client ORB:
Using a .NET Generic Client to Call an EAServer JMS Component The client can also work in offline mode when the network isn't available. In offline mode, the messages sent will be temporarily stored in local storage. Later when the client is working in online mode, the messages in local storage will be delivered to the remote server. Listing 1 shows an example of calling JMS using the JmsConnection API.
Using the PowerBuilder .NET Engine to Invoke an EAServer Web Services Component The project page has two kinds of icons: ones that open wizards that help you set up a project and ones that open the project painter. Use the Web Service proxy wizard and you'll see something like Figure 4. A proxy object that can be used by a PowerBuilder client to invoke a Web Service is defined in a Web Services Description Language (WSDL) file. PowerBuilder 11 provides pbsoapclient110.pbx and pbwsclient110.pbx. pbsoapclient110 is used for the EasySOAP engine and pbwsclient110 is used for the .NET engine. You can include them using "Import PB Extension..." from the PBL. To create a connection to EAServer, you'll write code like:
conn = create soapconnection In this case deployloan was created by the Web Services proxy using the .NET engine with a WSDL file of an EAServer component. Reader Feedback: Page 1 of 1
Subscribe to the World's Most Powerful Newsletters
Subscribe to Our Rss Feeds & Get Your SYS-CON News Live!
|
SYS-CON Featured Whitepapers
Most Read This Week |
|||||||||||||||||||||||||||