Interface SoapSession<T_SOAP_DOCUMENT extends SoapDocument>
-
- Type Parameters:
T_SOAP_DOCUMENT- TheRestDocumenttype used by thisRestSession
- All Superinterfaces:
AutoCloseable,Session
- All Known Implementing Classes:
AbstractSoapSession,SoapWebServiceSession
public interface SoapSession<T_SOAP_DOCUMENT extends SoapDocument> extends Session
A class implementing
SoapSessionestablishes and manages aWebServiceProtocol.SOAPconnection with a webPDF server.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T_SOAP_DOCUMENTcreateDocument()Creates a handle for aSoapWebServiceoutput without providing a source document.
This is recommended for webservices, that don't require a source document.T_SOAP_DOCUMENTcreateDocument(@NotNull File source)Creates aSoapDocumentoriginating from the givenFile.T_SOAP_DOCUMENTcreateDocument(@NotNull InputStream source)Creates aSoapDocumentoriginating from the givenInputStream.
Be aware: This copies all remaining bytes from the givenInputStreamto an array, to create a reusableBinaryDataSource.
Especially for large files using this is ill advised, using the alternative constructorscreateDocument(URI)orcreateDocument(File)is always recommended.T_SOAP_DOCUMENTcreateDocument(@NotNull URI source)Creates aSoapDocumentoriginating from the givenURI.<T_WEBSERVICE extends SoapWebService<?,?,?>>
T_WEBSERVICEcreateWebServiceInstance(@NotNull WebServiceType webServiceType)Creates a matchingSoapWebServiceinstance to execute a webPDF operation for the current session.booleanisUseLocalWsdl()When returningtrue, a wsdl stored on the local file system shall be used instead of the WSDL published by the webPDF server.voidsetUseLocalWsdl(boolean useLocalWsdl)When set totrue, a wsdl stored on the local file system shall be used instead of the WSDL published by the webPDF server.-
Methods inherited from interface net.webpdf.wsclient.session.Session
close, getAuthProvider, getSessionContext, getURI, getURI, getWebServiceProtocol
-
-
-
-
Method Detail
-
isUseLocalWsdl
boolean isUseLocalWsdl()
When returningtrue, a wsdl stored on the local file system shall be used instead of the WSDL published by the webPDF server.- Returns:
true, if a wsdl stored on the local file system shall be used instead of the WSDL published by the webPDF server.
-
setUseLocalWsdl
void setUseLocalWsdl(boolean useLocalWsdl)
When set totrue, a wsdl stored on the local file system shall be used instead of the WSDL published by the webPDF server.- Parameters:
useLocalWsdl-true, to use a wsdl stored on the local file system, instead of the WSDL published by the webPDF server.
-
createDocument
@NotNull T_SOAP_DOCUMENT createDocument()
Creates a handle for a
SoapWebServiceoutput without providing a source document.
This is recommended for webservices, that don't require a source document. (Such as the URL-Converter.)Be aware: Most webservices require a source document, with few exceptions. Before using this, make sure that this is valid for the
WebServicecall you intend to execute.
-
createDocument
@NotNull T_SOAP_DOCUMENT createDocument(@NotNull @NotNull InputStream source) throws ResultException
Creates a
SoapDocumentoriginating from the givenInputStream.
Be aware: This copies all remaining bytes from the givenInputStreamto an array, to create a reusableBinaryDataSource.
Especially for large files using this is ill advised, using the alternative constructorscreateDocument(URI)orcreateDocument(File)is always recommended.- Parameters:
source- TheURItheSoapDocumentis originating from.- Throws:
ResultException- Shall be thrown in case loading the source document failed.
-
createDocument
@NotNull T_SOAP_DOCUMENT createDocument(@NotNull @NotNull URI source) throws ResultException
Creates aSoapDocumentoriginating from the givenURI.- Parameters:
source- TheURItheSoapDocumentis originating from.- Throws:
ResultException- Shall be thrown in case loading the source document failed.
-
createDocument
@NotNull T_SOAP_DOCUMENT createDocument(@NotNull @NotNull File source) throws ResultException
Creates aSoapDocumentoriginating from the givenFile.- Parameters:
source- TheFiletheSoapDocumentis originating from.- Throws:
ResultException- Shall be thrown in case loading the source document failed.
-
createWebServiceInstance
@NotNull <T_WEBSERVICE extends SoapWebService<?,?,?>> T_WEBSERVICE createWebServiceInstance(@NotNull @NotNull WebServiceType webServiceType) throws ResultException
Creates a matchingSoapWebServiceinstance to execute a webPDF operation for the current session.- Type Parameters:
T_WEBSERVICE- TheWebServiceTypeto create an interface for.- Parameters:
webServiceType- TheWebServiceTypeto create an interface for.- Returns:
- A matching
SoapWebServiceinstance. - Throws:
ResultException- Shall be thrown, if theSoapWebServicecreation failed.
-
-