Exposing an NVO as a Web service
The EAServer Component wizard includes
a page that allows you to expose the component that the wizard generates
as a Web service.
The Expose Component as Web Service page of the wizard has
options for exposing a component as an EJB 2.1 Web service (for EAServer 6.x) or as an EAServer 5.x Web service. If you
expose the components as an EJB 2.1 Web service, you must specify
a Java package name in the wizard or on the General tab page in
the Project painter.
For an EAServer 5.x Web
service, you need to set the properties described in Table 23-8.
Property |
Description |
---|---|
Web Application |
The name of the Web application to which |
Service |
The service name you want to use for |
HTTP Port |
The port you use for Web services in EAServer. If you do not specify |
The Expose This Component As Web Service check box and the
three text box fields are also listed on the Advanced tab of the
Properties dialog box for an EAServer component.
This allows you to set these properties without using the wizard
or to modify these properties after completing the wizard.
If you reference a structure object in an EAServer component
that you deploy as a Web service, the structure object is automatically
rendered as a custom datatype.
The following limitation currently applies to components exposed
as Web services in EAServer: If
the PowerBuilder component has a function that passes a character
datatype by reference, the component cannot be exposed as a Web
service. An error message such as: “Can’t find
prefix for ‘http://DefaultNamespace’.” displays.