Qore xml Module
1.6.0
|
contains helper methods for retrieving WSDLs from a URL More...
Static Public Member Methods | |
static data | getFile (string fn, bool as_string=True) |
retrieves a local file and returns the file's contents as a string More... | |
static string | getHTTP (string url, *string path, *HTTPClient hc, *hash< auto > headers, bool as_string=True) |
retrieves a file from a URL with HTTP and returns the file's contents as a string More... | |
static data | getFTP (string url, string path, bool as_string=True) |
retrieves a file from a URL with the FTP protocol and returns the file's contents as binary or string data More... | |
static data | getFileFromURL (string url, string def_protocol='file', *HTTPClient http_client, *hash< auto > http_headers, bool as_string=True, *string def_path, *reference new_def_path) |
retrieves a file from a URL More... | |
static data | getFileFromURL (string url, hash< auto > u, string def_protocol='file', *HTTPClient http_client, *hash< auto > http_headers, bool as_string=False, *string def_path, *reference new_def_path) |
retrieves a file from an already-parsed URL More... | |
static WebService | getWSDL (WebService wsdl) |
returns the argument | |
static string | getWSDL (string wsdl, *HTTPClient http_client, *hash< auto > http_headers, *reference new_def_path) |
returns a WSDL string from a file name, optional HTTPClient object and optional header hash More... | |
static WebService | getWebServiceFromUrl (string url, *HTTPClient http_client, *hash< auto > http_headers) |
returns a WebService object from a URL and other optional arguments More... | |
static hash< auto > | parseMultiPartSOAPMessage (hash< auto > msg) |
takes a hash representation of a SOAP message and handles multipart messages, checks the content-type, and handles hrefs in the message | |
static bool | isSOAPMessage (hash< auto > msg) |
returns True is the message has a SOAP mime type | |
static *hash< auto > | parseSOAPMessage (hash< auto > msg) |
Public Attributes | |
const | SoapMimeTypes = (MimeTypeSoapXml, MimeTypeXml, MimeTypeXmlApp) |
Mime types recognized as SOAP messages. | |
contains helper methods for retrieving WSDLs from a URL
|
static |
retrieves a local file and returns the file's contents as a string
called by WSDLLib::getFileFromURL() in case the scheme is "file"
|
static |
retrieves a file from an already-parsed URL
in case the URL is actually a file path, environment variable substitution is performed on the path string
FileLocationHandler
module to retrieve file data for all schemes except "file://"
and "http(s)://"
, which uses WSDLLib::getFileFromUrl() and WSDLLib::getHTTP() respectively for backwards compatibility
|
static |
retrieves a file from a URL
in case the URL is actually a file path, environment variable substitution is performed on the path string
FileLocationHandler
module to retrieve file data for all schemes except "file://"
and "http(s)://"
, which uses WSDLLib::getFileFromUrl() and WSDLLib::getHTTP() respectively for backwards compatibility
|
static |
retrieves a file from a URL with the FTP protocol and returns the file's contents as binary or string data
called by WSDLLib::getFileFromURL() in case the scheme is "ftp"
|
static |
retrieves a file from a URL with HTTP and returns the file's contents as a string
called by WSDLLib::getFileFromURL() in case the scheme is "http"
|
static |
returns a WebService object from a URL and other optional arguments
the | URL to use to retrieve the file, the "file://" , "http://" , "https://" , and "ftp://" schemes are supported, if no scheme is present, then "file://" is assumed |
http_client | an optional HTTPClient object to use to retrieve external schemas, if no HTTPClient object is passed and one is needed, an HTTPClient object will be created implicitly |
http_headers | any HTTP headers to send with requests when retrieving external XSD schemas |
|
static |
returns a WSDL string from a file name, optional HTTPClient object and optional header hash
in case the wsdl argument is actually a file path, environment variable substitution is performed on the path string
|
static |
! takes a hash representation returned by parseMultiPartSOAPMessage and parses it to a Qore data structure, checks the content-type, and handles hrefs in the message. Operation is not yet known if SoapAction header is not presented