Dear All,
We are working on a SOAP backend wherein we have repeated properties and we need to use the CREATE operation for it.
The Request Body is something like this
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/" xmlns:ent="http://schemas.datacontract.org/2004/07/EntityComponents">
<soapenv:Header/>
<soapenv:Body>
<tem:AddSample>
<tem:_Sample>
<ent:AnimalType>1</ent:AnimalType>
<ent:AppoitmentID>1</ent:AppoitmentID>
<ent:BatchNo>1</ent:BatchNo>
<ent:ID>1</ent:ID>
<ent:NumberOfSamples>1</ent:NumberOfSamples>
<ent:SampleResultExpired>true</ent:SampleResultExpired>
<ent:SampleType>1</ent:SampleType>
<ent:SuggestedDate>2000-02-10T00:00:00</ent:SuggestedDate>
<ent:Type>1</ent:Type>
<ent:VHAnimalsID>1</ent:VHAnimalsID>
<ent:VH_CertificateSamplingResult>
<!--Zero or more repetitions:-->
<ent:VH_CertificateSamplingResult>
<!--Optional:-->
<ent:AnimalType>1</ent:AnimalType>
<!--Optional:-->
<ent:CertificateSamplingID>1</ent:CertificateSamplingID>
<!--Optional:-->
<ent:Date>2000-02-10T00:00:00</ent:Date>
<!--Optional:-->
<ent:EntryType>1</ent:EntryType>
<!--Optional:-->
<ent:FinalResult>1</ent:FinalResult>
<!--Optional:-->
<ent:FitFlag>true</ent:FitFlag>
<!--Optional:-->
<ent:ID>1</ent:ID>
<!--Optional:-->
<ent:LMDComments>1</ent:LMDComments>
<!--Optional:-->
<ent:Result>1</ent:Result>
<!--Optional:-->
<ent:ResultUniqID>1</ent:ResultUniqID>
<!--Optional:-->
<ent:TagNumber>1</ent:TagNumber>
<!--Optional:-->
<ent:TestCode>1</ent:TestCode>
<!--Optional:-->
<ent:TestName>1</ent:TestName>
<!--Optional:-->
<ent:TestUnit>1</ent:TestUnit>
<!--Optional:-->
<ent:Test_Rate_From>2000-02-10T00:00:00</ent:Test_Rate_From>
<!--Optional:-->
<ent:Test_Rate_To>2000-02-11T00:00:00</ent:Test_Rate_To>
<!--Optional:-->
<ent:VetDocComments>1</ent:VetDocComments>
</ent:VH_CertificateSamplingResult>
</ent:VH_CertificateSamplingResult>
<!--Optional:-->
<ent:VetComments></ent:VetComments>
<!--Optional:-->
<ent:VetDocID>1</ent:VetDocID>
<!--Optional:-->
<ent:VisitDate>2000-02-10T00:00:00</ent:VisitDate>
<!--Optional:-->
<ent:isAppExpired>true</ent:isAppExpired>
<!--Optional:-->
<ent:isManual>true</ent:isManual>
<!--Optional:-->
<ent:isPaid>true</ent:isPaid>
</tem:_Sample>
</tem:AddSample>
</soapenv:Body>
</soapenv:Envelope>
The Sampling Result type is a repeated property and we are not sure how to use it for repeated data. I went through a post in which it mentioned to create a seperate entity of the complex type and then use it with the navigation property but this doesnt seem to work with for the CREATE operation.
Can anyone please suggest for this.
jitendra kansalMustafa SaglamBjoern WoppmannMidhun VPKranti KhilariTejesvi DVR
Thanks,
Rakshit Doshi