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
Loading

try abcPosted Jan 18, 2011, 11:43 PM
Thanks for giving answer.
Now I want to know that ANDROID will support SOAP based service with kSOAP ?
IS there will be any Problem while consuming SOAP based service with kSOAP?
Bcoz we want to develop in SOAP , bcoz for REST based service we will have to change in lots of Method for [webget] attribute.
Regards,
try.test.abc
Dharmesh SharmaPosted Jan 18, 2011, 8:04 AM
try abcPosted Jan 18, 2011, 7:48 AM
Thanks for giving quick reply.
We also want to know from SOAP & REST , which will be best & easy for client to use for all new platforms for development in various smartphones ?
Regards,
try.test.abc
Dharmesh SharmaPosted Jan 18, 2011, 7:37 AM
WebGetAttribute Class[object] - answer is given in the first few lines. You can also use the WebInvokeAttribute Class[object]
Methods only and serialize and base64 encode and 32 encode