-
Enhancement
-
Resolution: Done
-
Major
-
None
-
None
The EndpointPublisher spi currently allows for providing @WebService/@WebServiceProvider annotated endpoint class and deploy endpoint(s) to the running JBoss AS container with an api pretty much equivalent to the JAXWS Endpoint.publish(..) api. What is missing is the ability of doing something like:
List<Source> metadata = new ArrayList<Source>(); StreamSource source = WSDLUtil.getStream(_config.getWsdl()); metadata.add(source); Map<String, Object> properties = new HashMap<String, Object>(); properties.put(Endpoint.WSDL_SERVICE, portName.getServiceQName()); properties.put(Endpoint.WSDL_PORT, portName.getPortQName()); properties.put(WSDL_LOCATION, WSDLUtil.getURL(_config.getWsdl()).toExternalForm()); ... _endpoint = Endpoint.create(wsProvider); // instance of @WebServiceProvider annotated class, with no attributes in the annotation _endpoint.setMetadata(metadata); _endpoint.setProperties(properties); _endpoint.publish(publishUrl);
IOW, we need support for setting properties and metadata and passing them down to the stack (Apache CXF already reads them from the generated DDBeans/descriptor).
This is required for a proper SwitchYard integration into AS7.