Bandyta, panasu, kad WCF bugas, kuris pasireiskia prie tam tikro binding konfiguravimo, o as deja jo keisti neagaliu "E, a girdz?" <a@b.c> wrote in message news:h354qa$ggo$1@trimpas.omnitel.net... > pabandyk sukeist vietom: > > buffer = message.CreateBufferedCopy( Int32.MaxValue ); > > Message copy = buffer.CreateMessage(); > > // do stuff with copy... > > message = buffer.CreateMessage(); > > > > "vzik" <mariakas@delfi.lt> wrote in message > news:h34fo9$fgf$1@trimpas.omnitel.net... >> Tai kad visas internetas taip rekomenduoja daryti, norint ka nors >> nuskaityti is messago bodio >> >> "Audrys" <oginiekienoreikalaskokiadeze@takas.lt> wrote in message >> news:h34fju$f8m$1@trimpas.omnitel.net... >>> tai gal nekurt kopijos? >>> >>> "vzik" <mariakas@delfi.lt> wrote in message >>> news:h34fb5$ere$1@trimpas.omnitel.net... >>>> Sveiki, >>>> >>>> Klausimas apie WCF. Gal kas netycia susidure. >>>> >>>> Reikia realizuoti custom IDispatchOperationSelector, kuris selectina >>>> operacija pagal message body. Taciau, kad ir kaip bebandyciau is body >>>> issitraukti reikalinga info vis gaunu >>>> >>>> "This message cannot support the operation because it has been copied." >>>> >>>> Kur ieskot kabliu? >>>> >>>> >>>> >>>> public string SelectOperation(ref System.ServiceModel.Channels.Message >>>> message) >>>> >>>> { >>>> >>>> MessageBuffer buffer = message.CreateBufferedCopy(Int16.MaxValue); >>>> >>>> message = buffer.CreateMessage(); >>>> >>>> return buffer.CreateMessage().GetReaderAtBodyContents().LocalName; >>>> >>>> } >>>> >>>> >>>> >>>> >>>> >>> >>> >> >> > >