When you expose your PowerBuilder component as a Web service from your IDE (Integrated Development Environment), an EJB is created from the PowerBuilder component. The deployed EJB ultimately has a J2EE Web services description file associated with it.
The EJB uses the information contained in the Web services description file to generate:
A Web application which contains a servlet – located in the deploy\webapps\WS_name subdirectory of your EAServer installation, where WS_name is the name of the Web application. It contains all the relevant Web service files including configuration files and the original and modified WSDL files. The modified WSDL file contains the actual address of your Web service. For example:
<wsdlsoap:address location="http://mymachine:8000/pbsoap_ws/n_pbsoap"/>
where pbsoap_ws is the name of the Web service and n_pbsoap is the name of the PowerBuilder component you exposed as a Web service.
Associated files for the EJB – located in the deploy\ejbjars\EJB_name subdirectory of your EAServer installation, where EJB_name is the name of the EJB.
An example of exposing a PowerBuilder component
as a Web service
You have a component (NVO) named n_pbsoap with a package name of pbsoap in your PowerBuilder IDE.
You expose the component from your IDE using these comments:
javaPackage="com.sybase.mypackage";webServices="n_pbsoap";
A Web application is deployed to the deploy\webapps\pbsoap_ws subdirectory of your EAServer installation.
Access the Web service WSDL at http://mymachine:8000/pbsoap_ws/n_pbsoap?wsdl