 |
 | dmitri (site admin)? New member need help on attributes |  |
Joined: 16 Jan 2007 |
Posts: 3 |
|
|
 |
Posted: Mon Jan 15, 2007 1:35 pm |
|
 |
 |
 |
 |
Hello everyone,
New member and first post to any forum. I am not sure who to ask, so dmitri must be the one. I am using nusoap and don't know how to add attributes using addComplexType. I search everywhere and can't get any answers. It is possible using addComplexType for this xml document:
<Property>
<Identification type="house" rentalType="">
<Address></Address>
<City></City>
</Identification>
</Property>
The addComplexType below work without type="house" rentalType="":
$server->wsdl->addComplexType(
'Property',
'complexType',
'struct',
'all',
'',
array(
'Identification' => array(
'Address' => array('name' => 'Address', 'type' => 'xsd:string'),
'City' => array('name' => 'City', 'type' => 'xsd:string')
)
)
);
Again, how do you add the type="house" rentalType="" to the <Identification> above? Please help if you can.
Many thanks
|
|
 | Thanks dmitri. What is your point of view? |  |
Joined: 21 Apr 2008 |
Posts: 10 |
|
|
 |
Posted: Wed Apr 23, 2008 6:34 am |
|
 |
 |
 |
 |
Hi,
I am not sure if you are asking for this, just have a look.
$server->wsdl->addComplexType
(
'Property',,
'complexType',
'array',
'sequence',
'',
array
(
'Identification' => array
(
'type' => 'house',
'rentalType' => ''
),
.....
)
);
|
Regards,
Dave
|
|
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
|
|
|
|  |