NCName ncName=endPoint.getName(); if(ncName!=null){ String name=ncName.toString(); BindingElement binding =endPoint.getBindingElement(); if (binding != null){ DOMUtils.printQualifiedAttribute(Constants.ATTR_BINDING, URI address =endPoint.getAddress(); if (address != null){ DOMUtils.printAttribute(Constants.ATTR_ADDRESS, pw); printExtensibilityAttributes(endPoint.getExtensionAttributes(), endPoint, pw); pw.println('>'); printDocumentation(endPoint.getDocumentationElements(), des, pw); printExtensibilityElements(endPoint.getClass(), endPoint.getExtensionElements(), des, pw); pw.println(" </" + tagName + '>');
if(name != null) endpoint.setName(new NCName(name)); endpoint.setBindingName(bindingQN); } catch (WSDLException e) { getErrorReporter().reportError( endpoint.setAddress(getURI(address)); endpoint.addExtensionElement( parseExtensionElement(EndpointElement.class, endpoint, tempEl, desc) );
/** * Clear the actual service endpoints in {@code description} and use {@code selectedEndpoint} instead of * actual endpoints. * * @param selectedEndpoint Endpoint which will replace the WSDL endpoints * @param description WSDL 2.0 description * @throws APIMgtWSDLException If an error occurred while updating endpoints */ private void updateEndpoints(String selectedEndpoint, Description description) throws APIMgtWSDLException { Service[] serviceMap = description.getServices(); for (Service svc : serviceMap) { Endpoint[] portMap = svc.getEndpoints(); for (Endpoint endpoint : portMap) { EndpointElement element = endpoint.toElement(); try { element.setAddress(new URI(selectedEndpoint)); } catch (URISyntaxException e) { throw new APIMgtWSDLException( "Error occurred while setting the wsdl address location as " + selectedEndpoint, e, ExceptionCodes.INTERNAL_WSDL_EXCEPTION); } } } }
if(name != null) endpoint.setName(new NCName(name)); endpoint.setBindingName(bindingQN); } catch (WSDLException e) { getErrorReporter().reportError( endpoint.setAddress(getURI(address)); endpoint.addExtensionElement( parseExtensionElement(EndpointElement.class, endpoint, tempEl, desc) );
/** * Clear the actual service endpoints in {@code description} and use {@code selectedEndpoint} instead of * actual endpoints. * * @param selectedEndpoint Endpoint which will replace the WSDL endpoints * @param description WSDL 2.0 description * @throws APIMgtWSDLException If an error occurred while updating endpoints */ private void updateEndpoints(String selectedEndpoint, Description description) throws APIMgtWSDLException { Service[] serviceMap = description.getServices(); for (Service svc : serviceMap) { Endpoint[] portMap = svc.getEndpoints(); for (Endpoint endpoint : portMap) { EndpointElement element = endpoint.toElement(); try { element.setAddress(new URI(selectedEndpoint)); } catch (URISyntaxException e) { throw new APIMgtWSDLException( "Error occurred while setting the wsdl address location as " + selectedEndpoint, e, ExceptionCodes.INTERNAL_WSDL_EXCEPTION); } } } }
NCName ncName=endPoint.getName(); if(ncName!=null){ String name=ncName.toString(); BindingElement binding =endPoint.getBindingElement(); if (binding != null){ DOMUtils.printQualifiedAttribute(Constants.ATTR_BINDING, URI address =endPoint.getAddress(); if (address != null){ DOMUtils.printAttribute(Constants.ATTR_ADDRESS, pw); printExtensibilityAttributes(endPoint.getExtensionAttributes(), endPoint, pw); pw.println('>'); printDocumentation(endPoint.getDocumentationElements(), des, pw); printExtensibilityElements(endPoint.getClass(), endPoint.getExtensionElements(), des, pw); pw.println(" </" + tagName + '>');
NCName ncName=endPoint.getName(); if(ncName!=null){ String name=ncName.toString(); BindingElement binding =endPoint.getBindingElement(); if (binding != null){ OMUtils.printQualifiedAttribute(Constants.ATTR_BINDING, URI address =endPoint.getAddress(); if (address != null){ OMUtils.printAttribute(Constants.ATTR_ADDRESS, printExtensibilityAttributes(endPoint.getExtensionAttributes(), endPoint, pw); pw.println('>'); printDocumentation(endPoint.getDocumentationElements(), des, pw); printExtensibilityElements(endPoint.getClass(), endPoint.getExtensionElements(), des, pw); pw.println(" </" + tagName + '>');