Wsdl2java client stubs only for some operations supported by wsdl?

Using Axis2 Wsdl2Java: there is a way to generate the appropriate client code from wsdl, but only for a subset of the supported operations in wsdl that are of interest.

i.e. if wsdl says that handler operations is it possible to only generate client code for one or two operations that are of interest?

I created client stubs for WSDL clients, and the resulting generated stubs and supporting code are too large for my goals> 75 MB.

I used Axis2 Wsdl2Java with the -U option to unpack the binding and due to parsing errors when trying using ADB I also had to use the XML beans binding.

Thanks,

Since I have not received a lot of feedback about this: I am going to edit this to reformulate the problem (since I do not care how this is achieved).

Basically, my real problem is that I am creating a rather large WAR file that the client uses in Tomcat7.0, and it consumes large amounts of memory.

Maybe I don't need / don't need to bind all the created classes in the WAR. but it seems to me that they are an integral part of the created Stub, and I'm sure there is a more elegant solution than I choose bits manually?

So, I think the problem should be repeated in another way: Axis2 generates a very large WAR file that consumes a large amount of my Tomcat resources. How can I reduce this WAR to be a smaller / "lighter weight" WAR.

Thanks,

+4
source share
1 answer

I am facing the same problem, although I use the wsimport tool to create stubs. In particular, I want to generate stubs for this wsdl http://www.daytonfreight.com/WebServices_v1.1/ShippingService.asmx?WSDL , but I want to generate stubs only for operations related to pickups.

So far, my only solution has been to create stubs for all operations, and then remove classes / code that I don't need.

0
source

Source: https://habr.com/ru/post/1398693/


All Articles