Qore xml Module 1.8.1
Loading...
Searching...
No Matches
WSDL::WSDLLib Class Reference

contains helper methods for retrieving WSDLs from a URL More...

#include <WSDL.qm.dox.h>

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...
 

Public Attributes

const SoapMimeTypes = (MimeTypeSoapXml, MimeTypeXml, MimeTypeXmlApp)
 Mime types recognized as SOAP messages.
 

Detailed Description

contains helper methods for retrieving WSDLs from a URL

Member Function Documentation

◆ getFile()

static data WSDL::WSDLLib::getFile ( string  fn,
bool  as_string = True 
)
static

retrieves a local file and returns the file's contents as a string

called by WSDLLib::getFileFromURL() in case the scheme is "file"

◆ getFileFromURL()

static data WSDL::WSDLLib::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 
)
inlinestatic

retrieves a file from a URL

in case the URL is actually a file path, environment variable substitution is performed on the path string

Note
uses the 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

◆ getFTP()

static data WSDL::WSDLLib::getFTP ( string  url,
string  path,
bool  as_string = True 
)
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"

◆ getHTTP()

static string WSDL::WSDLLib::getHTTP ( string  url,
*string  path,
*HTTPClient  hc,
*hash< auto >  headers,
bool  as_string = True 
)
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"


The documentation for this class was generated from the following file: