How to register the <complexType> part <any> usi

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
navinkumarank
Forum Newbie
Posts: 6
Joined: Thu Apr 05, 2007 8:52 am

How to register the <complexType> part <any> usi

Post by navinkumarank »

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>

The server-side code for registering the same is ....[/syntax]

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')
   	)
);
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]
Post Reply