YOUR FEEDBACK
Data Services Made Easy for Adobe Flex Applications
FDJ News Desk wrote: Flex has gotten popular lately because of its rich GUI ...
AJAXWorld $225 "Gold Pass" Savings Expire August 24 - Register Today & Receive FREE AJAX Book!
Did you read today's front page stories & breaking news?

SYS-CON.TV
TODAY'S TOP SOA & WEBSERVICES LINKS


Sybase TechWave 2007: How to Develop a .NET Client/Server Application with PowerBuilder
PowerBuilder & EAServer Bonded Together

Digg This!

Page 1 of 2   next page »

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.

I work on Sybase's Enterprise Application Server (EAServer) team. We need to make sure that our server works with other Sybase products such as PowerBuilder. PowerBuilder 11 introduces .NET application development. EAServer 6.1 also has .NET client ORB support.

PowerBuilder & EAServer Work Great Together
EAServer's component target is built in as a PowerBuilder target (see Figure 1). Once you create a target and set up an application server profile, you can immediately deploy your PowerBuilder NVOs to run on EAServer. This is an easy way to develop and implement a robust application that uses J2EE EJB and JMS.

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
The EAServer .NET Client ORB is used for .NET client applications, say a PowerBuilder .NET WinForm application to communicate with EAServer components through IIOP or IIOPS.

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:
• Simple data type marshalling
• Complex data type marshalling
• Helper/Holder data type marshalling
• Transaction management
• CORBA services
• GUI changes
• Data compression
• HTTP tunneling support
• SSL support
• HTTPS support using native https .NET APIs
• Clustering support

Using a .NET Generic Client to Call an EAServer JMS Component
The .NET client ORB enables the .NET client to send and receive messages from JMS servers. Two types of messages are supported: topic and queue.

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
Web Services let components be easily shared, provide cross-language compatibly, and are also used to implement an architecture according to Service Oriented Architecture (SOA) concepts. In PowerBuilder you can create a new Web Service proxy project from the project page in the New dialog box (see Figure 3).

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
conn.createinstance(WSloan, 'deployloan')

In this case deployloan was created by the Web Services proxy using the .NET engine with a WSDL file of an EAServer component.



Page 1 of 2   next page »
About Jian Yang
Jian Yang is a staff software engineer at Sybase. He joined Sybase in September 2000 and has been working in the Enterprise Application Server group since then. He received an MS in computer science from Bradley University and his MBA from the University of South Florida.

SUBSCRIBE TO OUR RSS FEEDS & GET YOUR SYS-CON NEWS LIVE!
Click to Add our RSS Feeds to the Service of Your Choice:
Google Reader or Homepage Add to My Yahoo! Subscribe with Bloglines Subscribe in NewsGator Online
myFeedster Add to My AOL Subscribe in Rojo Add 'Hugg' to Newsburst from CNET News.com Kinja Digest View Additional SYS-CON Feeds
In It? Reprint It! Contact advertising(at)sys-con.com!
VIRTUALIZATION LATEST STORIES & POSTS
SOA and Service Virtualization
Service Oriented Architecture (SOA) promises to reduce the amount of new code required to create new applications by allowing the reuse of existing services. To get significant benefit from SOA, an organization must have as many services exposed as possible at as broad a level as possi
HP Breezes Through Q3
While Dell struggles with the kind of crisis of conscience that HP faced last year - only much worse - HP was busy busting through Wall Street's estimates of what its business could do in Q3. Earnings were $1.78 billion, or 66 cents a share, up 29% year-over-year, on sales of $25.38 bi
AIR Time
There is a rumor going round - apparently started by Adobe's own platform evangelist Mike Downey - suggesting that Adobe could use its Adobe Integrated Runtime (AIR), a virtual machine kind of thing like Java and .NET, to launch into the Office business against Microsoft. Okay, well, s
Intel to AMD: 'Na Na Na Na Na'
Oh, yes, and about that virtualization stuff, Intel said the chips streamline virtualization. Besides Intel Virtualization Technology (VT), the devices have VT extensions for improved interrupt handling when virtualizing 32-bit Windows. Intel also says the processors are fitted with en
We Lost a Nickel Bet That VMware's IPO Would Ultimately Be Priced at $32
We lost a nickel bet that VMware's IPO Tuesday would ultimately be priced at $32. Instead it went for the high side of the $27-$29 range VMware boosted it to last week, never touched ground when left the gate and opened at $51 or $52 or $54, live reports conflict, suggesting that VMwar
An Introduction to SOA and Virtualization
The second type of virtualization is virtual service end points. In a sense what you?re doing is creating a virtual location for your consumers to access in order to invoke the service when in fact you're completely shielded from the actual end point of the service itself. So there is
SUBSCRIBE TO THE WORLD'S MOST POWERFUL NEWSLETTERS
Receive Breaking i-Technology News as it Happens...
AJAX Newsletter
Java Newsletter
Open Source/Linux Newsletter
Microsoft .NET Newsletter
Flex Newsletter
Internet TV Newsletter
IT Solution's Guide Newsletter
 
SOA/Web Services Newsletter
Virtualization Newsletter
Web 2.0 Newsletter
ColdFusion Newsletter
PowerBuilder Newsletter
XML Newsletter
Eclipse Newsletter
Your E-Mail: 
State: 
Zip Code: 




ADS BY GOOGLE
TODAY'S TOP SOA LINKS YOU MUST CLICK ON !