I need to deploy the same web service for each client. This @javax.jws.WebService uses Object as method arguments and return types (as a result of <xs:anyType/> in wsdl). Each web service instance is deployed along with the client’s bank on the class path. This banner has a well-known structure and contains JAXB-annotated classes that the client wants to process through my service.
The problem is that when a client passes an instance of its class as an agrument method, the server-side JAXB context cancels it in some weird xerces dom node, because (as far as I understand) only @WebMethod and @WebService were scanned during deployment annotations that, as already mentioned, deal only with Object .
Simply put, I need to hint JAXB to WEB-INF/lib/customer_classes_14586.jar , which means some control over the creation of JAXBContext during the deployment of JAX-WS.
Is it possible at all?
Server-specific solutions are great (Glassfish 3.1 with meto ws stack)
UPDATE
I missed one thing that may be important: I deploy these web services as OSGI packages at runtime through the web admin console. When I press the deploy button, a new bank is programmatically created from the client library, webservice, wsdl class and appears. That way, I could intervene in the build process and provide a hint of information at this point in time, if that helps.
source share