Is it possible to reuse commonly used XML Schema parts across multiple web services to save memory?

We have the problem, that in a former version of our web service infrastructure (it operated on spring), we partioned the methods of our web service using multiple ports in one web service.

Now we migrated to CXF, and with the bottom-up-approach we favored, we have the problem that only one port is generated in the resulting WSDL (I think this is not a CXF restriction but a JAXWS restriction, there are not annotations to manage multiple ports I thing).

So our solution was to generated for each former port a custom web service. Now we have about 100 services running, but deploying them takes first very long and second it can easily run out of memory depending on the machine. Since they use all the same XML schema finally (nearly the same, since not all services use all available JAXB data classes), the memory comsumption is quadratic (the more JAXB data classes are introduced, the more web services are generated automatically by us).

Is there some reuse-concept on the server side to reuse XML schema parts (its ok if each web service has its own xml schema - as I said they subset a global schema, however I thing currently the mapping to memory-data-structures is not shared - at least I suspect because running out of memory)

Reply via email to