FAST RESPONSE: I create a WCF web service that is expected to give this response.
 

  

     

         0

         success

        

           

               BillRefNumber

               73011

           

           

               TransID

               <fr34fg567

           

           

               UtilityName

               GoldenTransport

           

           

               CustomerName

               Abebe

           

           

               Amount

               50

           

        

     

  

 
My Code Returns the format Below: I chnage the soap version to 1.2
 

 
 
   
     
        200.00
        14233
        NA R.N= 481
        0
        Previous:53m3/Actual:53m3/Cons:0m3/Months:100
        BSR309557
        Adwa Town Water Supply and Sewerage Service
     

   

 

 
 My Code Is
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Channels;
using System.ServiceModel.Web;
using System.Text;
using System.Data;
using System.Web.Services;
using System.ComponentModel;
using System.Web.Services.Protocols;

namespace PayBill
{
    [ServiceContract]
    [DefaultValue(SoapProtocolVersion.Soap12)]   

    interface IPayBillService
    {
        [OperationContract]
        C2BPaymentQueryRequest C2BPaymentQueryRequest(string Password, string ShortCode, string CommandID, string BillRefNumber, C2BPaymentQueryRequest Response);

        [OperationContract]
        C2BPaymentValidationRequest C2BPaymentValidationRequest(string TransType, string TransID, string TransTime, string TransAmount, string BusinessShortCode, string BillRefNumber, string InvoiceNumber, string MSISDN, C2BPaymentValidationRequest Response);

        [OperationContract]
        C2BPaymenConfirmationRequest C2BPaymenConfirmationRequest(string TransType, string TransID, string TransTime, string TransAmount, string BusinessShortCode, string BillRefNumber, string InvoiceNumber, string OrgAccountBalance, string ThirdPartyTransID, string MSISDN, C2BPaymenConfirmationRequest Response);
    }

    [DataContract]
    public class C2BPaymentQueryRequest
    {
        string resultCode;
        string resultDesc;
        string billRefNumber;
        string transID;
        string utilityName;
        string customerName;
        string amount;

        [DataMember]
        public string ResultCode
        {
            get { return resultCode; }
            set { resultCode = value; }
        }
        [DataMember]
        public string ResultDesc
        {
            get { return resultDesc; }
            set { resultDesc = value; }
        }
        [DataMember]
        public string BillRefNumber
        {
            get { return billRefNumber; }
            set { billRefNumber = value; }
        }
        [DataMember]
        public string TransID
        {
            get { return transID; }
            set { transID = value; }
        }
        [DataMember]
        public string UtilityName
        {
            get { return utilityName; }
            set { utilityName = value; }
        }
        [DataMember]
        public string CustomerName
        {
            get { return customerName; }
            set { customerName = value; }
        }
        [DataMember]
        public string Amount
        {
            get { return amount; }
            set { amount = value; }
        }
    }   

    [DataContract]
    public class C2BPaymentValidationRequest
    {
        string resultCode;
        string resultDesc;       
        string thirdPartyTransID;
        [DataMember]
        public string ResultCode
        {
            get { return resultCode; }
            set { resultCode = value; }
        }
        [DataMember]
        public string ResultDesc
        {
            get { return resultDesc; }
            set { resultDesc = value; }
        }
        [DataMember]
        public string ThirdPartyTransID
        {
            get { return thirdPartyTransID; }
            set { thirdPartyTransID = value; }
        }
    }

    [DataContract]
    public class C2BPaymenConfirmationRequest
    {
    }
}
 
Please find the attached Project. Please Help.