Originally posted by Gowtham Ganamukala: External Link helpfull .
but in wscomplie downloading page i cant able to find what to download.
wscompile would be part of the Part of the SQL Anywhere development installation.
Personally I would advise against deploying a web service inside a database or calling a web service from inside a database (usually support for these kinds of features are short-lived fads on DB servers). Usually collocating the service/client on the same server instance (but outside of the DB server) is better - that way you'll have less headaches when you need to migrate to the next version of the DB server and support for your "niche" feature (at least in the DB world) has been dropped.
Hi Peer , thanks for reply the post in JavaRanch .
i have given WSDL file , service is being exposed with JAX-PRC (IBM's) so intially i need to create the stub,skeleton for accesing the service . so i need to generate the java classes for the same so i found wscomplie will do .... when i tried to create with axis2 , all i got is so weired ..... clases get generated . any clues will b helpful.
Joined: Aug 19, 2005
Originally posted by Gowtham Ganamukala: when i tried to create with axis2 , all i got is so weired ..... classes get generated.
You cannot expect to get the classes that exist on the server - there simply isn't enough information in a WSDL. The classes that you do get are the "pieces" that you need to build the requests that can be sent to the service - other "pieces" are used to hold the information that was contained in the response form the service.
There are some extension options available for ADB Integration With Axis2. For example "WSDL2Java ... -Ew true" enables ADBs "Wrapped Mode"
Notice that ADB has three generation modes. "Expanded Mode" creates a bean for each top level XML element and each complex XML type (easily doubling the number of classes that you would have seen under Axis 1.x) used in the SOAP payload. I suspect that "Expanded Mode" is the one that WSDL2Java uses by default - using the extension option "-Ew true" on WSDL2Java will probably place it into "Wrapped Mode" which will limit the number of classes that are generated.