Back in late 2002 I wrote an article on creating Web Services using PowerBuilder ("Implementing PowerBuilder-Based Web Services from PowerDynamo"). It was based on a PowerBuilder 8.0 component deployed to EAServer called from Web pages based on PowerDynamo that used DOM to generate HTML from the XML from the Web Service. Because PowerBuilder 8.0 didn't support the native generation of XML, PowerScript was used to generate it manually.
When PowerBuilder 9.0 came out, native XML was introduced. So were JSP targets. So I took that opportunity to rewrite the EAServer component with PowerBuilder 9.0 and rewrote the Web pages that accessed it using JSP. I wrote an article on how that was implemented in late 2003 ("Creating a Web Service with PowerBuilder"). I was just updating the original component to take advantage of native XML support and using the Jakarta Xtags taglib library to do the XSLT Transform in the Web pages rather than PowerDynamo's DOM processor.