__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)
stringName of the Web Service being Described
null\Zend\Soap\Wsdl\ComplexTypeStrategy\ComplexTypeStrategyInterfaceStrategy for detection of complex types
nullarrayMap of PHP Class names to WSDL QNames
\Zend\Soap\Exception\RuntimeException |
|---|
addBinding(string $name, string $portType) : \DOMElement
stringName of the Binding
stringname of the portType to bind
\DOMElementThe 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
boolarrayAn array of attributes for the input element, allowed keys are: 'use', 'namespace', 'encodingStyle'. {@link http://www.w3.org/TR/wsdl#_soap:body More Information}
boolarrayAn array of attributes for the output element, allowed keys are: 'use', 'namespace', 'encodingStyle'. {@link http://www.w3.org/TR/wsdl#_soap:body More Information}
boolarrayAn 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}
intSOAP version to be used in binding operation. 1.1 used by default.
\DOMElementThe new Operation's XML_Tree_Node for use with {@link function addSoapOperation} and {@link function addDocumentation}addComplexType(string $type) : string
stringName of the class to be specified
stringXSD 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'.
stringHuman readable documentation for the node
\DOMElementThe 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:
arrayan xsd:element represented as an array
stringxsd:element for the given element arrayaddMessage(string $name, array $parts) : \DOMElement
stringName for the {@link http://www.w3.org/TR/wsdl#_messages message}
arrayAn 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')
\DOMElementThe 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
stringOperation name
boolstringInput Message
boolstringOutput Message
boolstringFault Message
\DOMElementThe new operation's XML_Tree_Node for use in {@link function addDocumentation}addPortType(string $name) : \DOMElement
stringportType element's name
\DOMElementThe 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
stringService Name
stringName of the port for the service
stringBinding for the port
stringSOAP Address for the service
intSOAP version to be used in service. 1.1 used by default.
\DOMElementThe new service's XML_Tree_Node for use with {@link function addDocumentation}addSoapBinding(\DOMElement $binding, string $style, string $transport, int $soapVersion) : \DOMElement
stringbinding style, possible values are "rpc" (the default) and "document"
stringTransport method (defaults to HTTP)
intSOAP version to be used in binding. 1.1 used by default.
addSoapOperation(\DOMElement $operation, string $soapAction, int $soapVersion) : \DOMElement
stringSOAP Action
intSOAP 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
boolstringFilename to save the output (Optional)
boolgetClassMap() : array
arraygetComplexTypeStrategy() : \Zend\Soap\Wsdl\ComplexTypeStrategy\ComplexTypeStrategyInterface
getTargetNamespace() : string
stringgetType(string $type) : string
stringPHP Type to get the XSD type for
stringgetTypes() : array
arraysetClassMap($classMap)
setComplexTypeStrategy(\Zend\Soap\Wsdl\ComplexTypeStrategy\ComplexTypeStrategyInterface $strategy) : \Zend\Soap\Wsdl
toXML() : string
stringWSDL as XMLtranslateType(string $type) : string
string
stringQNamedecodeAmpersand($uri) : mixed
mixedescapeUri(string $uri) : string
string
string_parseElement(array $element) : \DOMElement
arrayan xsd:element represented as an array
\Zend\Soap\Exception\RuntimeException |
if $element is not an array |
|---|
\DOMElementparsed 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