public HelloWCFResponse HelloWCF(HelloWCF req)
        {
            HelloWCFResponse resp = new HelloWCFResponse();

            resp.HelloWCFResult = "Hello " + req.name;

            return resp;
        }
        public HelloWCFResponse HelloWCF(HelloWCF req)
        {
            HelloWCFResponse resp = new HelloWCFResponse();

            resp.HelloWCFResult = "Hello " + req.name;

            return(resp);
        }
Пример #3
0
        public override void WriteObject(XmlWriter writer, object graph)
        {
            HelloWCFResponse HelloWCFResponseField = ((HelloWCFResponse)(graph));

            if (WriteParentElement(writer, true, true, graph))
            {
                if (WriteChildElement(writer, "HelloWCFResult", true, false, HelloWCFResponseField.HelloWCFResult))
                {
                    writer.WriteString(HelloWCFResponseField.HelloWCFResult);
                    writer.WriteEndElement();
                }
                writer.WriteEndElement();
            }
            return;
        }
Пример #4
0
        public override object ReadObject(XmlReader reader)
        {
            HelloWCFResponse HelloWCFResponseField = null;

            if (IsParentStartElement(reader, false, true))
            {
                HelloWCFResponseField = new HelloWCFResponse();
                reader.Read();
                if (IsChildStartElement(reader, "HelloWCFResult", true, false))
                {
                    reader.Read();
                    HelloWCFResponseField.HelloWCFResult = reader.ReadString();
                    reader.ReadEndElement();
                }
                reader.ReadEndElement();
            }
            return(HelloWCFResponseField);
        }
Пример #5
0
 public override object ReadObject(XmlReader reader)
 {
     HelloWCFResponse HelloWCFResponseField = null;
     if (IsParentStartElement(reader, false, true))
     {
         HelloWCFResponseField = new HelloWCFResponse();
         reader.Read();
         if (IsChildStartElement(reader, "HelloWCFResult", false, true))
         {
             reader.Read();
             HelloWCFResponseField.HelloWCFResult = reader.ReadString();
             reader.ReadEndElement();
         }
         reader.ReadEndElement();
     }
     return HelloWCFResponseField;
 }