/** * 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) { return getWsdlLocation(implType, new ReflectAnnotationReader()); }
/** * 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) { return getWsdlLocation(implType, new ReflectAnnotationReader()); }
/** * 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) { return getWsdlLocation(implType, new ReflectAnnotationReader()); }
/** * Gets WSDL from @WebService or @WebServiceProvider */ private @Nullable SDDocumentSource getPrimaryWsdl(final Object implementor) { Class implType = implementor.getClass(); // Takes care of @WebService, @WebServiceProvider's wsdlLocation EndpointFactory.verifyImplementorClass(implType); String wsdlLocation = EndpointFactory.getWsdlLocation(implType); if (wsdlLocation != null) { ClassLoader cl = implType.getClassLoader(); URL url = cl.getResource(wsdlLocation); if (url != null) { return SDDocumentSource.create(url); } throw new ServerRtException("cannot.load.wsdl", wsdlLocation); } return null; }
/** * Gets wsdl from @WebService or @WebServiceProvider */ private @Nullable SDDocumentSource getPrimaryWsdl(MetadataReader metadataReader) { // Takes care of @WebService, @WebServiceProvider's wsdlLocation EndpointFactory.verifyImplementorClass(implClass, metadataReader); String wsdlLocation = EndpointFactory.getWsdlLocation(implClass, metadataReader); if (wsdlLocation != null) { return SDDocumentSource.create(implClass, wsdlLocation); } return null; }
/** * Gets wsdl from @WebService or @WebServiceProvider */ private @Nullable SDDocumentSource getPrimaryWsdl(MetadataReader metadataReader) { // Takes care of @WebService, @WebServiceProvider's wsdlLocation EndpointFactory.verifyImplementorClass(implClass, metadataReader); String wsdlLocation = EndpointFactory.getWsdlLocation(implClass, metadataReader); if (wsdlLocation != null) { return SDDocumentSource.create(implClass, wsdlLocation); } return null; }
/** * Gets wsdl from @WebService or @WebServiceProvider */ private @Nullable SDDocumentSource getPrimaryWsdl(MetadataReader metadataReader) { // Takes care of @WebService, @WebServiceProvider's wsdlLocation EndpointFactory.verifyImplementorClass(implClass, metadataReader); String wsdlLocation = EndpointFactory.getWsdlLocation(implClass, metadataReader); if (wsdlLocation != null) { return SDDocumentSource.create(implClass, wsdlLocation); } return null; }
wsdlFile = EndpointFactory.getWsdlLocation(implementorClass, metadataReader);
wsdlFile = EndpointFactory.getWsdlLocation(implementorClass, metadataReader);
wsdlFile = EndpointFactory.getWsdlLocation(implementorClass, metadataReader);
String wsdlLocation = EndpointFactory.getWsdlLocation(implType); if (wsdlLocation != null) primaryWsdl = convertStringToSource(wsdlLocation);
.orElse(EndpointFactory.getWsdlLocation(implementationClass, metadataReader)); if (wsdlPath.isEmpty()) { throw SeedException.createNew(WSErrorCode.WSDL_LOCATION_MISSING)