src/XSD2PHP/lib/ZF/1.10.7/Zend/Soap/Wsdl.php
public function addMessage($name, $parts)
    {
        $message = $this->_dom->createElement('message');

        $message->setAttribute('name', $name);

        if (sizeof($parts) > 0) {
            foreach ($parts as $name => $type) {
                $part = $this->_dom->createElement('part');
                $part->setAttribute('name', $name);
                if (is_array($type)) {
                    foreach ($type as $key => $value) {
                        $part->setAttribute($key, $value);
                    }
                } else {
                    $part->setAttribute('type', $type);
                }
                $message->appendChild($part);
            }
        }

        $this->_wsdl->appendChild($message);

        return $message;
    }
public function addMessage($name, $parts)
    {
        $message = $this->_dom->createElement('message');

        $message->setAttribute('name', $name);

        if (sizeof($parts) > 0) {
            foreach ($parts as $name => $type) {
                $part = $this->_dom->createElement('part');
                $part->setAttribute('name', $name);
                if (is_array($type)) {
                    foreach ($type as $key => $value) {
                        $part->setAttribute($key, $value);
                    }
                } else {
                    $part->setAttribute('type', $type);
                }
                $message->appendChild($part);
            }
        }

        $this->_wsdl->appendChild($message);

        return $message;
    }
Add a {@link http://www.w3.org/TR/wsdl#_messages message} element to the WSDL

@param string $name Name for the {@link http://www.w3.org/TR/wsdl#_messages message}
@param array $parts 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')
@return object The new message's XML_Tree_Node for use in {@link function addDocumentation}