1) create a WebLogic Web Service project - separate from the WebService service project
2) copy the C:\beaosb\wlserver_10.3\server\lib\wseeclient.zip 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();
company.setId(1234L);
company.setName("PierreIsAPig");
company.setCreationDate(1961);
service.getCompanyDBWSSoapPort().insertCompany(company);
here are the official instructions:
http://download.oracle.com/docs/cd/E12840_01/wls/docs103/webserv/client.html#wp229351
see also this thread
http://forums.oracle.com/forums/thread.jspa?threadID=723357&tstart=-1
Wednesday, May 19, 2010
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment