public String getWsdlLocation() { for (WebService service : wsAnnotations) { if (!StringUtils.isEmpty(service.wsdlLocation())) { return service.wsdlLocation(); } } if (null != wsProviderAnnotation && !StringUtils.isEmpty(wsProviderAnnotation.wsdlLocation())) { return wsProviderAnnotation.wsdlLocation(); } return null; }
private static String getWsdlLocation(Class<?> clazz) { WebService webService = clazz.getAnnotation(WebService.class); if (webService != null) { String wsdlLocation = webService.wsdlLocation().trim(); if (wsdlLocation.length() == 0) wsdlLocation = null; return wsdlLocation; } WebServiceClient webServiceClient = clazz.getAnnotation(WebServiceClient.class); if (webServiceClient != null) { String wsdlLocation = webServiceClient.wsdlLocation().trim(); if (wsdlLocation.length() == 0) wsdlLocation = null; return wsdlLocation; } WebServiceProvider webServiceProvider = clazz.getAnnotation(WebServiceProvider.class); if (webServiceProvider != null) { String wsdlLocation = webServiceProvider.wsdlLocation().trim(); if (wsdlLocation.length() == 0) wsdlLocation = null; return wsdlLocation; } return null; }
public String getWsdlLocation() { for (WebService service : wsAnnotations) { if (!StringUtils.isEmpty(service.wsdlLocation())) { return service.wsdlLocation(); } } if (null != wsProviderAnnotation && !StringUtils.isEmpty(wsProviderAnnotation.wsdlLocation())) { return wsProviderAnnotation.wsdlLocation(); } return null; }
private static String getWsdlLocation(final Class<?> clazz) { final WebService webService = clazz.getAnnotation(WebService.class); if (webService != null) { String wsdlLocation = webService.wsdlLocation().trim(); if (wsdlLocation.length() == 0) { wsdlLocation = null; } return wsdlLocation; } final WebServiceClient webServiceClient = clazz.getAnnotation(WebServiceClient.class); if (webServiceClient != null) { String wsdlLocation = webServiceClient.wsdlLocation().trim(); if (wsdlLocation.length() == 0) { wsdlLocation = null; } return wsdlLocation; } final WebServiceProvider webServiceProvider = clazz.getAnnotation(WebServiceProvider.class); if (webServiceProvider != null) { String wsdlLocation = webServiceProvider.wsdlLocation().trim(); if (wsdlLocation.length() == 0) { wsdlLocation = null; } return wsdlLocation; } return null; }
private static String getWsdlLocation(final Class<?> clazz) { final WebService webService = clazz.getAnnotation(WebService.class); if (webService != null) { String wsdlLocation = webService.wsdlLocation().trim(); if (wsdlLocation.length() == 0) { wsdlLocation = null; } return wsdlLocation; } final WebServiceClient webServiceClient = clazz.getAnnotation(WebServiceClient.class); if (webServiceClient != null) { String wsdlLocation = webServiceClient.wsdlLocation().trim(); if (wsdlLocation.length() == 0) { wsdlLocation = null; } return wsdlLocation; } final WebServiceProvider webServiceProvider = clazz.getAnnotation(WebServiceProvider.class); if (webServiceProvider != null) { String wsdlLocation = webServiceProvider.wsdlLocation().trim(); if (wsdlLocation.length() == 0) { wsdlLocation = null; } return wsdlLocation; } return null; }
/** * @param klass class supporting annotations * @return the 'wsdlLocation' attribute's value (from @WebService or @WebServiceProvider) */ public static String getWsdlLocation(Class<?> klass) { WebService ws = getWebService(klass); if (ws != null) { return ws.wsdlLocation(); } WebServiceProvider wsp = getWebServiceProvider(klass); if (wsp != null) { return wsp.wsdlLocation(); } throw new IllegalStateException("Class '" + klass + "' have neither @WebService nor @WebServiceProvider annotation"); }
public static WebServiceProviderAnnot createFromAnnotation(Annotation annotation) { WebServiceProviderAnnot returnAnnot = null; if (annotation != null && annotation instanceof javax.xml.ws.WebServiceProvider) { javax.xml.ws.WebServiceProvider wsp = (javax.xml.ws.WebServiceProvider) annotation; returnAnnot = new WebServiceProviderAnnot(wsp.wsdlLocation(), wsp.serviceName(), wsp.portName(), wsp.targetNamespace()); } return returnAnnot; }
public static WebServiceProviderAnnot createFromAnnotation(Annotation annotation) { WebServiceProviderAnnot returnAnnot = null; if (annotation != null && annotation instanceof javax.xml.ws.WebServiceProvider) { javax.xml.ws.WebServiceProvider wsp = (javax.xml.ws.WebServiceProvider) annotation; returnAnnot = new WebServiceProviderAnnot(wsp.wsdlLocation(), wsp.serviceName(), wsp.portName(), wsp.targetNamespace()); } return returnAnnot; }
/** * Returns the wsdl from @WebService, or @WebServiceProvider annotation using * wsdlLocation element. * * @param implType * endpoint implementation class * make sure that you called {@link #verifyImplementorClass} on it. * @return wsdl if there is wsdlLocation, else null */ public static @Nullable String getWsdlLocation(Class<?> implType, MetadataReader metadataReader) { if (metadataReader == null) { metadataReader = new ReflectAnnotationReader(); } WebService ws = metadataReader.getAnnotation(WebService.class, implType); if (ws != null) { return nullIfEmpty(ws.wsdlLocation()); } else { WebServiceProvider wsProvider = implType.getAnnotation(WebServiceProvider.class); assert wsProvider != null; return nullIfEmpty(wsProvider.wsdlLocation()); } }
/** * Returns the wsdl from @WebService, or @WebServiceProvider annotation using * wsdlLocation element. * * @param implType * endpoint implementation class * make sure that you called {@link #verifyImplementorClass} on it. * @return wsdl if there is wsdlLocation, else null */ public static @Nullable String getWsdlLocation(Class<?> implType, MetadataReader metadataReader) { if (metadataReader == null) { metadataReader = new ReflectAnnotationReader(); } WebService ws = metadataReader.getAnnotation(WebService.class, implType); if (ws != null) { return nullIfEmpty(ws.wsdlLocation()); } else { WebServiceProvider wsProvider = implType.getAnnotation(WebServiceProvider.class); assert wsProvider != null; return nullIfEmpty(wsProvider.wsdlLocation()); } }
/** * Returns the wsdl from @WebService, or @WebServiceProvider annotation using * wsdlLocation element. * * @param implType * endpoint implementation class * make sure that you called {@link #verifyImplementorClass} on it. * @return wsdl if there is wsdlLocation, else null */ public static @Nullable String getWsdlLocation(Class<?> implType, MetadataReader metadataReader) { if (metadataReader == null) { metadataReader = new ReflectAnnotationReader(); } WebService ws = metadataReader.getAnnotation(WebService.class, implType); if (ws != null) { return nullIfEmpty(ws.wsdlLocation()); } else { WebServiceProvider wsProvider = implType.getAnnotation(WebServiceProvider.class); assert wsProvider != null; return nullIfEmpty(wsProvider.wsdlLocation()); } }
String targetNamespace = (null != ws) ? ws.targetNamespace() : wsp.targetNamespace(); String portName = (null != ws) ? ws.portName() : wsp.portName(); String url = (null != ws) ? ws.wsdlLocation() : wsp.wsdlLocation(); String className = (null != ws) ? ws.endpointInterface() : null;
annWsdlLocation = (anWebService != null) ? anWebService.wsdlLocation() : anWebServiceProvider.wsdlLocation();
servineNamespace = getValue(webServiceProviderAnnotation.targetNamespace(), servineNamespace); serviceName = getValue(webServiceProviderAnnotation.serviceName(), serviceName); wsdlFileName = webServiceProviderAnnotation.wsdlLocation(); javaInterface.setRemotable(true);
public String getAnnoWebServiceWSDLLocation() { if (annotation_WsdlLocation == null) { if (getAnnoWebService() != null) { annotation_WsdlLocation = getAnnoWebService().wsdlLocation(); //If this is not an implicit SEI, then make sure that its not on the SEI if (composite.isServiceProvider()) { if (!DescriptionUtils.isEmpty(getAnnoWebServiceEndpointInterface())) { DescriptionBuilderComposite seic = getServiceDescriptionImpl().getDBCMap() .get(composite.getWebServiceAnnot().endpointInterface()); if (!DescriptionUtils.isEmpty(seic.getWebServiceAnnot().wsdlLocation())) { annotation_WsdlLocation = seic.getWebServiceAnnot().wsdlLocation(); } } } } else if (getAnnoWebServiceProvider() != null && !DescriptionUtils.isEmpty(getAnnoWebServiceProvider().wsdlLocation())) { annotation_WsdlLocation = getAnnoWebServiceProvider().wsdlLocation(); } else { // There is no default value per JSR-181 MR Sec 4.1 pg 16 annotation_WsdlLocation = ""; } } return annotation_WsdlLocation; }
public String getAnnoWebServiceWSDLLocation() { if (annotation_WsdlLocation == null) { if (getAnnoWebService() != null) { annotation_WsdlLocation = getAnnoWebService().wsdlLocation(); //If this is not an implicit SEI, then make sure that its not on the SEI if (composite.isServiceProvider()) { if (!DescriptionUtils.isEmpty(getAnnoWebServiceEndpointInterface())) { DescriptionBuilderComposite seic = getServiceDescriptionImpl().getDBCMap() .get(composite.getWebServiceAnnot().endpointInterface()); if (!DescriptionUtils.isEmpty(seic.getWebServiceAnnot().wsdlLocation())) { annotation_WsdlLocation = seic.getWebServiceAnnot().wsdlLocation(); } } } } else if (getAnnoWebServiceProvider() != null && !DescriptionUtils.isEmpty(getAnnoWebServiceProvider().wsdlLocation())) { annotation_WsdlLocation = getAnnoWebServiceProvider().wsdlLocation(); } else { // There is no default value per JSR-181 MR Sec 4.1 pg 16 annotation_WsdlLocation = ""; } } return annotation_WsdlLocation; }
/** * This method will be used to attach @WebServiceProvider annotation data to the * <code>DescriptionBuilderComposite</code> * * @param composite - <code>DescriptionBuildercomposite</code> */ private void attachWebServiceProviderAnnotation(DescriptionBuilderComposite composite) { WebServiceProvider webServiceProvider = (WebServiceProvider)ConverterUtils. getAnnotation(WebServiceProvider.class, serviceClass); if (webServiceProvider != null) { // Attach @WebServiceProvider annotation data WebServiceProviderAnnot wspAnnot = WebServiceProviderAnnot. createWebServiceAnnotImpl(); wspAnnot.setPortName(webServiceProvider.portName()); wspAnnot.setServiceName(webServiceProvider.serviceName()); wspAnnot.setTargetNamespace(webServiceProvider.targetNamespace()); wspAnnot.setWsdlLocation(webServiceProvider.wsdlLocation()); composite.setWebServiceProviderAnnot(wspAnnot); } }
/** * This method will be used to attach @WebServiceProvider annotation data to the * <code>DescriptionBuilderComposite</code> * * @param composite - <code>DescriptionBuildercomposite</code> */ private void attachWebServiceProviderAnnotation(DescriptionBuilderComposite composite) { WebServiceProvider webServiceProvider = (WebServiceProvider)ConverterUtils. getAnnotation(WebServiceProvider.class, serviceClass); if (webServiceProvider != null) { // Attach @WebServiceProvider annotation data WebServiceProviderAnnot wspAnnot = WebServiceProviderAnnot. createWebServiceAnnotImpl(); wspAnnot.setPortName(webServiceProvider.portName()); wspAnnot.setServiceName(webServiceProvider.serviceName()); wspAnnot.setTargetNamespace(webServiceProvider.targetNamespace()); wspAnnot.setWsdlLocation(webServiceProvider.wsdlLocation()); composite.setWebServiceProviderAnnot(wspAnnot); } }
wsdlLocation = endpointDescJava.getAnnoWebServiceProvider().wsdlLocation();
wsdlLocation = endpointDescJava.getAnnoWebServiceProvider().wsdlLocation();