How to register the <complexType> part <any> usi
Posted: Fri Sep 07, 2007 12:36 pm
feyd | Please use
The server-side code for registering the same is ....[/syntax]
Here above we have registered ( "type" , "Id", "fieldsToNull").... NOW how to register the type <any> here in the server-side..... ?
Any help in this regards please......
Regards,
Navin
feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
Hi all,
I am not clear how to register <any> type of the <complexType> using Nusoap. For normal complex types we register as follows....
The WSDL particular for the complex type ...
[syntax="xml"]
<!-- Dynamic someCtype -->
<complexType name="someCtype">
<sequence>
<element name="type" type="xsd:string"/>
<element name="fieldsToNull" type="xsd:string" nillable="true" minOccurs="0" maxOccurs="unbounded"/>
<element name="Id" type="xsd:string" nillable="true" />
<any namespace="##targetNamespace" minOccurs="0" maxOccurs="unbounded" processContents="lax"/>
</sequence>
</complexType>
Code: Select all
//Register ComplexType
$server->wsdl->addComplexType(
'someCtype',
'complexType',
'struct',
'sequence',
'',
array(
'type' => array('name' => 'type', 'type' => 'xsd:string'),
'Id' => array('name' => 'Id', 'type' => 'xsd:string'),
'fieldsToNull' => array('name' => 'fieldsToNull', 'type' => 'xsd:string')
)
);Any help in this regards please......
Regards,
Navin
feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]