web services - Extension Base on nusoap -


i create xml schema on nusoap following:

<xsd:complextype name="wsmessage">     <xsd:sequence>         <xsd:element minoccurs="0" maxoccurs="1" name="errormessage" type="s:string"/>         <xsd:element minoccurs="0" maxoccurs="1" name="errorcode" type="s:string"/>     </xsd:sequence> </xsd:complextype>  <s:complextype name="resultset">     <s:complexcontent mixed="false">         <s:extension base="tns:wsmessage">             <s:sequence>                 <s:element minoccurs="0" maxoccurs="1" name="testdata" type="tns:arrayoftestdata"/>             </s:sequence>         </s:extension>     </s:complexcontent> </s:complextype> 

i can't see documentation on how that. know already? thank you.

add 2 complex type input, understood in question input , has output

$this->nusaop->wsdl->addcomplextype(             'wsmessage',             'complextype',             'struct',             'all',             '',             array(                 'errormessage ' => array(                     'methodparameters' => 'errormessage',                     'type' => 'xsd:string'                 ),                 'errorcode' => array(                     'methodparameters' => 'errorcode',                     'type' => 'xsd:string'                 )                )         ); 

/input data type/

$this->nusaop->wsdl->addcomplextype(             'resultset',             'complextype',             'struct',             'all',             '',             array(                 'testdata' => array(                     'methodparameters' => 'testdata',                     'type' => 'xsd:string'                 ),             )         ); 

/output data type/

$this->fm_soapserver->register(         'methodcall',// parameter list:         array('credentials'=>'tns:wsmessage'),// return value(s):         array('return'=>'tns:resultset'),// namespace:         false,// soapaction: (use default)         false,// style: rpc or document         'rpc',// use: encoded or literal         'encoded',// description: documentation method         ''     );    function methodcall(){   ///  validations ....   code....   return array("resultset" => $return);  } 

untested logic there


Comments

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -