.net - get Composite Type into WSDL even though it is not in service interface -


i have simple dto defined, datacontract , datamember attributes, of datamembers integers. returning list of worked fine. compressing list , returning byte array. service no longer returns dto part of interface, not generate class in service reference. cant uncompress have no type work on client side.

i using visual studio generate service reference.

all of examples seem exposing known type class has class 1 of properties. declare type , known type, or using inheritance etc. want declare type.

i have tried many things including

<datacontractserializer>   <declaredtypes>     <add type="pgf.business.customercropyeardto, pgf_externalservice">     </add>   </declaredtypes> </datacontractserializer> 

here abbreviated version of class.

<datacontract()> public class customercropyeardto      <datamember()> public property customercropyearid integer end class 

i working in vb c# answer fine.

hum.. if understanding well, changed dto include binary , trying handle compression during object instantiation before service invoke. right?

the gzip compression can handled in message level. try keep data contract "real properties" (instead of byte array) , create custom binding gzip compression. there wcf sample here (navigate "wcf/extensibility/messageencoder/compression/cs").


Comments

Popular posts from this blog

java - JavaFX 2 slider labelFormatter not being used -

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -