URI clientPublishURI = webService.getClientPublishUrl().toURI(); if(!clientPublishURI.isOpaque()) { parent = new File(clientPublishURI); } else { parent = new File(webService.getClientPublishUrl().getPath()); parent = new File(webService.getClientPublishUrl().getPath());
/** * write the descriptor class to a DOM tree and return it * * @param parent node for the DOM tree * @param node name for the descriptor * @param the descriptor to write * @return the DOM tree top node */ public Node writeDescriptor(Node parent, String nodeName, WebService webService) { Node webServiceNode = super.writeDescriptor(parent, nodeName, webService); appendTextChild(webServiceNode, WebServicesTagNames.WEB_SERVICE_DESCRIPTION_NAME, webService.getName()); if( webService.hasClientPublishUrl() ) { URL url = webService.getClientPublishUrl(); appendTextChild(webServiceNode, WebServicesTagNames.CLIENT_WSDL_PUBLISH_URL, url.toExternalForm()); } return webServiceNode; }
public Node writeDescriptor(Node parent, String nodeName, WebService descriptor) { Node topNode = super.writeDescriptor(parent, nodeName, descriptor); //TODO is this needed? //writeDisplayableComponentInfo(topNode, descriptor); appendTextChild(topNode, WebServicesTagNames.WEB_SERVICE_DESCRIPTION_NAME, descriptor.getName()); appendTextChild(topNode, WLWebServicesTagNames.WEBSERVICE_TYPE, descriptor.getType()); if (descriptor.getClientPublishUrl() != null) { appendTextChild(topNode, WLWebServicesTagNames.WSDL_PUBLISH_FILE, descriptor.getClientPublishUrl().toString()); } WLWebServiceEndpointNode endpointNode = new WLWebServiceEndpointNode(); for (WebServiceEndpoint next : descriptor.getEndpoints()) { endpointNode.writeDescriptor (topNode, WebServicesTagNames.PORT_COMPONENT, next); } return topNode; }
/** * write the descriptor class to a DOM tree and return it * * @param parent node for the DOM tree * @param node name for the descriptor * @param the descriptor to write * @return the DOM tree top node */ public Node writeDescriptor(Node parent, String nodeName, WebService webService) { Node webServiceNode = super.writeDescriptor(parent, nodeName, webService); appendTextChild(webServiceNode, WebServicesTagNames.WEB_SERVICE_DESCRIPTION_NAME, webService.getName()); if( webService.hasClientPublishUrl() ) { URL url = webService.getClientPublishUrl(); appendTextChild(webServiceNode, WebServicesTagNames.CLIENT_WSDL_PUBLISH_URL, url.toExternalForm()); } return webServiceNode; }
public Node writeDescriptor(Node parent, String nodeName, WebService descriptor) { Node topNode = super.writeDescriptor(parent, nodeName, descriptor); //TODO is this needed? //writeDisplayableComponentInfo(topNode, descriptor); appendTextChild(topNode, WebServicesTagNames.WEB_SERVICE_DESCRIPTION_NAME, descriptor.getName()); appendTextChild(topNode, WLWebServicesTagNames.WEBSERVICE_TYPE, descriptor.getType()); appendTextChild(topNode, WLWebServicesTagNames.WSDL_PUBLISH_FILE, descriptor.getClientPublishUrl().toString()); WLWebServiceEndpointNode endpointNode = new WLWebServiceEndpointNode(); for (WebServiceEndpoint next : descriptor.getEndpoints()) { endpointNode.writeDescriptor (topNode, WebServicesTagNames.PORT_COMPONENT, next); } return topNode; }