|
Comments
Did you read today's front page stories & breaking news?
SYS-CON.TV
|
Web Services PowerBuilder .NET Web Services with Various Front Ends
A work in progress
By: Arthur Hefti
Nov. 26, 2008 11:10 AM
Last year I wrote an article in PBDJ describing an ASP.NET project that was done with DataWindow.NET in the browser ("Prognos" Volume 14, Issue 4) and PowerBuilder Web Services in the back end. The front end consisted of an intro page, two data entry pages, and one page with the result. The front end was rewritten in a couple of other technologies to test different ways to create browser-based applications. This article covers solutions that run in different browsers and on different operation systems. I will also look at PowerBuilder 11.2 Webform although it is IE-only. At the end I will cover PowerBuilder WinForm and PocketBuilder as they could be solutions for applications that are not always connected. This article doesn't cover all the possible techniques (Appeon comes to mind if you're fine with an IE-only solution or WPF The article shows the invocation of the help Web Service from one single button. The help Web Service takes three arguments (Configuration, Language, and Help Id). My presentation at TechWave 2008, for example, goes beyond this and covers passing XML data to a Web Service. The samples are available in the sandbox of our Web site. A list of links is provided at the end of the article. OpenLaszlo 4.0 First, I create the application consisting of a window and three tab pages (no intro page). I create a new project and a new file called prognosclient.lzx. I only place one label, field, and help button on the first tab page (see Figure 1). The help button is named that way so that, by passing it to the help Web Service, the appropriate help text is returned. Since I need to display the help information I also create a helpwindow. As a next step I define the SOAP interface for accessing the Web Service. It consists of a SOAP element referencing the wsdl with the wsdl attribute. For each function of the Web Service a remotecall element has to be defined with an ondata handler that is called when data is returned from the Web Service. In our sample the returned data is shown in the help window. The arguments are passed to the Web Service as XML strings. I create a createHelpXML function that takes as an argument the ID of the help item and returns the XML string to me. The only thing left is calling the help when clicking on the info button. This will be achieved by an onclick handler that calls the createHelpXML and passes it to the Web Service (see Listing 1). Reader Feedback: Page 1 of 1
Latest Cloud Developer 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 Cloud Computing News
|
|||||||||||||||||||||||||||||||||||||||||||||||||