Package com._1c.g5.v8.dt.ws.common
Class WSDefinitionLoader
- java.lang.Object
- 
- com._1c.g5.v8.dt.natives.library.AbstractScomConnectionLoader
- 
- com._1c.g5.v8.dt.ws.common.WSDefinitionLoader
 
 
- 
 public class WSDefinitionLoader extends AbstractScomConnectionLoader Special provider for getting WSDL file content by url and by concreteVersion.
 - Firstly client should check that WSDefinitionLoader.Certificateis needed for this url. See methodneedUpdateCertificate(String). If it is needed than tune it
- Secondly client should check that authorization is needed for this url. See method needUrlAuthentification(String, Certificate). If authorization is needed client should find correct user name and password. User name and password should be checked by methodcheckUrlAuthentification(String, Certificate, String, String)
- Now client can get WSDL file content using information in previous stage. Client should call next methods for this getWSDefinitionContent(String, Certificate)orgetWSDefinitionContent(String, Certificate, String, String). If there is noWSDefinitionLoader.Certificateand authorization client should call methodgetWSDefinitionContent(String)
- At the end, client should call dispose()for release special data for getting content of WSDL file by url
 
- Firstly client should check that 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classWSDefinitionLoader.CertificateSpecial class contains structure of certificate for getting content of WSDL file.static classWSDefinitionLoader.WSDefinitionContentClass contains full content of WSDefinition.
 - 
Field Summary- 
Fields inherited from class com._1c.g5.v8.dt.natives.library.AbstractScomConnectionLoaderLD_LIBRARY_PATH, version
 
- 
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedWSDefinitionLoader(String id, Version version, IProcessManager processManager, IResolvableRuntimeInstallationManager resolvableRuntimeInstallationManager)Constructor
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancheckUrlAuthentification(String url, WSDefinitionLoader.Certificate certificate, String user, String password)Tries to authentification for WSDLurlbycertificate,username andpasswordvoiddispose()Releases special data for getting content of WSDL file by url
 You should call this method if you have no plans to soon get content of WSDL file or calling other methods from this class.WSDefinitionLoader.WSDefinitionContentgetWSDefinitionContent(String url)Gets WSDL file content and content of the external xsd files by urlWSDefinitionLoader.WSDefinitionContentgetWSDefinitionContent(String url, WSDefinitionLoader.Certificate certificate)Gets WSDL file content and content of the external xsd files by urlWSDefinitionLoader.WSDefinitionContentgetWSDefinitionContent(String url, WSDefinitionLoader.Certificate certificate, String user, String password)Gets WSDL file content and content of the external xsd files by urlbooleanneedUpdateCertificate(String url)Checks that WSDLurlneed for authentificationWSDefinitionLoader.CertificatebooleanneedUrlAuthentification(String url, WSDefinitionLoader.Certificate certificate)Checks that WSDLurlneed authentification- 
Methods inherited from class com._1c.g5.v8.dt.natives.library.AbstractScomConnectionLoadergetLibraries, getMessageException, getProcessEnvironments, getRuntimeInstallation, getSystemLibraries
 
- 
 
- 
- 
- 
Constructor Detail- 
WSDefinitionLoaderprotected WSDefinitionLoader(String id, Version version, IProcessManager processManager, IResolvableRuntimeInstallationManager resolvableRuntimeInstallationManager) Constructor- Parameters:
- id- unique id for creating infrastructure for getting WSDL file content, can't be- null
- version- actual- Versionfor getting images, can't be- null
- processManager- actual- IProcessManager, can't be- null
- resolvableRuntimeInstallationManager- actual- IResolvableRuntimeInstallationManager, can't be- null
 
 
- 
 - 
Method Detail- 
getWSDefinitionContentpublic WSDefinitionLoader.WSDefinitionContent getWSDefinitionContent(String url) throws WSDefinitionLoaderException Gets WSDL file content and content of the external xsd files by url- Parameters:
- url- actual WSDL url, can't be- null
- Returns:
- WSDL file content and content of the external xsd files, never null
- Throws:
- WSDefinitionLoaderException- if exception in native API is occurred
 
 - 
getWSDefinitionContentpublic WSDefinitionLoader.WSDefinitionContent getWSDefinitionContent(String url, WSDefinitionLoader.Certificate certificate) throws WSDefinitionLoaderException Gets WSDL file content and content of the external xsd files by url- Parameters:
- url- actual WSDL url, can't be- null
- certificate- actual- WSDefinitionLoader.Certificate. If Certificate not needed you should pass- null
- Returns:
- WSDL file content and content of the external xsd files, never null
- Throws:
- WSDefinitionLoaderException- if exception in native API is occurred
 
 - 
getWSDefinitionContentpublic WSDefinitionLoader.WSDefinitionContent getWSDefinitionContent(String url, WSDefinitionLoader.Certificate certificate, String user, String password) throws WSDefinitionLoaderException Gets WSDL file content and content of the external xsd files by url- Parameters:
- url- actual WSDL url, can't be- null
- certificate- actual- WSDefinitionLoader.Certificate. If Certificate not needed you should pass- null
- user- name of the user for authentification, can be- nullor empty string if user name not needed for authentification
- password- password for authentification, can be- nullor empty string if password not needed for authentification
- Returns:
- WSDL file content and content of the external xsd files, never null
- Throws:
- WSDefinitionLoaderException- if exception in native API is occurred
 
 - 
checkUrlAuthentificationpublic boolean checkUrlAuthentification(String url, WSDefinitionLoader.Certificate certificate, String user, String password) throws WSDefinitionLoaderException Tries to authentification for WSDLurlbycertificate,username andpassword- Parameters:
- url- actual WSDL url, can't be- null
- certificate- actual- WSDefinitionLoader.Certificate. If Certificate not needed you should pass- null
- password- password for authentification, can be- nullor empty string if password not needed for authentification
- Returns:
- trueif authentification pass correctly,- falseotherwise
- Throws:
- WSDefinitionLoaderException- if exception in native API is occurred
 
 - 
needUrlAuthentificationpublic boolean needUrlAuthentification(String url, WSDefinitionLoader.Certificate certificate) throws WSDefinitionLoaderException Checks that WSDLurlneed authentification- Parameters:
- url- actual WSDL url, can't be- null
- certificate- actual- WSDefinitionLoader.Certificate. If Certificate not needed you should pass- null
- Returns:
- trueif WSDL- urlneed authentification,- falseotherwise
- Throws:
- WSDefinitionLoaderException- if exception in native API is occurred
 
 - 
needUpdateCertificatepublic boolean needUpdateCertificate(String url) throws WSDefinitionLoaderException Checks that WSDLurlneed for authentificationWSDefinitionLoader.Certificate- Parameters:
- url- actual WSDL url, can't be- null
- Returns:
- trueif WSDL- urlneed for authentification- WSDefinitionLoader.Certificate,- falseotherwise
- Throws:
- WSDefinitionLoaderException- if exception in native API is occurred
 
 - 
disposepublic void dispose() Releases special data for getting content of WSDL file by url
 You should call this method if you have no plans to soon get content of WSDL file or calling other methods from this class. Attention! Client shouldn't call it after each call of methods from this class.
 
- 
 
-