I have a very large WSDL which is aroung 2MBs in size (around ~50,000 lines). So for executing to wsdl2java I had to increase the java heap size, stack size and the timeout value. But this creates a performance bottleneck in my application and therefore as an alternative I am thinking of a way using which I can directly use the SOAP envelopes without doing wsdl2java. Is that possible using AXIS 1.3?
I say this because I tried using one of the tools SoapUI which takes the WSDL URL as an input and generates sample SOAP envelopes for all the operations. Looking at the performance of the tool it seems it does not do a wsdl2java behind the scene for generating the SOAP envelopes. So is my assumption correct? If so, is there any AXIS based tool/API using which I can directly generate SOAP envelopes from WSDL?
Any help in this regards would be really appreciated !!
WSDL2Java is a code generator and is only supposed to be used during development time. It is used to generate the client (and possibly server) stubs that your application will use to access (implement) the web service. During runtime WSDL2Java is not used.
Thanks Peer for sharing your views and I completely agree to what you mentioned.
So as per my initial post, I have a huge WSDL and I want to know the structure of SOAP request (i.e. all the input paramters etc) for a particular operation in the WSDL. So is that possible by any means using AXIS or are there other APIs that I can make use of?
There are tools like SoapUI and Altova's tools that generate sample SOAP requests for operations defined in a WSDL and I am looking to do similar thing.
If you want to access a web service directly (effectively bypassing the WSDL) then you can use JAX-RPC DII (Dynamic Invocation Interface; org.apache.axis.client.Call) or SAAJ. [ July 18, 2007: Message edited by: Peer Reynders ]