Below is my response, but I need the inner elements of the array to be an
item tag rather than Topics and Parts.  I’m sure its something small, but I
have two days trying to figure this out, If anyone can help that would be
great.

 

So the object is has a array of topics in it,and in the topic object it has
an array of parts in it.

 

 

Here is the current response.

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>

   <soapenv:Body>

      <ns1:SearchResponse
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";
xmlns:ns1="urn:RepositoryIntf-IRepository">

         <SearchReturn soapenc:arrayType="ns2:TReport[1]"
xsi:type="soapenc:Array" xmlns:ns2="urn:BeanService"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/";>

            <SearchReturn FileID="0" xsi:type="ns2:TReport">

               <ReportID xsi:type="xsd:string">TestReportId</ReportID>

               <Title xsi:type="xsd:string">Test Report title</Title>

               <Path xsi:type="xsd:string">Test Report Path</Path>

               <DateTime
xsi:type="xsd:dateTime">2008-03-09T18:10:29.703Z</DateTime>

               <Topics soapenc:arrayType="ns3:TTopic[1]"
xsi:type="soapenc:Array" xmlns:ns3="urn:RepositoryIntf">

                  <Topics Reference="0" xsi:type="ns2:TTopic">

                     <Parts soapenc:arrayType="ns3:TTopicPart[1]"
xsi:type="soapenc:Array">

                        <Parts Name="TestNamePart1"
xsi:type="ns2:TTopicPart">

                           <Value
xsi:type="xsd:string">TestPartValue</Value>

                        </Parts>

                     </Parts>

                  </Topics>

               </Topics>

            </SearchReturn>

         </SearchReturn>

      </ns1:SearchResponse>

   </soapenv:Body>

</soapenv:Envelope>

 

 

This is what I need

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>

   <soapenv:Body>

      <ns1:SearchResponse
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";
xmlns:ns1="urn:RepositoryIntf-IRepository">

         <SearchReturn soapenc:arrayType="ns2:TReport[1]"
xsi:type="soapenc:Array" xmlns:ns2="urn:BeanService"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/";>

            <SearchReturn FileID="0" xsi:type="ns2:TReport">

               <ReportID xsi:type="xsd:string">TestReportId</ReportID>

               <Title xsi:type="xsd:string">Test Report title</Title>

               <Path xsi:type="xsd:string">Test Report Path</Path>

               <DateTime
xsi:type="xsd:dateTime">2008-03-09T18:10:29.703Z</DateTime>

               <Topics soapenc:arrayType="ns3:TTopic[1]"
xsi:type="soapenc:Array" xmlns:ns3="urn:RepositoryIntf">

                  <item Reference="0" xsi:type="ns2:TTopic">

                     <Parts soapenc:arrayType="ns3:TTopicPart[1]"
xsi:type="soapenc:Array">

                        <item Name="TestNamePart1"
xsi:type="ns2:TTopicPart">

                           <Value
xsi:type="xsd:string">TestPartValue</Value>

                        </item>

                     </Parts>

                  </item>

               </Topics>

            </SearchReturn>

         </SearchReturn>

      </ns1:SearchResponse>

   </soapenv:Body>

</soapenv:Envelope>

 

 


No virus found in this outgoing message.
Checked by AVG. 
Version: 7.5.518 / Virus Database: 269.21.7/1319 - Release Date: 08/03/2008
10:14 AM
 

Reply via email to