__construct()
addBinding()
addBindingOperation()
addComplexType()
addDocumentation()
addElement()
addMessage()
addPortOperation()
addPortType()
addSchemaTypeSection()
addService()
addSoapBinding()
addSoapOperation()
addType()
addTypes()
dump()
getClassMap()
getComplexTypeStrategy()
getSchema()
getTargetNamespace()
getType()
getTypes()
setClassMap()
setComplexTypeStrategy()
setUri()
toDomDocument()
toXML()
translateType()
decodeAmpersand()
escapeUri()
_parseElement()
$classMap
$strategy
$dom
$includedTypes
$schema
$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
\Zend\Soap\Wsdl
__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, bool | array $input, bool | array $output, bool | array $fault, int $soapVersion) : \DOMElement
string
boolarray
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}
boolarray
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}
boolarray
An array of 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 to be used in binding operation. 1.1 used by default.
\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 $name, 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 {@link function addDocumentation}addSchemaTypeSection() : \Zend\Soap\Wsdl
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 to be used in service. 1.1 used by default.
\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 to be used in binding. 1.1 used by default.
addSoapOperation(\DOMElement $operation, string $soapAction, int $soapVersion) : \DOMElement
string
SOAP Action
int
SOAP version to be used in operation. 1.1 used by default.
addType(string $type, string $wsdlType) : \Zend\Soap\Wsdl
addTypes(\DOMNode $types)
dump(bool | string $filename) : bool
boolstring
Filename to save the output (Optional)
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
setClassMap($classMap)
setComplexTypeStrategy(\Zend\Soap\Wsdl\ComplexTypeStrategy\ComplexTypeStrategyInterface $strategy) : \Zend\Soap\Wsdl
toXML() : string
string
WSDL as XMLtranslateType(string $type) : string
string
string
QNamedecodeAmpersand($uri) : mixed
mixed
escapeUri(string $uri) : string
string
string
_parseElement(array $element) : \DOMElement
array
an xsd:element represented as an array
\Zend\Soap\Exception\RuntimeException |
if $element is not an array |
---|
\DOMElement
parsed element$classMap : array
$strategy
$includedTypes : array
$wsdl : object
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