YOUR FEEDBACK
SOA Viewpoint: Have We Got It All Backwards with Software Assembly?
Bill Swanson wrote: Yes, Ford paid a "little bit better", just twice as mu...
SOA World Conference
Virtualization Conference
$50 Savings Expire May 23, 2008... – Register Today!


2007 West
GOLD SPONSORS:
Active Endpoints
Your SOA Needs BPEL for Orchestration
BEA
Virtualized SOA: Adaptive Infrastructure for Demanding Applications
Nexaweb
Overcoming Bandwidth Challenges with Nexaweb
TIBCO
What is Service Virtualization?
SILVER SPONSORS:
WSO2
Using Web Services Technologies and FOSS Solutions
Click For 2007 East
Event Webcasts

2008 East
PLATINUM SPONSORS:
Appcelerator
Think Fast: Accelerate AJAX Development with Appcelerator
GOLD SPONSORS:
DreamFace Interactive
The Ultimate Framework for Creating Personalized Web 2.0 Mashups
ICEsoft
AJAX and Social Computing for the Enterprise
Kaazing
Enterprise Comet: Real–Time, Real–Time, or Real–Time Web 2.0?
Nexaweb
Now Playing: Desktop Apps in the Browser!
Sun
jMaki as an AJAX Mashup Framework
POWER PANELS:
The Business Value
of RIAs
What Lies Beyond AJAX?
KEYNOTES:
Douglas Crockford
Can We Fix the Web?
Anthony Franco
2008: The Year of the RIA
Click For 2007 Event Webcasts
SYS-CON.TV
POWERBUILDER LINKS YOU MUST CLICK ON


Business Process Service
Connecting PowerBuilder to a Service Oriented Architecture Business Process

Digg This!

In my last article I showed you how to expose a PowerBuilder component on an EAServer as a Web Service that could then be orchestrated into a Business Process Service in Unwired Orchestrator with Sybase WorkSpace. In this article I want to attack the big picture from another angle, the angle of calling a Business Process Service in Unwired Orchestrator from a PowerBuilder Client.

Business Process Service
What I'll leave out is the area in the middle, the technology for how to use Sybase WorkSpace to orchestrate other services into a Business Process Service. Such a process can contain many things, such as a Database Service, Java Service, and a SOAP Service (see Figure 1). If you want to see how this can be done, see my blog at http://ianthain.pbdjmagazine.com and find the posting for "TechWave 2006 Boot Camp Workbook and Videos." Here you can download everything you need to create the BP in Figure 1.

This Business Process Service uses a Database Service that calls a database Stored Procedure, returning the first and last name of a particular customer id. It then uses the first and last name as input parameters to a Java Service that concatenates the two together but in reverse order as a result. Then the orchestration calls a SOAP Service, which is, in fact, a PowerBuilder component in EAServer exposed as a Web Service, and this returns the current date and time in EAServer. Finally, everything is returned from the Business Process Service as a string (see figure 7).

Once this Business Process Service is created and deployed from Sybase WorkSpace to Unwired Orchestrator on EAServer, its WSDL can be viewed and saved (see Code Listing 1). Short for Web Services Description Language, WSDL is an XML-formatted language used to describe a Web Service's capabilities as collections of communication endpoints capable of exchanging messages.

PowerBuilder Client Application
For the application we'll use the .NET Web Service Engine so make sure that you have.NET 2.0 SDK installed on the client machine before proceeding any farther. This can be downloaded from www.microsoft.com/downloads/details.aspx?
FamilyID=fe6f2099-b7b4-4f47-a244-c96d69c35dec&DisplayLang=en
.

PowerBuilder 10.5 can help us use SOAP in a 4GL way. Let's face it, we're 4GL PB developers and want to concentrate on solving the bigger business problem at hand quickly rather than getting lost in lower-level technologies. We do this by importing the PB Extension, pbwsclient105.pbx (see Figure 2)

Once imported into the PBL, you'll have two SOAP NVOs that will aid you in calling your Web Service; these are soapconnect and soapexception (see Figure 3). But, this is only part of the way that PowerBuilder helps us. So, next we have to create a Web Service Proxy for us to call the operation (Web Service method) in the Web Service, and we have a wizard available from the New|Project Tab to help us.

In the Web Service Proxy Wizard (see Figure 4) we select the.NET Engine and point the wizard at the previously saved WSDL from our Business Process Service. The wizard can then parse the WSDL and display the available services. Along with this, PowerBuilder automatically generates all the necessary DLLs for the Web Service interaction (see Figure 5) and the necessary PowerBuilder object for you, the developer, to use in your application (see Figure 6). Operation1 was defined when initially creating the Business Process in Sybase WorkSpace, along with the input parameter cust_id, now defined in the structure bpoperation1 and the return parameter result now defined in the structure bpoperation1response.

Now all that's left is to develop the PowerBuilder client application, and for this I've created a very simple SDI (see Figure 7). In the button-clicked event (OK...let's not get drawn into the correctness of putting the code here....It's a test application), we can code the PowerScript to...

  1. Create a SOAP Connection
  2. Create an instance of the Proxy Object in memory
  3. Populate the input parameter
  4. Call the Operation in the Business Process Service
  5. Display the result
Obviously, I've included some logic to catch any errors (See Code Listing 2). Very simple and very RAD 4GL as always. Connecting PowerBuilder to a Service Oriented Architecture couldn't be easier. Welcome to the wide world of SOA development.
About Ian Thain
In his customer facing role, Ian is very involved with the design, production and testing of Enterprise class UnWired Solutions, that have been implemented using Sybase's UnWired tools for Sybase customers around the globe. In addition, Ian is a dedicated technical expert continually working with Sybase's key partners and clients to enhance the capabilities of the UnWired solutions that Sybase can offer to its customers. As a five-year employee at Sybase, Inc. Ian has experience of working with the ITSG engineering teams, in particular on the EAServer, EP, PowerBuilder, PocketBuilder, PowerJ & OEM products. Amongst his many achievements, and deriving from his commitment to delivering hi-performance solutions, Ian was responsible for the design and implementation of the myPortfolio J2EE demo added to the EAServer distribution. Ian regularly addresses technical audiences all over the world providing profound technical knowledge, and has built up a reputation for being a knowledgeable speaker and his sessions are very well attended. He also writes whitepapers, demos and articles for various Sybase products and published in Journals such as PBDJ from SYS-CON (pbdj.sys-con.com). Ian is also the PocketBuilder Evangelist and works closely with the team in Concord, MA on new features and demonstration for the PocketBuilder product.

PBDJ LATEST STORIES . . .
3rd International Virtualization Conference & Expo: Themes & Topics
From Application Virtualization to Xen, a round-up of the virtualization themes & topics being discussed in NYC June 23-24, 2008 by the world-class speaker faculty at the 3rd International Virtualization Conference & Expo being held by SYS-CON Events in The Roosevelt Hotel, in midtown
The PB Future: More on Graphs in PowerBuilder 11.5
Last week I posted a screen shot of the new 3D Rendering capabilities being added to some of the 3D graphs in PowerBuilder 11.5. It was met with mixed reviews on the PowerBuilder Futures newsgroup (forums.sybase.com) so I went back to the drawing board to see what I could come up with.
BluePhoenix Expands Modernization Collaboration with Microsoft
BluePhoenix announced that it has expanded its collaboration with Microsoft on legacy modernization projects. The collaboration provides customers moving their applications or databases to .NET-based environments the best in both modernization services and technical support. BluePhoeni
Sybase PowerBuilder Delivers AJAX and .NET Enhancements Enabling Rich Internet Application Development
Sybase announced that AJAX development capabilities and further Microsoft .NET enhancements have been added to the latest version of Sybase PowerBuilder 11, the premier 4GL rapid application development (RAD) tool. PowerBuilder 11.2 represents another milestone in the PowerBuilder road
PowerBuilder 11.2 Released: Sybase's Flagship IDE
Sybase has released the production version of its flagship .NET development tool - PowerBuilder version 11.2. This latest release of its premier IDE for RAD includes not only standard fixes but also a good list of new features. Here is the 'Coles Notes' version of these new features.
PowerBuilder Takes You To .NET
In June of 2007, Sybase released PowerBuilder 11. PowerBuilder developers can now deploy PowerBuilder components as .NET Assemblies or as .NET Web Services. A PowerBuilder developer can now create these .NET resources so that those who develop .NET solutions can benefit from PowerBuild
SUBSCRIBE TO THE WORLD'S MOST POWERFUL NEWSLETTERS
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
Publish Your Article! Please send it to editorial(at)sys-con.com!

Advertise on this site! Contact advertising(at)sys-con.com! 201 802-3021

SYS-CON FEATURED WHITEPAPERS

ADS BY GOOGLE
BREAKING POWERBUILDER / SYBASE NEWS
Sybase and Sun Set Guinness World Record for World's Largest Data Warehouse
Sybase, Inc. (NYSE:SY), the largest enterprise software and services company exclusively