NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Difference in complexType declaration


Joined: 25 Oct 2007
Posts: 3
Reply with quote
$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.
View user's profileFind all posts by Rohan7Send private message
Difference in complexType declaration
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