How to use Serialize for SOAP Format?

How to use Serialize for SOAP Format

Answer this question

How to use Serialize for SOAP Format?

  • Manju Sandhu

    using System.Runtime.Serialization.Formatters.Soap; //error

    public Computer(string name,int speed,int harddisk,int memory,string ip)
    {
    this.ComputerName = name;
    this.CPUSpeed = speed;
    this.HardDiskCapability = harddisk;
    this.MemoryCapability = memory;
    this.ComputerIP = ip;
    }
    }

    =======================================

    Computer myCompueter = new Computer("xp2005",3000,80,512,"01");

    SoapFormatter soap = new SoapFormatter();//error(SoapFormatter) not find namespace
    System.IO.FileStream fs2= new System.IO.FileStream("c://abc.xml",System.IO.FileMode.CreateNew);
    soap.Serialize(fs,myCompueter);
    =========================================


  • Satyanand

    class conversion soap format
  • TRISS

    What kind of objects do you want to serize in SOAP format

  • How to use Serialize for SOAP Format?