__construct()
addBinding()
addBindingOperation()
addComplexType()
addDocumentation()
addElement()
addMessage()
addPortOperation()
addPortType()
addSchemaTypeSection()
addService()
addSoapBinding()
addSoapOperation()
addType()
addTypes()
dump()
getClassMap()
getComplexTypeStrategy()
getSchema()
getTargetNamespace()
getType()
getTypes()
getUri()
sanitizeUri()
setClassMap()
setComplexTypeStrategy()
setUri()
toDomDocument()
toXML()
translateType()
_parseElement()
arrayToAttributes()
getDOMDocument()
getSoapNamespaceUriByVersion()
sanitizeAttributeValueByName()
setAttribute()
setAttributeWithSanitization()
$classMap
$dom
$includedTypes
$schema
$strategy
$uri
$wsdl
SOAP_11_NS
SOAP_11_NS_URI
SOAP_12_NS
SOAP_12_NS_URI
SOAP_ENC_NS
SOAP_ENC_URI
TYPES_NS
WSDL_NS
WSDL_NS_URI
XML_NS
XML_NS_URI
XSD_NS
XSD_NS_URI
__construct(string $name, string | \Zend\Uri\Uri $uri, \Zend\Soap\Wsdl\ComplexTypeStrategy\ComplexTypeStrategyInterface $strategy, array $classMap)
string
Name of the Web Service being Described
null\Zend\Soap\Wsdl\ComplexTypeStrategy\ComplexTypeStrategyInterface
Strategy for detection of complex types
nullarray
Map of PHP Class names to WSDL QNames
\Zend\Soap\Exception\RuntimeException |
---|
addBinding(string $name, string $portType) : \DOMElement
string
Name of the Binding
string
name of the portType to bind
\DOMElement
The new binding's XML_Tree_Node for use with {@link function addBindingOperation} and {@link function addDocumentation}addBindingOperation(\DOMElement $binding, string $name, array | bool $input, array | bool $output, array | bool $fault, int $soapVersion) : \DOMElement
string
arraybool
An array of attributes for the input element, allowed keys are: 'use', 'namespace', 'encodingStyle'. {@link http://www.w3.org/TR/wsdl#_soap:body More Information}
arraybool
An array of attributes for the output element, allowed keys are: 'use', 'namespace', 'encodingStyle'. {@link http://www.w3.org/TR/wsdl#_soap:body More Information}
arraybool
An array with attributes for the fault element, allowed keys are: 'name', 'use', 'namespace', 'encodingStyle'. {@link http://www.w3.org/TR/wsdl#_soap:body More Information}
int
SOAP version: SOAP_1_1 or SOAP_1_2, default: SOAP_1_1
\DOMElement
The new Operation's XML_Tree_Node for use with {@link function addSoapOperation} and {@link function addDocumentation}addComplexType(string $type) : string
string
Name of the class to be specified
string
XSD Type for the given PHP typeaddDocumentation(\DOMElement $inputNode, string $documentation) : \DOMElement
Note that the WSDL specification uses 'document', but the WSDL schema uses 'documentation' instead. The WS-I Basic Profile 1.1 recommends using 'documentation'.
string
Human readable documentation for the node
\DOMElement
The documentation elementaddElement(array $element) : string
Array keys represent attribute names and values their respective value. The 'sequence', 'all' and 'choice' keys must have an array of elements as their value, to add them to a nested complexType.
Example: array( 'name' => 'MyElement',
'sequence' => array( array('name' => 'myString', 'type' => 'string'),
array('name' => 'myInteger', 'type' => 'int') ) );
Resulting XML:
array
an xsd:element represented as an array
string
xsd:element for the given element arrayaddMessage(string $messageName, array $parts) : \DOMElement
string
Name for the {@link http://www.w3.org/TR/wsdl#_messages message}
array
An array of {@link http://www.w3.org/TR/wsdl#_message parts} The array is constructed like: 'name of part' => 'part xml schema data type' or 'name of part' => array('type' => 'part xml schema type') or 'name of part' => array('element' => 'part xml element name')
\DOMElement
The new message's XML_Tree_Node for use in {@link function addDocumentation}addPortOperation(\DOMElement $portType, string $name, bool | string $input, bool | string $output, bool | string $fault) : \DOMElement
string
Operation name
boolstring
Input Message
boolstring
Output Message
boolstring
Fault Message
\DOMElement
The new operation's XML_Tree_Node for use in {@link function addDocumentation}addPortType(string $name) : \DOMElement
string
portType element's name
\DOMElement
The new portType's XML_Tree_Node for use in {@link function addPortOperation} and addDocumentation@link function addDocumentation}addSchemaTypeSection() : \Zend\Soap\self
\Zend\Soap\self
addService(string $name, string $portName, string $binding, string $location, int $soapVersion) : \DOMElement
string
Service Name
string
Name of the port for the service
string
Binding for the port
string
SOAP Address for the service
int
SOAP version: SOAP_1_1 or SOAP_1_2, default: SOAP_1_1
\DOMElement
The new service's XML_Tree_Node for use with {@link function addDocumentation}addSoapBinding(\DOMElement $binding, string $style, string $transport, int $soapVersion) : \DOMElement
string
binding style, possible values are "rpc" (the default) and "document"
string
Transport method (defaults to HTTP)
int
SOAP version: SOAP_1_1 or SOAP_1_2, default: SOAP_1_1
addSoapOperation(\DOMElement $operation, string $soapAction, int $soapVersion) : \DOMElement
string
SOAP Action
int
SOAP version: SOAP_1_1 or SOAP_1_2, default: SOAP_1_1
addType(string $type, string $wsdlType) : \Zend\Soap\self
string
string
\Zend\Soap\self
addTypes(\DOMNode $types)
\DOMDocument\DOMNode\DOMElement\DOMDocumentFragment
A DOMDocument|DOMNode|DOMElement|DOMDocumentFragment with all the XML Schema types defined in it
dump(bool $filename) : bool
bool
bool
getClassMap() : array
.
array
getComplexTypeStrategy() : \Zend\Soap\Wsdl\ComplexTypeStrategy\ComplexTypeStrategyInterface
getTargetNamespace() : string
string
getType(string $type) : string
string
PHP Type to get the XSD type for
string
getTypes() : array
array
getUri() : string
string
sanitizeUri(string | \Zend\Uri\Uri $uri) : string
string\Zend\Uri\Uri
\Zend\Soap\Exception\InvalidArgumentException |
---|
string
setClassMap(array $classMap) : \Zend\Soap\self
.
array
\Zend\Soap\self
setComplexTypeStrategy(\Zend\Soap\Wsdl\ComplexTypeStrategy\ComplexTypeStrategyInterface $strategy) : \Zend\Soap\self
\Zend\Soap\self
toXML() : string
string
WSDL as XMLtranslateType(string $type) : string
string
string
QName_parseElement(array $element) : \DOMElement
array
an xsd:element represented as an array
\Zend\Soap\Exception\RuntimeException |
if $element is not an array |
---|
\DOMElement
parsed elementarrayToAttributes(\DOMNode $node, array $attributes, bool $withSanitizer)
getDOMDocument(string $name, string $uri) : \DOMDocument
getSoapNamespaceUriByVersion(int $soapVersion) : string
int
SOAP_1_1 or SOAP_1_2 constants
\Zend\Soap\Exception\InvalidArgumentException |
---|
string
sanitizeAttributeValueByName(string $name, mixed $value) : string
string
mixed
string
safe value or original $valuesetAttribute(\DOMNode $node, string $attributeName, mixed $attributeValue)
setAttributeWithSanitization(\DOMNode $node, string $attributeName, mixed $attributeValue)
$classMap : array
$includedTypes : array
$strategy
$uri : string
SOAP_11_NS
SOAP_11_NS_URI
SOAP_12_NS
SOAP_12_NS_URI
SOAP_ENC_NS
SOAP_ENC_URI
TYPES_NS
WSDL_NS
WSDL_NS_URI
XML_NS
XML_NS_URI
XSD_NS
XSD_NS_URI