Skip to content

Commit

Permalink
+ when return type is void the <part...>-node within <messsages> shou…
Browse files Browse the repository at this point in the history
…ld not be set.

git-svn-id: http://svn.php.net/repository/pear/packages/Services_Webservice/trunk@192976 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information
Manfred Weber committed Aug 10, 2005
1 parent 74fb6ff commit 061977e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Webservice/Definition/WSDL.php
Expand Up @@ -324,7 +324,7 @@ protected function createWSDLMessages()
? 'xsd:' : 'typens:') . $methodVars['wsdltype']);
$messageInput->appendChild($part);
}
if (isset($methodVars['return'])) {
if (isset($methodVars['return']) && $methodVars['type']!='void') {
$part = $this->_wsdl->createElement('part');
$part->setAttribute('name', $methodName.'Response'); //$methodVars['wsdltype']);
$part->setAttribute('type', (($methodVars['array'] != 1 && $methodVars['class'] != 1)
Expand Down

0 comments on commit 061977e

Please sign in to comment.