NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
creating the element tag in wsdl using nusoap


Joined: 21 Aug 2009
Posts: 1
Reply with quote
Hi,
I would like to generate the WSDL like the following using nusoap.

I have tried using following
Quote:
//getMetadataSize
$server->wsdl->addComplexType()


but i failed to have the <element name="getMetadataSize"> tag started.

Code:
<wsdl:types>
<schema elementFormDefault="qualified" targetNamespace="http://myserver" xmlns="http://www.w3.org/2001/XMLSchema">
<element name="getMetadataSize">
<complexType>
<sequence>
<element name="startTime" type="xsd:dateTime"/>
<element name="endTime" type="xsd:dateTime"/>
</sequence>
</complexType>
</element>
</schema>
</wsdl:types>


can anyone help me to fix this issu
View user's profileFind all posts by raveendranSend private message
May I can help some...


Joined: 21 Aug 2009
Posts: 2
Reply with quote
Hi raveendran,

I'm new at this but I think you cat do this:

Code:

$server->wsdl->addComplexType(
   'getMetadataSize',
   'complexType',
   'struct',
   'sequence',
   '',
   array(
     'startTime'          => array('name'  => 'startTime', 'type' => 'xsd:dateTime'),
     'endTime'     => array('name' => 'endTime', 'type' => 'xsd:dateTime')
     )
  );


This will create a complexType with name getMetadataSize but not an element called getMetadateSize containing a complexType structured as yours is. Your problem is similar to the one I am have.

I am trying to translated a massive set of XSD files into nuSOAP WSDL/SOAP framework but it looks to be difficult to shoehorn these complex XSDs into this framework.

Maybe someone else can explain better to us what we don't understand?

Ciao,
Soapy
View user's profileFind all posts by soapsudsSend private message
creating the element tag in wsdl using nusoap
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