0 Replies Latest reply on Jul 8, 2007 8:02 PM by Thenmalar

    How to pass Complex structures to webservices

    Thenmalar Level 1
      Hi ,
      How to pass the User Data in the form of Complex Structures to webservices becoz my WSDL file includes more number of tables as a request parameter . there is a data inside that tables.i want to pass the set of details from my flex builder to that fields which is inside the tables.
      for Example: The following code are from my WSDL file.
      ..............................
      <xsd:complexType name="Zbapieduc">
      - <xsd:sequence>
      <xsd:element name="FromDate" type="n0:date" />
      <xsd:element name="ToDate" type="n0:date" />
      <xsd:element name="EducEst" type="n0:char2" />
      <xsd:element name="EducTra" type="n0:numeric8" />
      <xsd:element name="Institute" type="n0:char80" />
      <xsd:element name="Cntry" type="n0:char3" />
      <xsd:element name="Certific" type="n0:char2" />
      <xsd:element name="BrStudy1" type="n0:numeric5" />
      <xsd:element name="BrStudy2" type="n0:numeric5" />
      <xsd:element name="Mark" type="n0:char4" />
      </xsd:sequence>
      </xsd:complexType>
      ........................................
      <xsd:complexType name="TableOfzbapieduc">
      - <xsd:sequence>
      <xsd:element name="item" minOccurs="0" maxOccurs="unbounded" type="tns:Zbapieduc" />
      </xsd:sequence>
      .......................................................
      <xsd:element name="ZhrFunApplicantCreate">
      - <xsd:complexType>
      - <xsd:sequence>
      <xsd:element name="Address1" type="n0:char60" />
      <xsd:element name="Address2" minOccurs="0" type="n0:char40" />
      <xsd:element name="Advert" minOccurs="0" type="n0:numeric8" />
      <xsd:element name="BDate" minOccurs="0" type="n0:date" />
      <xsd:element name="City" type="n0:char25" />
      <xsd:element name="Cntry" minOccurs="0" type="n0:char3" />
      <xsd:element name="EMail" minOccurs="0" type="n0:char241" />
      <xsd:element name="Education" minOccurs="0" type="tns:TableOfzbapieduc" />
      <xsd:element name="ExpStatus" minOccurs="0" type="xsd:string" />
      <xsd:element name="FName" type="n0:char25" />
      <xsd:element name="Gender" minOccurs="0" type="n0:char1" />
      <xsd:element name="LName" type="n0:char25" />
      <xsd:element name="PcdCity" type="n0:char10" />
      <xsd:element name="PreviousEmployment" minOccurs="0" type="tns:TableOfbapiemploy" />
      <xsd:element name="Qualification" minOccurs="0" type="tns:TableOfzbapiquali" />
      <xsd:element name="SText" minOccurs="0" type="xsd:string" />
      <xsd:element name="TelNo" minOccurs="0" type="n0:char14" />
      <xsd:element name="VacancyAssignment" minOccurs="0" type="tns:TableOfbapivacass" />
      </xsd:sequence>
      </xsd:complexType>
      </xsd:element>
      - <xsd:element name="ZhrFunApplicantCreateResponse">
      - <xsd:complexType>
      - <xsd:sequence>
      <xsd:element name="Applicantnumber" type="n0:numeric8" />
      <xsd:element name="Education" type="tns:TableOfzbapieduc" />
      <xsd:element name="PreviousEmployment" type="tns:TableOfbapiemploy" />
      <xsd:element name="Qualification" type="tns:TableOfzbapiquali" />
      <xsd:element name="Return" type="tns:Bapireturn" />
      <xsd:element name="VacancyAssignment" type="tns:TableOfbapivacass" />
      </xsd:sequence>
      </xsd:complexType>
      </xsd:element>

      This WSDL file get the Applicant details from the Flex & generate an Applicant Number as the Output for an Applicant.
      In that stage i don't know how to pass the Array values or Xml Values from Flex to store the details about Education table.

      If anyone find the solution plz let me know . I have been struggling a week for this
      Thanks in advance...

      Warm Regards,
      Thenmalar.v