Wednesday, May 19, 2010

WebLogic: building a Java client for a Web Service

1) create a WebLogic Web Service project - separate from the WebService service project

2) copy the C:\beaosb\wlserver_10.3\server\lib\ to the lib directory and UNZIP IT (huge amount of jars there)

3) add all the jars to the project classpath

4) add C:\beaosb\modules\org.apache.ant_1.6.5\lib\ant.jar  to the classpath

5) copy the WSDL, run the clientgen wizard, generate the client jar and add it to the classpath

6) write this kind of code:

        CompanyDBWSService service = new CompanyDBWSService();
        Company company = new Company();

here are the official instructions:

see also this thread

No comments: