NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
addComplexType & register - documentation


Joined: 13 Aug 2004
Posts: 5
Reply with quote
Is there a documenation tag one can use in the addComplex type and register commands:

Code:

$server->wsdl->addComplexType(
    'Chapter',
    'complexType',
    'struct',
    'all',
    '',
    array(
        'title' => array('name'=>'title','type'=>'xsd:string'),
        'page' => array('name'=>'page','type'=>'xsd:int')
    )
);


Code:

$server->register(
    'getBooks',
    array('author'=>'xsd:string'),
    array('return'=>'xsd:string'),
    $NAMESPACE);


In both of the above code segments, where would i put the documentation tag?
(ie: so it would output as <s:documenation>BLAH</s:documentation>
View user's profileFind all posts by mikehummelSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 7861
Reply with quote
as of nusoap 1.69 and higher you may call
Code:
$server->register(
    'getBooks',
    array('author'=>'xsd:string'),
    array('return'=>'xsd:string'),
    $NAMESPACE,
    false,
    false,
    false,
    "Your documentation is here");


regarding $server->wsdl->addComplexType, there is no such argument, but you may try the following out:

Code:
$server->wsdl->complexTypes['Chapter']['documentation'] = "Your documentation is here";
View user's profileFind all posts by dmitriSend private messageVisit poster's website
addComplexType & register - documentation
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic