try abc

try abc

  • 1.1k
  • 306
  • 487.3k

How to create SOAP , REST in same webservice ?

Jan 18 2011 7:09 AM
Hello ,

According to client requirement , we have to generate both SOAP, REST (JSON , XML )output  in same webservice for future expansion in Android , iPhone Appluications etc.

1) So Is it possible to create webservice in WCF which give us both SOAP & REST Services ?

2) Also is it possbile to create REST Service without use of WebGet Attribute ??

3) Also if i want to use Property & Method in same class then how to use it.
    I want to keep separate class only for interface , not for property.
    Also we have tried with [OperationContract] before get ,set . it solved our issue but throws error while build a  .svc file .

4) Also is it possible to pass object in URL for REST Services ? If yes then how ? otherwise How we pass whole entityclass ?


We believe there are more questions but plz give answer.

Regards,
WCF Beginner

 

Answers (4)