|
|
YOUR FEEDBACK
Did you read today's front page stories & breaking news?
SYS-CON.TV SYS-CON.TV WEBCASTS |
POWERBUILDER LINKS YOU MUST CLICK ON PB TO BP
Business Process Service
Connecting PowerBuilder to a Service Oriented Architecture Business Process
By: Ian Thain
Dec. 10, 2006 02:00 PM
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
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 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...
PBDJ LATEST STORIES . . .
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 BREAKING POWERBUILDER / SYBASE NEWS
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||