To write a BBj program that consumes a Web service, follow the steps listed below:
Build or obtain the necessary Java classes for consuming the web service. Often, Web Service providers provide a document called a WSDL. If this is the case:
Obtain the file or URL for the WSDL.
Use the wsimport tool, located in the JDK's bin directory, to create the Java classes for consuming the web service. For detailed information on using wsimport, see https://download.oracle.com/javase/6/docs/technotes/tools/share/wsimport.html.
Include the Java class files or JARs in your BBj classpath, either by modifying the BBj's classpath or creating an SSCP.
Use embedded Java to invoke the methods of the generated Java Objects, as described in the "Consuming the Web Service" section of the Advantage article From Legacy to Enterprise With BBj Web Services.
Before trying to consume a Web service from within a BBj program, first
ensure that the machine running BBjServices has the proper configuration
for consuming Web services.
A BBj program cannot consume Web services without the proper configuration, just as a BBj program cannot make network calls without a server machine network connection.
1. CCOS demo from the BASIS Launchdock detailed in From Legacy to Enterprise With BBj Web Services