Title: Redundant data in Soap Envelope body

I've build  a sample test where my service class result is reperesented by an array of a class object Str1A :
      public class Str1A  implements java.io.Serializable {
               private int intI1;
               private java.lang.String publS2;
      ..............................
Then I build server and client using the java2wsdl and wsd2Java utilities. Everything works fine,
however, it seems redundant to have the same tags and datatypes for every occurrence of the class members
as well as the same encoding style for every occurrence of the class object, see below. I understand, it probably is governed by the Soap specifications, but still, this is the place where a performance can be significantly improved

by reducing amount of the transmitted data if an alternative way of representing repeated data can be utilized.

Regards,

Gary Rosenfeld 
Computer Associates
Software Engineer
Development
[EMAIL PROTECTED]

<?xml version="1.0" encoding="UTF-8"?>
<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:getStrListResponse  soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"  xmlns:ns1="urn:GaryName">
   <return xsi:type="soapenc:Array" soapenc:arrayType="ns1:Str1A[2]"  xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">

    <item href=""#id0"/>
    <item href=""#id1"/>
   </return>
  </ns1:getStrListResponse>
  <multiRef id="id1" soapenc:root="0"  soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns2:Str1A"  xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns2="urn:GaryName">

   <intI1 xsi:type="xsd:int">1</intI1>
   <publS2 xsi:type="xsd:string">Part2_1</publS2>
  </multiRef>
  <multiRef id="id0" soapenc:root="0"  soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns3:Str1A"  xmlns:ns3="urn:GaryName" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">

   <intI1 xsi:type="xsd:int">0</intI1>
   <publS2 xsi:type="xsd:string">Part2_0</publS2>
  </multiRef>
 </soapenv:Body>
</soapenv:Envelope>

Reply via email to