Joined: 25 Oct 2007 |
Posts: 3 |
|
|
|
Posted: Mon Oct 29, 2007 8:57 am |
|
|
|
|
|
$server->wsdl->addComplexType(
'Row',
'complexType',
'struct',
'all',
'',
array(
'id' => array('name' =>'id','type'=>'xsd:int'),
'info' => array('name' =>'info','type'=>'xsd:string'),
'description' => array('name' =>'description','type'=>'xsd:string')
)
);
//---- Big ----------------------------------------------------------------
$server->wsdl->addComplexType(
'Big',
'complexType',
'array',
'',
'SOAP-ENC:Array',
array(),
array(array('ref'=>'SOAP-ENC:arrayType','wsdl:arrayType'=>'tns:Row[]'))
);
This i got from somewhere in this forum. If i change the last line
array(array('ref'=>'SOAP-ENC:arrayType','wsdl:arrayType'=>'tns:Row[]'))
To
array(array('ref'=>'SOAP-ENC:arrayType','wsdl:arrayType'=>'tns:Row[]')),
tns:Row
Then my web service gives some problem. I fetch mysql results by mysql_fetch_asso() function.
My question is, does tns:Row makes some difference? Actually i'm dont have much knowledge of WSDL.
Can somebody please explain the difference?
Thanks in advance.
|