WCF returning NULL values

Viewed 166

I am calling a third party WCF service in MVC application. When I am trying to read the response from service, I am getting all values as NULL, while if I check in fiddler it is showing response there. Do I need any special configuration which I am missing in code? Please bear with me, as I am a new learner of WCF

Code is as below

SalesReviewMD efm = new SalesReviewMD(Server.MapPath("~/Cert/CertGlobal.pfx"), "*****");

    @string stSales = new @string();
    stSales.Value = "slo:cv";
    IdentificationType salesJune = new IdentificationType();
    salesJune.IdentificationID = stSales;
    SaleType salesJuneType = new SaleType();
    EntityType entity = new EntityType();
    entity.id = "7yt678-0330-12312d-238-d4ww444f";            
    DateRangeType dt = new DateRangeType();
    DateRangeType[] dtte = { dt };
    SalesListType request = new SalesListType();
    request.DocumentSubmitter = entity;

    request.SendingSalesProfileCode = "urn:oasis:names:tc:legalxml-salesList:schema:xsd:WebServicesMessaging-2.0";
    SalesListResponseMessageType response = efm.GetSalesList(request);

SalesListResponseMessageType from Wsdl

  [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.7.2612.0")]
        [System.SerializableAttribute()]
        [System.Diagnostics.DebuggerStepThroughAttribute()]
        [System.ComponentModel.DesignerCategoryAttribute("code")]
        [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:oasis:names:tc:legalxml-salesList:schema:xsd:WebServicesMessaging-2.0")]
    public partial class SalesListResponseMessageType : QueryResponseMessageType {
    -------------------
    -------------------
    }
0 Answers
Related