 |
Qore WSDL Module Reference
0.5
|
169 const SOAP_12_NS =
"http://schemas.xmlsoap.org/wsdl/soap12/";
172 const XSD_NS =
"http://www.w3.org/2001/XMLSchema";
174 const XSI_NS =
"http://www.w3.org/2001/XMLSchema-instance";
177 const HTTP_NS =
"http://schemas.xmlsoap.org/wsdl/http/";
179 const MIME_NS =
"http://schemas.xmlsoap.org/wsdl/mime/";
183 "soapenv:Envelope": (
194 "soapenv:Envelope": (
220 Type::String :
"string",
222 Type::Boolean :
"boolean",
223 Type::Date :
"dateTime",
224 Type::Float :
"decimal",
225 Type::NothingType :
"string",
226 Type::NullType :
"string",
227 Type::Binary :
"base64Binary",
231 const SOAP_SERIALIZATION_ERROR =
"SOAP-SERIALIZATION-ERROR";
232 const SOAP_DESERIALIZATION_ERROR =
"SOAP-DESERIALIZATION-ERROR";
233 const WSDL_ERROR =
"WSDL-ERROR";
250 extern bool global_compat_empty_string_is_nothing;
251 extern bool global_compat_allow_any_header;
269 static string getSoapMimeType12(
bool soap12);
274 static data
getFile(
string fn,
bool as_string = True);
279 static string getHTTP(
string url, *
string path, *HTTPClient hc, *hash<auto> headers,
bool as_string = True);
284 static data
getFTP(
string url,
string path,
bool as_string = True);
294 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);
304 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);
313 static string getWSDL(
string wsdl, *HTTPClient http_client, *hash<auto> http_headers, *reference new_def_path);
335 static processHref(reference xmldata,
string hr, hash<auto> parts);
340 static substHref(reference xmldata, hash<auto> parts);
349 static bool isContentType(
string ct, list<auto> MimeTypes);
351 static checkContentType(
string ct, list<auto> MimeTypes);
358 static removeNS(reference v);
360 static removeNS2(reference v);
367 auto getValue(*hash<auto> mrh,
auto val);
382 constructor(
string n_name,
string n_ns);
385 constructor(reference e, *
string desc_name);
391 *
string getInputNamespacePrefix();
407 constructor(reference e,
Namespaces nsc, *
string desc_name) ;
410 constructor(
string name,
string ns,
Namespaces nsc) ;
418 checkExtends(XsdAbstractType t,
string ename);
421 string getNameWithNS();
430 bool requiresValue();
433 string getOutputNamespacePrefix();
436 abstract auto serialize(
Namespaces nsc,
auto val, *softbool omitType);
437 abstract auto deserialize(
string en, hash<string, XsdAbstractType> tmap, *hash<auto> mrh,
auto val);
438 abstract AbstractDataProviderType getDataProviderType();
446 constructor(
string t,
Namespaces nsc,
string ns =
'xsd') ;
449 auto serialize(
Namespaces nsc,
auto val, *softbool omitType);
452 auto deserialize(
string en, hash<string, XsdAbstractType> tmap, *hash<auto> mrh,
auto val);
455 AbstractDataProviderType getDataProviderType();
458 Type getDataProviderBaseType();
471 *hash<auto> typeinfo;
472 XsdAbstractType elementType;
474 constructor(
string t,
string ns,
string arrayType,
Namespaces nsc, XsdLateResolverHelper unresolved) ;
477 AbstractDataProviderType getDataProviderType();
480 finalize(hash<string, XsdAbstractType> tmap,
Namespaces nsc);
483 auto serialize(
Namespaces nsc,
auto val, *softbool omitType);
486 auto deserialize(
string en, hash<string, XsdAbstractType> tmap, *hash<auto> mrh,
auto val);
494 *hash<auto> typeinfo;
495 XsdAbstractType type;
497 constructor(reference e) ;
505 string use =
"optional";
507 const AllowedUseValues = (
513 constructor(hash<auto> attr,
Namespaces nsc, *XsdAbstractType n_type, XsdLateResolverHelper unresolved) ;
516 auto getValue(
string val);
526 bool nillable = False;
533 constructor(hash<auto> e,
Namespaces nsc, *XsdAbstractType n_type, XsdLateResolverHelper unresolved,
bool n_usedocns) ;
536 AbstractDataProviderType getDataProviderType();
548 auto serialize(
Namespaces nsc,
auto h, *softbool omitType,
string key,
string typename);
552 auto serializeAsIntern(
Namespaces nsc, XsdAbstractType type,
auto h, *softbool omitType,
string key,
string typename);
556 auto deserialize(hash<string, XsdAbstractType> tmap, *hash<auto> mrh,
auto val,
bool present);
566 list<hash<auto>>
union;
567 list<XsdAbstractType> unionTypes;
569 XsdAbstractType type;
572 constructor(hash<auto> st,
Namespaces nsc, XsdLateResolverHelper unresolved,
bool n_usedocns, *
string desc_name) ;
575 AbstractDataProviderType getDataProviderType();
578 auto serialize(
Namespaces nsc,
auto val, *softbool omitType);
581 auto deserialize(
string en, hash<string, XsdAbstractType> tmap, *hash<auto> mrh,
auto val);
587 hash<string, XsdElement> elementmap;
602 hash<string, XsdElement> elementmap();
603 bool anyAttribute = False;
605 bool nillable = False;
606 bool required = False;
607 bool requires_value = False;
610 hash<string, XsdAttribute> attrs();
613 *
string documentation;
616 *hash<auto> simpleTypeInfo;
618 XsdAbstractType simpleType;
621 bool finalized = False;
624 list<hash<ChoiceInfo>> choices();
630 const XET_ALL =
"ALL";
631 const XET_CHOICE =
"CHOICE";
632 const XET_SEQUENCE =
"SEQUENCE";
633 const XET_SIMPLE =
"SIMPLE";
634 const XET_NONE =
"NONE";
639 constructor(*hash<auto> ct,
Namespaces nsc, XsdLateResolverHelper unresolved,
bool n_usedocns, *
string desc_name) ;
642 finalize(hash<string, XsdAbstractType> tmap,
Namespaces nsc);
650 parseData(hash<auto> d, XsdLateResolverHelper unresolved,
Namespaces nsc);
655 parseAttributes(reference d, XsdLateResolverHelper unresolved,
Namespaces nsc);
665 bool requiresValue();
672 hash<string, XsdElement> parseElements(softlist<auto> el, XsdLateResolverHelper unresolved,
Namespaces nsc,
bool for_object = True);
676 AbstractDataProviderType getDataProviderType();
680 *hash<auto> serializeElement(
Namespaces nsc,
string key,
XsdElement element,
auto h, *softbool omitType);
684 *hash<auto> serialize(
Namespaces nsc,
auto h, *softbool omitType);
688 hash<auto> serializeChoice(
Namespaces nsc, hash<string, XsdElement> emap, hash<auto> h, *softbool omitType,
bool all_members);
692 *hash<auto> deserialize(
string en, hash<string, XsdAbstractType> tmap, *hash<auto> mrh,
auto oval);
696 *hash<auto> parseChoice(hash<auto> val, hash<string, XsdElement> emap,
string en, hash<string, XsdAbstractType> tmap, *hash<auto> mrh, *
bool required);
800 hash<auto>
serializeFault(*
string fault,
string faultmsg,
auto h, *hash<auto> header, *
string enc, *hash<auto> nsh, *
int xml_opts, *
string req_soapaction, *
string bname);
819 hash<auto>
serializeRequest(
auto h, *hash<auto> header, *
string enc, *hash<auto> nsh, *
int xml_opts, *
string req_soapaction, *
string bname, *hash<auto> http_headers);
837 hash<auto>
serializeResponse(
auto h, *hash<auto> header, *
string enc, *hash<auto> nsh, *
bool soap12, *
int xml_opts, *
string bname, *hash<auto> http_headers);
910 hash<string, hash<WSDL::ArgInfo>>
args;
916 hash<string, XsdAbstractType>
tmap;
921 constructor(hash<auto> m, hash<
string, hash<string, XsdElement>> emap, hash<string, XsdAbstractType>
tmap,
Namespaces nsc) ;
932 auto serializeRpcValue(
string part,
bool encoded, reference<hash<auto>> h, reference<string> ons);
968 *hash<auto> deserializeDocument(*hash<auto> mrh,
auto val, *
string parts);
1021 string getSerializedKey(
string part);
1032 class WSDL::XsdLateResolverHelper {
1046 list<auto> getList();
1060 static bool isResolved(
auto t);
1075 hash<auto> serializeMessage(
WSOperation op, *
WSMessage msg,
bool request,
bool soap12,
auto h, *hash<auto> header,
string enc =
'UTF-8', *hash<auto> nsh, *
int xml_opts, *
string req_soapaction, *
string faultmsg, *hash<auto> http_headers);
1078 auto deserializeMessage(
WSOperation op, hash<auto> o,
bool request);
1081 auto deserializeRequestPath(
WSOperation op,
string path);
1084 abstract hash<auto> serializeMessageImpl(
WSOperation op, *
WSMessage msg,
bool request,
bool soap12,
auto h, *hash<auto> header,
string enc, *hash<auto> nsh, *
int xml_opts, *
string req_soapaction, *
string faultmsg, *hash<auto> http_headers);
1086 abstract auto deserializeMessageImpl(
WSOperation op, hash<auto> o,
bool request);
1088 abstract auto deserializeRequestPathImpl(
WSOperation op,
string path);
1094 string soapTransport;
1099 hash<auto> serializeMessageImpl(
WSOperation op, *
WSMessage msg,
bool request,
bool soap12,
auto h, *hash<auto> header,
string enc, *hash<auto> nsh, *
int xml_opts, *
string req_soapaction, *
string faultmsg, *hash<auto> http_headers);
1103 hash<auto> serializeSoapMessage(
WSOperation op, *
WSMessage msg,
auto val, *hash<auto> header, *hash<auto> nsh,
bool request,
bool soap12, reference mpm, *
string faultmsg);
1107 auto deserializeMessageImpl(
WSOperation op, hash<auto> orig_msg,
bool request);
1112 static list<auto> processMultiRef(hash<auto> body);
1116 hash<auto> deserializeRequestPathImpl(
WSOperation op,
string path);
1129 hash<auto> serializeMessageImpl(WSOperation op, *WSMessage msg,
bool request,
bool soap12,
auto h, *hash<auto> header,
string enc, *hash<auto> nsh, *
int xml_opts, *
string req_soapaction, *
string faultmsg, *hash<auto> http_headers);
1134 string serializeRequestPath(WSOperation op,
auto h);
1138 auto deserializeMessageImpl(WSOperation op, hash<auto> v,
bool request);
1141 hash<auto> deserializeRequestPathImpl(WSOperation op,
string path);
1209 list<auto> acceptedContentTypes = ();
1212 list<auto> acceptedContentTypeSubtypes = ();
1220 addContentType(
string type);
1235 constructor(
string part);
1273 list<BindingMessageHeaderDescription>
headers = cast<list<BindingMessageHeaderDescription>>(());
1288 setUrlReplacement(
string loc);
1306 *
string soapTransport;
1310 constructor(hash<auto> data,
Namespaces nsc, reference portTypes, reference idocmap, *hash<auto> messages) ;
1322 bool isSoapBinding();
1325 bool isHttpBinding();
1330 class WSDL::NamespacePrefixHelper {
1349 constructor(
Namespaces nsc, *hash<auto> nsattr);
1355 save(
string k,
string v);
1364 bool opt_empty_string_is_nothing = False;
1365 bool opt_allow_any_header = False;
1369 hash<string, string>
ns = {
1431 *
string getDefaultNs();
1434 addNamespaces(hash<auto> nsh, *NamespacePrefixHelper nph);
1437 restorePrefixes(hash<auto> h);
1441 addNamespaceIntern(
string ns,
string val, *
bool override);
1523 bool doType(
string t, reference<hash> typeinfo, reference<XsdAbstractType> rtype, *hash<string, XsdAbstractType> tmap);
1526 hash<auto> getTypeHash(
string t);
1538 XsdAbstractType tmap_get(hash<string, XsdAbstractType> tmap,
string name);
1541 *XsdAbstractType tmap_try_get(hash<string, XsdAbstractType> tmap,
string name);
1545 XsdElement emap_get(hash<
string, hash<string, XsdElement>> emap,
string ns,
string name);
1548 *
XsdElement emap_try_get(hash<
string, hash<string, XsdElement>> emap,
string ns,
string name);
1553 hash<string, WSOperation> operations;
1608 transient hash<string, hash<string, XsdElement>>
emap();
1614 transient hash<string, XsdAbstractType>
tmap();
1629 hash<string, hash<WSDL::ServiceInfo>> services();
1632 hash<string, Binding> binding();
1760 XsdAbstractType resolveType(hash<auto> v);
1766 parseTypes(*hash<auto> data,
auto http_client,
auto http_headers);
1771 parseMessages(*softlist<auto> message);
1776 parseService(*softlist<auto> svcs);
1781 parsePortType(*softlist<auto> data);
1786 parseBinding(*softlist<auto> bindings);
1812 string getOperationParams(
WSMessage msg);
1862 const DefaultOpts = (
1893 hash<auto> getMessage(
XsdElement elem, *softlist<auto> comments);
base class with helper methods for XSD data processing
Definition: WSDL.qm.dox.h:355
*WSDL::MimeXmlMessageDescription mimeXml
optional mimeXml message scription
Definition: WSDL.qm.dox.h:1269
hash< string, hash< WSDL::ArgInfo > > args
args keys are part names for types reps. element names for element. Definition must provide unique va...
Definition: WSDL.qm.dox.h:910
pushDefaultNamespace(string ns)
pushes the current default namespace URI on the stack when parsing schemas and sets the current defau...
string name
the name of the WebService
Definition: WSDL.qm.dox.h:1591
*string default_ns
default namespace for unprefixed definitions
Definition: WSDL.qm.dox.h:1406
auto deserializeResponse(hash< auto > o, *string bname)
parses a hash representing a parsed XML response (parsed with parse_xml(XPF_PRESERVE_ORDER)) for the ...
auto serializeRpcValue(string part, bool encoded, reference< hash< auto >> h, reference< string > ons)
hash< string, OperationalBinding > bindings
params per associated binding; key = binding name; value = OperationalBinding object
Definition: WSDL.qm.dox.h:724
transient hash< string, XsdAbstractType > tmap()
map of types
WSDL::WSOperation operation
the operation object
Definition: WSDL.qm.dox.h:1570
bool isSoap12()
returns True if the WSDL describes a SOAP 1.2 service
string getTargetNamespaceOutputPrefix()
returns the output namespace prefix for the target namespace, if any
bool hasHeaders()
returns True if the header descriptions are available
class for XSD base types
Definition: WSDL.qm.dox.h:442
string checkPart(string pname)
check if pname is defined as message part
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
contains helper methods for retrieving WSDLs from a URL
Definition: WSDL.qm.dox.h:263
WSMessage input
request message
Definition: WSDL.qm.dox.h:706
WSDL port type hash.
Definition: WSDL.qm.dox.h:1552
transient hash< string, hash< string, XsdElement > > emap()
map of elements
const DefaultPrefixes
maps namespaces to default prefixes
Definition: WSDL.qm.dox.h:1415
constructor(WebService ws, *hash< auto > opts)
creates the WebService object
string getOutputNamespaceUri(string nsp)
returns the namespace URI for the given output namespace prefix
*WSDL::BindingMessageBodyDescription body
the description of the message body
Definition: WSDL.qm.dox.h:1244
hash< string, bool > reqh
a hash of top-level request names for this operation (depends on bindings)
Definition: WSDL.qm.dox.h:721
hash< auto > serializeAllPartData(*hash< auto > val)
serialize all values as string or binary
*string ns
namespace; "only applies to content not explicitly defined by the abstract types"
Definition: WSDL.qm.dox.h:1161
string registerNamespaceIntern(string uri, *string default_pfx)
registers a namespace internally
const SoapUseMap
SOAP "use" to "encoded" mappings.
Definition: WSDL.qm.dox.h:204
hash< string, hash > port
port info
Definition: WSDL.qm.dox.h:1561
message argument hash description
Definition: WSDL.qm.dox.h:885
WSMessage output
response message
Definition: WSDL.qm.dox.h:708
WSDL::Binding getBinding(string name)
return a WSDL::Binding object describing the requested binding
XSD element class.
Definition: WSDL.qm.dox.h:521
*hash< auto > deserializeRpc(*hash< auto > mrh, hash< auto > val, *string part)
deserialize RPC message
deserializeMembers(hash< auto > members)
can be used to create a WebService object from a hash created with serialize()
XSD attribute class.
Definition: WSDL.qm.dox.h:502
class for WSDL bindings
Definition: WSDL.qm.dox.h:1293
merge(Namespaces nsc)
merges namespaces when parsing imported schemas
static hash< auto > processNSValue(hash< auto > h)
processes a hash of raw deserialized XML data and removes any namespace prefix from keys (saved to a ...
*string getNamespaceUri(*string nsp)
returns the namespace URI for the given prefix or the target namespace Uri
hash< auto > serializeRequest(auto h, *hash< auto > header, *string enc, *hash< auto > nsh, *int xml_opts, *string req_soapaction, *string bname, *hash< auto > http_headers)
serializes a request to an XML string or HTTP payload for the operation.
constructor(hash< auto > p, Namespaces nsc, *hash< auto > messages)
creates the WSOperation object from the arguments supplied
hash< auto > getType(string name, auto v)
return a hash value that can be used to serialize a value as a particular type
XSD typed data class.
Definition: WSDL.qm.dox.h:491
*hash< string, WSMessage > getFaultMessages()
returns a hash of fault messages keyed by fault name
static WebService getWSDL(WebService wsdl)
returns the argument
string name
the arg name
Definition: WSDL.qm.dox.h:887
setDocStyleBinding(reference idocmap)
this method is called if this operation supports at least one binding with document style
list< BindingMessageHeaderDescription > headers
a list of WSDL::BindingMessageHeaderDescription objects
Definition: WSDL.qm.dox.h:1273
const SoapMimeTypes
Mime types recognized as SOAP messages.
Definition: WSDL.qm.dox.h:267
XSD simple type class.
Definition: WSDL.qm.dox.h:561
const SOAP_TRANSPORT_HTTP
SOAP HTTP transport URI.
Definition: WSDL.qm.dox.h:236
static data getFile(string fn, bool as_string=True)
retrieves a local file and returns the file's contents as a string
base class for XSD classes with a "name" attribute
Definition: WSDL.qm.dox.h:372
const SOAP_ENCODING
soap encoding URI
Definition: WSDL.qm.dox.h:216
transient hash< string, hash< PortTypeInfo > > portType()
hash of port names to port type information hashes
auto getValueFromHash(*WSDL::XsdElement element, reference< auto > v, bool removeFound)
when only one arg then try to get values based on element keys
popDefaultNamespace()
restores any previous default namespace URI from the stack to the current default namespace URI
*WSDL::BindingContentDescription content
optional content-type descriptions
Definition: WSDL.qm.dox.h:1266
hash< string, WSMessage > faults
fault messages keyed by fault name
Definition: WSDL.qm.dox.h:728
string getTargetNS()
returns the target namespace for the operation
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...
hash< auto > deserializeAllPartData(hash< auto > val)
deserialize all values in string or binary form
*hash< auto > urlReplacement
a hash of URL replacement values keyed by part name, values are URI paths
Definition: WSDL.qm.dox.h:1249
hash< string, XsdAbstractType > tmap
type map
Definition: WSDL.qm.dox.h:916
const ENVELOPE_12_NS
soap 1.2 envelope namespaces
Definition: WSDL.qm.dox.h:193
hash< auto > serializeData(Namespaces nsc, string key, *hash< auto > val)
serialized value of particular type value as string or binary
class for XSD array types; currently only supports single dimensional arrays
Definition: WSDL.qm.dox.h:463
main class representing a parsed WSDL file
Definition: WSDL.qm.dox.h:1576
describes a mimeXml payload for a SOAP operational binding message description
Definition: WSDL.qm.dox.h:1227
wsdl_set_global_compat_allow_any_header(softbool val)
sets the global_compat_allow_any_header variable to the given value to force the WSDL module to allow...
string translateOutputNamespacePrefix(*string nsa)
returns the output namespace prefix for the given input namespace prefix
hash< string, XsdBaseType > base_types
base type map
Definition: WSDL.qm.dox.h:1412
const SOAP_11_ENV
SOAP 1.1 envelope URI.
Definition: WSDL.qm.dox.h:161
static hash< auto > parseMultiPartSOAPMessage(hash< auto > msg)
takes a hash representation of a SOAP message and handles multipart messages, checks the content-type...
*string getTargetNamespaceUri()
returns the primary target namespace Uri
*string output_name
response message name
Definition: WSDL.qm.dox.h:712
bool encoded
required attribute
Definition: WSDL.qm.dox.h:1155
hash< auto > serializeResponse(auto h, *hash< auto > header, *string enc, *hash< auto > nsh, *bool soap12, *int xml_opts, *string bname, *hash< auto > http_headers)
serializes a SOAP response to an XML string for the operation
doInit(string str, *hash< auto > opts)
supports the constructor and deserialization
XsdAbstractType type
type for the argument
Definition: WSDL.qm.dox.h:893
const MIME_NS
MIME namespace URI.
Definition: WSDL.qm.dox.h:179
hash< string, string > pmap
maps part names to args key, all parts are in hash
Definition: WSDL.qm.dox.h:913
*string ns
input namespace prefix (if any given)
Definition: WSDL.qm.dox.h:378
describes an input or output message in a SOAP operational binding
Definition: WSDL.qm.dox.h:1240
WSDL::WSOperation getOperation(string opname)
returns the given operation or throws an exception if it cannot be found; operations are searched in ...
*string soapAction
the SOAPAction header value to send with this operation
Definition: WSDL.qm.dox.h:718
bool has_try_import
flag if the object has a "try_import" closure or call reference
Definition: WSDL.qm.dox.h:1586
string part
refers to a message part defining the concrete schema of the root XML element
Definition: WSDL.qm.dox.h:1233
helper class implementing sample message generation
Definition: WSDL.qm.dox.h:1853
constructor(hash< auto > nsh, *Namespaces nsc, *string targetNamespace)
creates the object with the WSDL definitions attribute hash
hash< auto > deserializeData(string part, hash< auto > val)
deserialize value in string or binary form
WSDL::WSOperation getPortTypeOperation(string ptname, string opname)
returns the given operation for particular porttype or throws an exception if it cannot be found
string getWSDL(string base_url)
returns the XML string for the WSDL, adjusting the URLs for binding locations depending on the caller
hash< auto > getMessage(string name)
prepare sample message
bool formUrlEncoded
are all content-types form URL encoded?
Definition: WSDL.qm.dox.h:1215
*string target_ns
current target namespace
Definition: WSDL.qm.dox.h:1400
list< hash< OperationInfo > > listOperations()
returns a list of hashes giving supported operation names for each port in the WSDL
namespace container class
Definition: WSDL.qm.dox.h:1360
string getName()
returns the name of the service
hash< string, string > ns
maps output namespace prefixes to namespace URIs
Definition: WSDL.qm.dox.h:1369
checkExtends(XsdAbstractType t, string ename)
throws an exception if the types are not compatible
*hash< auto > getReferencedNamespaceMap()
returns a hash of namespace prefixes to namespaces URIs actually used
const XSI_NS
XSI namespace URI.
Definition: WSDL.qm.dox.h:174
popTargetNamespace()
restores any previous target namespace URI from the stack to the current target namespace URI
pushTargetNamespace(string ns)
pushes the current target namespace URI on the stack when parsing schemas and sets the current target...
const XSD_NS
XSD namespace URI.
Definition: WSDL.qm.dox.h:172
bool isSoap12()
returns True if the operation is a SOAP 1.2 operation
bool acceptAllContentTypes
are all content-types accepted?
Definition: WSDL.qm.dox.h:1218
XsdElement element
element for the argument
Definition: WSDL.qm.dox.h:896
*string input_name
request message name
Definition: WSDL.qm.dox.h:710
*list< auto > parts
indicates which parts appear somewhere within the SOAP Body portion of the message
Definition: WSDL.qm.dox.h:1164
wsdl_set_global_compat_empty_string_is_nothing(softbool val)
sets the global_compat_empty_string_is_nothing variable to the given value to force the WSDL module t...
synchronized string getHash()
returns a unique hash for the WSDL that can be used to compare schemas for equality
string getReport(*string wsdl_name)
prepare a WebService report enumerating the services and operations of the WSDL
getReport(StringOutputStream stream, *string wsdl_name)
prepare a WebService report enumerating the services and operations of the WSDL, outputs to the outpu...
bool hassoap12
if True then has SOAP 1.2
Definition: WSDL.qm.dox.h:1397
main WSDL namespace
Definition: WSDL.qm.dox.h:156
web service operation class
Definition: WSDL.qm.dox.h:702
string wsdl
the WSDL string
Definition: WSDL.qm.dox.h:1580
hash< WSDL::ServiceInfo > getService(string name)
returns a hash describing the requested service
WSDL service info hash.
Definition: WSDL.qm.dox.h:1557
softlist< string > getOperationNames()
returns a list of known operation names
list< hash< WSDL::ServiceInfo > > listServices()
returns a list of services defined in the WSDL
string getUniquePrefix(string uri, *string default_prefix)
returns a unique namespace prefix from a URI path string
string port
the name of the port defining the operation
Definition: WSDL.qm.dox.h:1567
static *hash< auto > parseSOAPMessage(hash< auto > msg)
markRpcStyleBinding()
this method is called if this operation supports at least one binding with RPC style
bool hasSoap12()
returns True if using SOAP 1.2, False if not
WSDL operation info.
Definition: WSDL.qm.dox.h:1565
list< auto > nss
target namespace stack;
Definition: WSDL.qm.dox.h:1403
constructor(string str, *hash< auto > opts)
creates the WebService object
*hash< auto > serializeDocument(*softlist< auto > parts, *WSDL::BindingMessageDescription msginfo, *MultiPartRelatedMessage mpm, bool encoded, reference< auto > h, bool fault)
serializes data into a hash with SOAP namespaces etc. with document-style messages
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
transient hash< string, XsdElement > idocmap()
a hash of element names to XsdElement objects for top-level document-style bindings
const version
this WSDL implementation version
Definition: WSDL.qm.dox.h:158
descriptive_name
descriptive name flag
Definition: WSDL.qm.dox.h:380
transient *string def_path
default path for retrieving XSD references
Definition: WSDL.qm.dox.h:1625
bool docstyle
use RPC or document style
Definition: WSDL.qm.dox.h:1303
hash< string, string > imapr
hash mapping input namespace URIs to input namespace prefixes
Definition: WSDL.qm.dox.h:1389
auto getMessage(WSMessage msg)
prepare sample message
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
*string encodingStyle
when encoded True, this is used to produce a concrete message by applying the specified encoding
Definition: WSDL.qm.dox.h:1158
transient list< string > wsdl_services()
list of services in this WSDL
bool hasSoap11()
returns True if using SOAP 1.1, False if not
string getTargetNamespaceInputPrefix()
returns the input namespace prefix for the target namespace, if any
Namespaces nsc
namespace container
Definition: WSDL.qm.dox.h:715
*hash< auto > opts
options used in the constructor
Definition: WSDL.qm.dox.h:1583
const RANGE_SHORT
range of "short" values (16 bits)
Definition: WSDL.qm.dox.h:244
XSD complex type class.
Definition: WSDL.qm.dox.h:592
const SOAP_12_NS
SOAP 1.2 namespace URI.
Definition: WSDL.qm.dox.h:169
const ENVELOPE_11_NS
soap 1.1 envelope namespaces
Definition: WSDL.qm.dox.h:182
base class for XSD data classes
Definition: WSDL.qm.dox.h:364
string getWSDL()
returns the XML string for the WSDL
transient *code try_import
optional closure/call reference to try to resolve import declarations
Definition: WSDL.qm.dox.h:1620
WSDL::WSOperation getBindingOperation(*string bname, string opname)
returns the given operation for particular binding or throws an exception if it cannot be found
class for WSDL bindings associated with a SOAP operation
Definition: WSDL.qm.dox.h:1064
*bool isSchema(string ns)
returns True if if the input namespace prefix refers to the XSD namespace URI
list< auto > getTopLevelRequestNames()
returns all top-level request names for this operation
hash< string, bool > xsd_schema
hash for valid XSD namespaces, maps input namespace prefixes -> True if it refers to an XSD schema
Definition: WSDL.qm.dox.h:1379
string getOutputNamespacePrefix(string ns)
looks up and registers a namespace if necessary, returns the namespace's prefix
AbstractDataProviderType getDataProviderType()
Returns the data provider type for this message.
hash< string, string > imap
hash mapping input namespace prefixes to namespaces URIs
Definition: WSDL.qm.dox.h:1384
const SoapStyleMap
SOAP "style" to "document" mappings.
Definition: WSDL.qm.dox.h:210
list< BindingMessageHeaderDescription > getHeaders()
returns a list of WSDL::BindingMessageHeaderDescription objects
string part
unique part name
Definition: WSDL.qm.dox.h:890
hash< auto > serializeFault(*string fault, string faultmsg, auto h, *hash< auto > header, *string enc, *hash< auto > nsh, *int xml_opts, *string req_soapaction, *string bname)
serializes a fault response to an XML string or HTTP payload for the operation.
const SOAP_11_NS
SOAP 1.1 namespace URI.
Definition: WSDL.qm.dox.h:166
static bool isSOAPMessage(hash< auto > msg)
returns True is the message has a SOAP mime type
transient Namespaces nsc
namespace container
Definition: WSDL.qm.dox.h:1599
const any_type_map
mapping from Qore types to xsd types for xsd type "anyType"
Definition: WSDL.qm.dox.h:219
bool urlEncoded
indicates that all the message parts are encoded into the HTTP request URI using the standard URI-enc...
Definition: WSDL.qm.dox.h:1263
string part
specifies the name of the message part
Definition: WSDL.qm.dox.h:1206
const RANGE_INT
range of "int" values (32 bits)
Definition: WSDL.qm.dox.h:247
describes MIME content information for SOAP operational binding message descriptions
Definition: WSDL.qm.dox.h:1202
string name
service name
Definition: WSDL.qm.dox.h:1559
auto deserializeRequest(hash< auto > o, *string bname)
parses a hash representing a parsed XML request (parsed with parse_xml(XPF_PRESERVE_ORDER)) for the o...
addBinding(WSDL::OperationalBinding b)
adds the given binding
OperationalBinding getBinding(*string bname)
returns a hash representing the given binding
*hash< auto > deserializeRequestPath(string path, *string bname)
auto getValueFromHash(string ename, reference< auto > v, bool removeFound)
find part in value, remove that value from the hash
*hash< auto > serializeRpc(*softlist< auto > parts, *WSDL::BindingMessageDescription msginfo, *MultiPartRelatedMessage mpm, string n_name, bool encoded, reference< auto > h, bool fault)
serializes data into a hash with SOAP namespaces etc. with RPC-style messages
const SOAP_TRANSPORT
known/supported transports
Definition: WSDL.qm.dox.h:239
string hash_str
the digest of the WSDL source
Definition: WSDL.qm.dox.h:1596
*hash< auto > getOutputNamespaceHash(*hash< auto > nsh)
returns a hash of namespace attributes for outgoing SOAP messages
describes the message body for a SOAP operational binding message description
Definition: WSDL.qm.dox.h:1148
string cx_type
type of complexType object
Definition: WSDL.qm.dox.h:628
web service message class
Definition: WSDL.qm.dox.h:906
list< auto > dss
default namespace stack;
Definition: WSDL.qm.dox.h:1409
string getInputNamespaceUri(string nsa)
returns the input namespace URI from the input namespace prefix
string checkMessagePart(WSMessage msg, *string partname, string errs)
check if part exists in massage, if part is empty and message contains single part then return it oth...
complex type choice hash
Definition: WSDL.qm.dox.h:586
transient hash< string, WSMessage > messages()
hash of messages names to messages
bool hassoap11
if True then has SOAP 1.1
Definition: WSDL.qm.dox.h:1394
bool hasFault(string fault)
returns True if the given string is a valid fault message for the operation
const SOAP_12_ENV
SOAP 1.2 envelope URI.
Definition: WSDL.qm.dox.h:163
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
const HTTP_NS
HTTP namespace URI.
Definition: WSDL.qm.dox.h:177
static WebService getWebServiceFromUrl(string url, *HTTPClient http_client, *hash< auto > http_headers)
returns a WebService object from a URL and other optional arguments
hash< string, string > nsr
maps namespace URIs to output namespace prefixes
Definition: WSDL.qm.dox.h:1374