I have defined a message contract class which approximately looks
something like this:

    [MessageContract()]
    public class TestClass
    {
        [MessageBodyMember()]
        public string[] AnArray;
    }

The soap message which is serialized by this class is:

<Envelope.....
  soap stuff>
  <body>
      <TestClass>
        <AnArray>
          <string>something</string>
          <string>something</string>
          <string>something</string>
        </AnArray>
      </TestClass>
  </body>
</envelope>

Unfortunately I need to have this class serialized without the
containing AnArray tag. Is there an easy to do this, or do I have to
implement IXmlSerializable to get this done?




Reply via email to