none
Acessar atributo de classe RRS feed

  • Pergunta

  • Boa tarde Pessoal,

    Estou com uma classe de pedido chamada pedidosGravarPedidosIn que possuem um atributo chamado pedido do tipo pedidosGravaPedidosInPedido[] para realizar o acesso a mesma estou instanciando as referidas classes e fazendo os referidos acessos porém um erro é apresentado quando tento acessar este atributo. Considerando que sou novo neste assunto como posso realizar o acesso normalmente sem erros?

    Abaixo segue o código com as referidas classes. Desde já Obrigado.

    wsPedidos.pedidosGravarPedidosIn pedidoIn = new wsPedidos.pedidosGravarPedidosIn();
    wsPedidos.pedidosGravarPedidosInPedido pedidosInpedido = new wsPedidos.pedidosGravarPedidosInPedido();

    pedidoIn.ignorarErrosItens = "S";
    pedidoIn.ignorarErrosParcela = "N";
    pedidoIn.ignorarErrosPedidos = "S";
    pedidoIn.inserirApenasPedidoCompleto = "S";
    pedidoIn.sigInt = "PedidosOnline";
    pedidosInpedido.opeExe = "I";
    pedidosInpedido.fecPed = "N"; //Fechar Pedido
    pedidosInpedido.codEmp = 200;
    pedidosInpedido.codFil = 201;
    pedidosInpedido.numPed = 99999;
    pedidosInpedido.prcPed = 2;
    pedidosInpedido.tnsPro = "90100";
    pedidosInpedido.datEmi = "31/08/2015";
    pedidosInpedido.codCli = 16;
    pedidosInpedido.cnpjCliente = "111111111";
    pedidosInpedido.codRep = "16";
    pedidosInpedido.codCpg = "000001";
    pedidosInpedido.pgtAnt = "S";
    pedidosInpedido.cifFob = "F";
    pedidosInpedido.temPar = "S";
    pedidosInpedido.pedBlo = "S";
    pedidosInpedido.acePar = "S";

    pedidoIn.pedido = pedidosInpedido; "error: Cannot implicity convert type wsPedidos.pedidosgravarPedidosInPedido to wsPedidos.pedidosgravarPedidosInPedido[]"

    public class pedidosGravarPedidosIn : INotifyPropertyChanged
        {
            public pedidosGravarPedidosIn();
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 0)]
            public string dataBuild { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 1)]
            public string flowInstanceID { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 2)]
            public string flowName { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 3)]
            public string ignorarErrosItens { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 4)]
            public string ignorarErrosParcela { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 5)]
            public string ignorarErrosPedidos { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 6)]
            public string inserirApenasPedidoCompleto { get; set; }
            [XmlElement("pedido", Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 7)]
            public pedidosGravarPedidosInPedido[] pedido { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 8)]
            public string sigInt { get; set; }
            public event PropertyChangedEventHandler PropertyChanged;
            protected void RaisePropertyChanged(string propertyName);
        }
    public class pedidosGravarPedidosInPedido : INotifyPropertyChanged
        {
            public pedidosGravarPedidosInPedido();
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 0)]
            public string acePar { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 1)]
            public string anaEmb { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 2)]
            public int? catCli { get; set; }
            [XmlIgnore]
            public bool catCliSpecified { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 3)]
            public string cepFre { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 4)]
            public string cifFob { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 5)]
            public string cliRel { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 6)]
            public string cnpjCliente { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 7)]
            public string cnpjFilial { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 8)]
            public string codApc { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 9)]
            public string codCdi { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 10)]
            public int? codCli { get; set; }
            [XmlIgnore]
            public bool codCliSpecified { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 11)]
            public string codCpg { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 12)]
            public string codCrt { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 13)]
            public int? codEmp { get; set; }
            [XmlIgnore]
            public bool codEmpSpecified { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 14)]
            public string codFcr { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 15)]
            public int? codFil { get; set; }
            [XmlIgnore]
            public bool codFilSpecified { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 16)]
            public string codFpg { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 17)]
            public string codLip { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 18)]
            public string codMar { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 19)]
            public string codMcp { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 20)]
            public string codMoe { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 21)]
            public string codMot { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 22)]
            public string codOpe { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 23)]
            public string codPor { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 24)]
            public string codRed { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 25)]
            public string codRep { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 26)]
            public string codRoe { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 27)]
            public string codSac { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 28)]
            public string codSro { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 29)]
            public string codTab { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 30)]
            public string codTra { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 31)]
            public string codVen { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 32)]
            public string codVia { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 33)]
            public string cotMfp { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 34)]
            public string cotMoe { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 35)]
            public string datAge { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 36)]
            public string datApr { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 37)]
            public string datBlo { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 38)]
            public string datEmi { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 39)]
            public string datFcr { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 40)]
            public string datFec { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 41)]
            public string datGer { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 42)]
            public string datMfp { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 43)]
            public string datMoe { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 44)]
            public string datPrv { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 45)]
            public string expWms { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 46)]
            public int? fatPed { get; set; }
            [XmlIgnore]
            public bool fatPedSpecified { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 47)]
            public string fecMoe { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 48)]
            public string fecPed { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 49)]
            public string filFat { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 50)]
            public string filNco { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 51)]
            public string forFre { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 52)]
            public string horApr { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 53)]
            public string horBlo { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 54)]
            public string horEmi { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 55)]
            public string horFec { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 56)]
            public string horFim { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 57)]
            public string horGer { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 58)]
            public string horIni { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 59)]
            public string horPrv { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 60)]
            public string ideExt { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 61)]
            public string indAgr { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 62)]
            public string indPre { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 63)]
            public string indSig { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 64)]
            public string numAnx { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 65)]
            public string numEmp { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 66)]
            public string numNco { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 67)]
            public int? numPed { get; set; }
            [XmlIgnore]
            public bool numPedSpecified { get; set; }
            [XmlElement("observacao", Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 70)]
            public pedidosGravarPedidosInPedidoObservacao[] observacao { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 68)]
            public string obsMot { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 69)]
            public string obsPed { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 71)]
            public string opeExe { get; set; }
            [XmlElement("parcelas", Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 72)]
            public pedidosGravarPedidosInPedidoParcelas[] parcelas { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 73)]
            public string pedBlo { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 74)]
            public string pedCli { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 75)]
            public string pedPal { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 76)]
            public string perDs1 { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 77)]
            public string perDs2 { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 78)]
            public string perDs3 { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 79)]
            public string perDs4 { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 80)]
            public string perDs5 { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 81)]
            public double? perEcf { get; set; }
            [XmlIgnore]
            public bool perEcfSpecified { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 82)]
            public string perEmb { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 83)]
            public string perEnc { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 84)]
            public string perFre { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 85)]
            public string perOf1 { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 86)]
            public string perOf2 { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 87)]
            public string perOut { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 88)]
            public string perSeg { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 89)]
            public string pgtAnt { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 90)]
            public string plaVei { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 91)]
            public int? prcPed { get; set; }
            [XmlIgnore]
            public bool prcPedSpecified { get; set; }
            [XmlElement("produto", Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 92)]
            public pedidosGravarPedidosInPedidoProduto[] produto { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 93)]
            public string qtdAbe { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 94)]
            public string qtdAen { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 95)]
            public string qtdAne { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 96)]
            public string qtdFre { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 97)]
            public string qtdItp { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 98)]
            public string qtdIts { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 99)]
            public string qtdMfp { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 100)]
            public string qtdOri { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 101)]
            public string qtdVpf { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 102)]
            public string rotAnx { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 103)]
            public int? seqCob { get; set; }
            [XmlIgnore]
            public bool seqCobSpecified { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 104)]
            public int? seqCto { get; set; }
            [XmlIgnore]
            public bool seqCtoSpecified { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 105)]
            public int? seqEnt { get; set; }
            [XmlIgnore]
            public bool seqEntSpecified { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 106)]
            public string seqRoe { get; set; }
            [XmlElement("servico", Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 107)]
            public pedidosGravarPedidosInPedidoServico[] servico { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 108)]
            public int? sitPac { get; set; }
            [XmlIgnore]
            public bool sitPacSpecified { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 109)]
            public int? sitPed { get; set; }
            [XmlIgnore]
            public bool sitPedSpecified { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 110)]
            public string snfNco { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 111)]
            public string somFre { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 112)]
            public string temAva { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 113)]
            public string temPar { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 114)]
            public string tipPed { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 115)]
            public string tnsPro { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 116)]
            public string tnsSer { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 117)]
            public int? usuApr { get; set; }
            [XmlIgnore]
            public bool usuAprSpecified { get; set; }
            [XmlElement("usuario", Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 121)]
            public pedidosGravarPedidosInPedidoUsuario[] usuario { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 118)]
            public string usuBlo { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 119)]
            public string usuFec { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 120)]
            public string usuGer { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 122)]
            public string verCal { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 123)]
            public string vlrAdt { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 124)]
            public string vlrBcf { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 125)]
            public string vlrBcl { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 126)]
            public string vlrBco { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 127)]
            public string vlrBct { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 128)]
            public string vlrBic { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 129)]
            public string vlrBin { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 130)]
            public string vlrBip { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 131)]
            public string vlrBir { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 132)]
            public string vlrBis { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 133)]
            public string vlrBor { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 134)]
            public string vlrBpf { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 135)]
            public string vlrBpr { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 136)]
            public string vlrBpt { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 137)]
            public string vlrBsc { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 138)]
            public string vlrBse { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 139)]
            public string vlrBsi { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 140)]
            public string vlrBsp { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 141)]
            public string vlrCff { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 142)]
            public string vlrCom { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 143)]
            public string vlrCrt { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 144)]
            public string vlrCsl { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 145)]
            public string vlrDar { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 146)]
            public string vlrDpr { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 147)]
            public string vlrDs1 { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 148)]
            public string vlrDs2 { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 149)]
            public string vlrDs3 { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 150)]
            public string vlrDs4 { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 151)]
            public string vlrDs5 { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 152)]
            public string vlrDse { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 153)]
            public string vlrDzf { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 154)]
            public double? vlrEcf { get; set; }
            [XmlIgnore]
            public bool vlrEcfSpecified { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 155)]
            public string vlrEmb { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 156)]
            public string vlrEnc { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 157)]
            public string vlrFin { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 158)]
            public string vlrFrd { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 159)]
            public string vlrFre { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 160)]
            public string vlrFum { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 161)]
            public string vlrIcm { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 162)]
            public string vlrIns { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 163)]
            public string vlrIpi { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 164)]
            public string vlrIrf { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 165)]
            public string vlrIss { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 166)]
            public string vlrLiq { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 167)]
            public string vlrLou { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 168)]
            public string vlrLpr { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 169)]
            public string vlrLse { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 170)]
            public string vlrOfe { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 171)]
            public string vlrOri { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 172)]
            public string vlrOud { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 173)]
            public string vlrOur { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 174)]
            public string vlrOut { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 175)]
            public string vlrPif { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 176)]
            public string vlrPit { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 177)]
            public string vlrRis { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 178)]
            public string vlrSeg { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 179)]
            public string vlrSic { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 180)]
            public string vlrStc { get; set; }
            [XmlElement(Form = XmlSchemaForm.Unqualified, IsNullable = true, Order = 181)]
            public string vlrStp { get; set; }
            public event PropertyChangedEventHandler PropertyChanged;
            protected void RaisePropertyChanged(string propertyName);
        }


    Fábio Bruno.

    segunda-feira, 31 de agosto de 2015 16:21

Respostas

  • Olá, Fábio!

       Acredito que a mensagem de erro está sendo exibida porque o atributo pedido da tua classe pedidosGravarPedidosIn é um array de pedidosGravarPedidosInPedido, mas tu está tentando atribuir apenas uma instância do objeto pedidosGravarPedidosInPedido, e não a coleção que ele espera. Para resolver isto, escreva o seguinte código:

    List<pedidosgravarPedidosInPedido> pedidos = new List<pedidosgravarPedidosInPedido>();
    pedidos.Add(pedidosInpedido);
    pedidoIn.pedido = pedido.ToArray();

    Espero que ajude. Bom trabalho!

    • Marcado como Resposta FábioBruno quarta-feira, 2 de setembro de 2015 14:32
    segunda-feira, 31 de agosto de 2015 16:41