Friday, June 11, 2010

WebLogic 11 clientgen and Java Client for a WebLogic Web Service

after having added tons of JARs to the classpath, I still get this error message:

java.lang.IllegalAccessError: tried to access class weblogic/wsee/jaxws/WLSContainer$WLSContainerResolver$1 from class weblogic/wsee/jaxws/WLSContainer$WLSContainerResolver

I give up hopes on clientgen.  I will simply use Axis2 libraries.


http://ws.apache.org/axis2/1_1_1/userguide-creatingclients.html

to get the xmlbeans data binding just run:

cd C:\apps\axis2-1.5.1\bin
wsdl2java.bat -d xmlbeans -uri C:/temp/GEOOSBService.WSDL

Remember first to set AXIS2_HOME to C:\apps\axis2-1.5.1

actually the advantage of using Axis databinding option (no -d xmlbeans, use the default) is that you have only 2 Java files to use:
GeoOsbServiceCallbackHandler.java and
GeoOsbServiceStub.java

I like simplicity!

No comments: