Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

WSDL to SOAP envelopes

 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ranchers,

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 !!

Thanks,
Kamal Arora
 
Bartender
Posts: 2968
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Rajiv Arora
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

Thanks in advance !!
Kamal
 
Peer Reynders
Bartender
Posts: 2968
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Kamal Arora:
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.



Back in 2003 there was WebServiceStudio 2.0 for .NET (on GotDotNet) - however that hasn't been updated since then (and .NET 1.1). I haven't found an equivalent open source tool.

It's probably been fast enough to simply have WSDL2Java generate the required stubs and then write a command line program to use the stubs (See: 3. WSDL2Java: Generate the Server-side Wrapper Code and Stubs For Easy Client Access). However you still have to write client side handlers if you want to do anything with SOAP headers.

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 ]
    Bookmark Topic Watch Topic
  • New Topic