simpligility / ksoap2-android

ksoap2-android - SOAP support for Android
http://simpligility.github.io/ksoap2-android/
Other
543 stars 247 forks source link

Send List as Request #118

Closed vineethMohan92 closed 5 years ago

vineethMohan92 commented 6 years ago
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <func_POS_KotSave_App xmlns="http://tempuri.org/">
      <Shift_Id>int</Shift_Id>
      <Waiter_Id>decimal</Waiter_Id>
      <Table_Id>long</Table_Id>
      <Noof_Pax>int</Noof_Pax>
      <Hold_No>decimal</Hold_No>
      <Location_Id>int</Location_Id>
      <Bill_Date>dateTime</Bill_Date>
      <CustVend_Id>decimal</CustVend_Id>
      <CustVend_Name>string</CustVend_Name>
      <User_Id>decimal</User_Id>
      <POs_Id>int</POs_Id>
      <KotDetList>
        <KotDetails>
          <SlNo>int</SlNo>
          <ItemCode>decimal</ItemCode>
          <Description>string</Description>
          <Received>decimal</Received>
          <TotalQty>decimal</TotalQty>
          <UM>decimal</UM>
          <Cost>decimal</Cost>
          <DiscountValue>decimal</DiscountValue>
          <DiscountPercent>decimal</DiscountPercent>
          <DiscountAmount>string</DiscountAmount>
          <CostAfterDiscount>decimal</CostAfterDiscount>
          <TaxCode>decimal</TaxCode>
          <ProductAmount>decimal</ProductAmount>
          <TaxAmount>decimal</TaxAmount>
          <LandedCost>decimal</LandedCost>
          <Amount>decimal</Amount>
          <ItemNote>string</ItemNote>
        </KotDetails>
        <KotDetails>
          <SlNo>int</SlNo>
          <ItemCode>decimal</ItemCode>
          <Description>string</Description>
          <Received>decimal</Received>
          <TotalQty>decimal</TotalQty>
          <UM>decimal</UM>
          <Cost>decimal</Cost>
          <DiscountValue>decimal</DiscountValue>
          <DiscountPercent>decimal</DiscountPercent>
          <DiscountAmount>string</DiscountAmount>
          <CostAfterDiscount>decimal</CostAfterDiscount>
          <TaxCode>decimal</TaxCode>
          <ProductAmount>decimal</ProductAmount>
          <TaxAmount>decimal</TaxAmount>
          <LandedCost>decimal</LandedCost>
          <Amount>decimal</Amount>
          <ItemNote>string</ItemNote>
        </KotDetails>
      </KotDetList>
      <ItemSerailList>
        <ItemSeriel_class>
          <Supplier>string</Supplier>
          <ItemId>int</ItemId>
          <ItemCode>decimal</ItemCode>
        </ItemSeriel_class>
        <ItemSeriel_class>
          <Supplier>string</Supplier>
          <ItemId>int</ItemId>
          <ItemCode>decimal</ItemCode>
        </ItemSeriel_class>
      </ItemSerailList>
      <TaxDetList>
        <TaxDetails_class>
          <Rank>decimal</Rank>
          <ItemId>decimal</ItemId>
          <TaxGrId>decimal</TaxGrId>
          <TaxId>decimal</TaxId>
          <TaxPer>decimal</TaxPer>
          <TaxAmt>decimal</TaxAmt>
          <TaxBasedOnAmt>decimal</TaxBasedOnAmt>
        </TaxDetails_class>
        <TaxDetails_class>
          <Rank>decimal</Rank>
          <ItemId>decimal</ItemId>
          <TaxGrId>decimal</TaxGrId>
          <TaxId>decimal</TaxId>
          <TaxPer>decimal</TaxPer>
          <TaxAmt>decimal</TaxAmt>
          <TaxBasedOnAmt>decimal</TaxBasedOnAmt>
        </TaxDetails_class>
      </TaxDetList>
    </func_POS_KotSave_App>
  </soap:Body>
</soap:Envelope>

this is my request format and i cant create a request like this. Already try KvmSerializable and marshal. how can i set a list of data to kotDetails? on my try it show exception and only one value of list is taken to request. what i am doing is .. PropertyInfo pi11 = new PropertyInfo(); pi11.name = "KotDetList"; pi11.setValue(kotDetails); pi11.setType(kotDetails.getClass()); request.addProperty(pi11);

envelope.addMapping(AppConstants.NAMESPACE, "KotDetails", kotDetails.getClass()); that class kotDetails is implimented KvmSerializable. Whats can i do?

mosabua commented 5 years ago

Closing old inactive issue as part of cleanup