NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
How do i create Array for NuSOAP Wizard


Joined: 16 Oct 2006
Posts: 3
Reply with quote
hi to all,

i am having following WSDL ..all works fine but when i apply sequence array for user question and it's answer it give me blank row in SOAP Request.....i am confuse plz help me where i made mistake...

WSDL -->

<xsd:element name="GroupImport">

<xsd:complexType>

<xsd:sequence>

<xsd:element maxOccurs="10" minOccurs="0" name="row">

<xsd:complexType>

<xsd:sequence>

<xsd:element name="RepeatImportEnrollmentPotentialAttribute">

<xsd:complexType>

<xsd:sequence>
+
<xsd:element minOccurs="0" name="Name">

<xsd:simpleType>

<xsd:restriction base="xsd:string">
<xsd:maxLength value="20"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
+
<xsd:element minOccurs="0" name="Domain">

<xsd:simpleType>

<xsd:restriction base="xsd:string">
<xsd:maxLength value="1"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
+
<xsd:element minOccurs="0" name="TypeCode">

<xsd:simpleType>

<xsd:restriction base="xsd:string">
<xsd:maxLength value="1"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>

<xsd:element name="RepeatImportAnswersMemberAttribute">

<xsd:complexType>

<xsd:sequence>
+
<xsd:element minOccurs="0" name="TextAttributeValue">

<xsd:simpleType>

<xsd:restriction base="xsd:string">
<xsd:maxLength value="45"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
+
<xsd:element minOccurs="0" name="DateAttributeValue">

<xsd:simpleType>

<xsd:restriction base="xsd:integer">
<xsd:totalDigits value="8"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
+
<xsd:element minOccurs="0" name="NumericAttributeValue">

<xsd:simpleType>

<xsd:restriction base="xsd:integer">
<xsd:totalDigits value="11"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>

i define array for this --> other paratmeter not require for input.........in RepeatImportAnswersMemberAttribute....only anwser is needed.........i would have more then one question

$parameters['Lms804sEnrollmentService']['request']['GroupImport']['row'][] = array (
'RepeatImportEnrollmentPotentialAttribute' => array (
'Name' => $this->post["QueName"],
'Domain' => 'C',
'TypeCode' => 'C'),
'RepeatImportAnswersMemberAttribute' => array(
'TextAttributeValue' => trim($this->post["TextAttributeValue"])));
}

My SOAP request -->

?xml version="1.0" encoding="ISO-8859-1"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns5135="................">
<SOAP-ENV:Body>
<Lms804sEnrollmentService xmlns="">
=""><request xmlns="" command="...." clientId="....." clientPassword=".....">

<GroupImport xmlns="">
<row xmlns=""></row>
</GroupImport>
</request></Lms804sEnrollmentService>
</SOAP-ENV:Body></SOAP-ENV:Envelope>


I cannot Got what i apply in WSDL....just try to look in to matter...


Plz help
View user's profileFind all posts by alex_wincetSend private message
How do i create Array for NuSOAP Wizard
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