Making an interface visible across WCF web services -



Making an interface visible across WCF web services -

i declare interface in web service layer , have caller create objects of interface type via proxy , utilize them phone call service methods. however, when decorate interface datacontract attribute, error saying attribute can applied class, struct , enum. don't think servicecontract attribute makes sense, interface trying expose used info transfer purposes. noticed when interface decorated servicecontract, wasn't displayed in proxy class created. best practice go this?

you cannot that. "datacontract" interface cannot exposed part of metadata. if share interface (in assembly) clients not able send implementation service because receiving side needs real type deserialized instance.

wcf

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -