Zend\Soap\Wsdl
Synopsis
class Wsdl
{
- // constants
- const XML_NS = 'xmlns';
- const XML_NS_URI = 'http://www.w3.org/2000/xmlns/';
- const WSDL_NS = 'wsdl';
- const WSDL_NS_URI = 'http://schemas.xmlsoap.org/wsdl/';
- const SOAP_11_NS = 'soap';
- const SOAP_11_NS_URI = 'http://schemas.xmlsoap.org/wsdl/soap/';
- const SOAP_12_NS = 'soap12';
- const SOAP_12_NS_URI = 'http://schemas.xmlsoap.org/wsdl/soap12/';
- const SOAP_ENC_NS = 'soap-enc';
- const SOAP_ENC_URI = 'http://schemas.xmlsoap.org/soap/encoding/';
- const XSD_NS = 'xsd';
- const XSD_NS_URI = 'http://www.w3.org/2001/XMLSchema';
- const TYPES_NS = 'tns';
- // members
- protected array $classMap;
- protected DOMDocument $dom;
- protected array $includedTypes;
- protected DOMElement $schema;
- protected $strategy;
- protected string $uri;
- protected DOMElement $wsdl;
- // methods
- public void __construct()
- protected DOMDocument getDOMDocument()
- public string getTargetNamespace()
- public array getClassMap()
- public self setClassMap()
- public self setUri()
- public string getUri()
- public string sanitizeUri()
- public self setComplexTypeStrategy()
- public ComplexTypeStrategyInterface getComplexTypeStrategy()
- public DOMElement addMessage()
- public DOMElement addPortType()
- public DOMElement addPortOperation()
- public DOMElement addBinding()
- public DOMElement addBindingOperation()
- public DOMElement addSoapBinding()
- public DOMElement addSoapOperation()
- public DOMElement addService()
- public DOMElement addDocumentation()
- public void addTypes()
- public self addType()
- public array getTypes()
- public DOMElement getSchema()
- public string toXML()
- public DOMDocument toDomDocument()
- public bool dump()
- public string getType()
- public self addSchemaTypeSection()
- public string translateType()
- public string addComplexType()
- protected DOMElement _parseElement()
- protected string sanitizeAttributeValueByName()
- protected void arrayToAttributes()
- protected void setAttributeWithSanitization()
- protected void setAttribute()
- protected string getSoapNamespaceUriByVersion()
- public string addElement()
Tasks
Line | Task |
---|---|
118 | new option for debug mode ? |
Constants
Name | Value |
---|---|
XML_NS | 'xmlns' |
XML_NS_URI | 'http://www.w3.org/2000/xmlns/' |
WSDL_NS | 'wsdl' |
WSDL_NS_URI | 'http://schemas.xmlsoap.org/wsdl/' |
SOAP_11_NS | 'soap' |
SOAP_11_NS_URI | 'http://schemas.xmlsoap.org/wsdl/soap/' |
SOAP_12_NS | 'soap12' |
SOAP_12_NS_URI | 'http://schemas.xmlsoap.org/wsdl/soap12/' |
SOAP_ENC_NS | 'soap-enc' |
SOAP_ENC_URI | 'http://schemas.xmlsoap.org/soap/encoding/' |
XSD_NS | 'xsd' |
XSD_NS_URI | 'http://www.w3.org/2001/XMLSchema' |
TYPES_NS | 'tns' |
Members
protected
- $classMap
—
array
Map of PHP Class names to WSDL QNames. - $dom
—
DOMDocument
DOM Instance - $includedTypes
—
array
Types defined on schema - $schema — DOMElement
-
$strategy
Strategy for detection of complex types - $uri
—
string
URI where the WSDL will be available - $wsdl
—
DOMElement
Root XML_Tree_Node
Methods
protected
- _parseElement() — Parse an xsd:element represented as an array into a DOMElement.
- arrayToAttributes() — Convert associative array to attributes of given node using optional {@link function sanitizeAttributeValueByName}
- getDOMDocument() — Get the wsdl XML document with all namespaces and required attributes
- getSoapNamespaceUriByVersion() — Return soap namespace uri according to $soapVersion
- sanitizeAttributeValueByName() — Prepare attribute value for specific attributes
- setAttribute() — Set attribute to given node
- setAttributeWithSanitization() — Set attribute to given node using {@link function sanitizeAttributeValueByName}
public
- __construct()
- addBinding() — Add a {@link http://www.w3.org/TR/wsdl#_bindings binding} element to WSDL
- addBindingOperation() — Add an operation to a binding element
- addComplexType() — Add a {@link http://www.w3.org/TR/wsdl#_types types} data type definition
- addDocumentation() — Add a documentation element to any element in the WSDL.
- addElement() — Add an xsd:element represented as an array to the schema.
- addMessage() — Add a {@link http://www.w3.org/TR/wsdl#_messages message} element to the WSDL
- addPortOperation() — Add an {@link http://www.w3.org/TR/wsdl#request-response operation} element to a portType element
- addPortType() — Add a {@link http://www.w3.org/TR/wsdl#_porttypes portType} element to the WSDL
- addSchemaTypeSection() — This function makes sure a complex types section and schema additions are set.
- addService() — Add a {@link http://www.w3.org/TR/wsdl#_services service} element to the WSDL
- addSoapBinding() — Add a {@link http://www.w3.org/TR/wsdl#_soap:binding SOAP binding} element to a Binding element
- addSoapOperation() — Add a {@link http://www.w3.org/TR/wsdl#_soap:operation SOAP operation} to an operation element
- addType() — Add a complex type name that is part of this WSDL and can be used in signatures.
- addTypes() — Add WSDL Types element
- dump() — Echo the WSDL as XML
- getClassMap() — Get the class map of php to wsdl mappings..
- getComplexTypeStrategy() — Get the current complex type strategy
- getSchema() — Return the Schema node of the WSDL
- getTargetNamespace() — Retrieve target namespace of the WSDL document.
- getType() — Returns an XSD Type for the given PHP type
- getTypes() — Return an array of all currently included complex types
- getUri() — Return WSDL uri
- sanitizeUri() — Function for sanitizing uri
- setClassMap() — Set the class map of php to wsdl mappings..
- setComplexTypeStrategy() — Set a strategy for complex type detection and handling
- setUri() — Set a new uri for this WSDL
- toDomDocument() — Return DOM Document
- toXML() — Return the WSDL as XML
- translateType() — Translate PHP type into WSDL QName