/** * This method is called on the factory by the object model builder when the parsing starts. * * @return the root of the object model. */ public Object newRoot(Object root, UnmarshallingContext navigator, String namespaceURI, String localName, Attributes attrs) { WebservicesMetaData webservicesMetaData = new WebservicesMetaData(descriptorURL); return webservicesMetaData; }
if (match(reader, nsUri, WEBSERVICES)) return new WebservicesMetaData(descriptorURL, wsdmds);
public void deploy(final DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { final DeploymentUnit unit = phaseContext.getDeploymentUnit(); final List<WebserviceDescriptionMetaData> webserviceDescriptions = new ArrayList<WebserviceDescriptionMetaData>(); boolean modifiedWSMeta = false; for (String endpoint : getDeploymentClasses(unit)) { try { final EndpointMetaData endpointMetaData = EndpointMetaData.build(unit, endpoint); if (endpointMetaData.isXTSEnabled()) { XTSDeploymentMarker.mark(unit); final boolean result = updateXTSEndpoint(endpoint, endpointMetaData, webserviceDescriptions, unit); modifiedWSMeta = modifiedWSMeta || result; } } catch (XTSException e) { throw new DeploymentUnitProcessingException("Error processing endpoint '" + endpoint + "'", e); } } if (modifiedWSMeta) { unit.putAttachment(WSAttachmentKeys.WEBSERVICES_METADATA_KEY, new WebservicesMetaData(null, webserviceDescriptions)); } }
false, config.getPort().getServiceQName(), null, null); WebserviceDescriptionMetaData wsDescMetaData = new WebserviceDescriptionMetaData(config.getServiceName().getLocalPart(), getWsdlLocation(), null, new PortComponentMetaData[]{portComponent}); WebservicesMetaData wsMetadata = new WebservicesMetaData(null, new WebserviceDescriptionMetaData[]{wsDescMetaData});
false, config.getPort().getServiceQName(), null, null); WebserviceDescriptionMetaData wsDescMetaData = new WebserviceDescriptionMetaData(config.getServiceName().getLocalPart(), getWsdlLocation(), null, new PortComponentMetaData[]{portComponent}); WebservicesMetaData wsMetadata = new WebservicesMetaData(null, new WebserviceDescriptionMetaData[]{wsDescMetaData});