TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Louis Botterill
NA
1
0
Rest style web services using .Net 3.5 wcf web programming model
May 27 2008 11:32 AM
Hi, I wonder if anyone can help me. Imagine I've got some existing Rest (non soap/wsdl) web services and I want to create a desktop client to use them.
I've been trying to use the WCF web programming model but I've come across some issues.
1. my services are of the form xyz/myService.go?someParams - I can't seem to find a way to handle the .go in the [ServiceContract] interface operation contract name.
2. If I supply more than 1 parameter to the operationcontract definition I get an error at run time of the form:
"Operation 'login' of contract 'IService' specifies multiple request body parameters to be serialized without any wrapper elements. At most one body parameter can be serialized without wrapper elements. Either remove the extra body parameters or set the BodyStyle property on the WebGetAttribute/WebInvokeAttribute to Wrapped."
- and I'm not quite sure what I'm meant to do to fix that, do I have to provide serialisation code, should I best create a structure to contain parameters in one type?
Ideally I'd like to create a c# client interface from a WADL document, but there are no tools/support for that in VS2008 pro?
Reply
Answers (
0
)
How to a object array parameter of a WebService/WebMethod to accept DBNull ?
help in web services