Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-3324

Extend WS EndpointPublisher to allow providing properties/metadata

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Done
    • Major
    • 7.1.0.Final
    • None
    • Web Services
    • None

    Description

      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.

      Attachments

        Activity

          People

            rhn-support-asoldano Alessio Soldano
            rhn-support-asoldano Alessio Soldano
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: