Click here to Skip to main content
15,891,033 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hey there,
i am new to restful services.

I have a piece of code in 'ServiceContract' interface:
C#
[OperationContract]
[WebInvoke(UriTemplate = "/NewUser")]
bool CreateNewUser(UserFullInfo newUser);


is exposed good at service reference as:
C#
CreateNewUser(DoDoodles.DoodleService.UserFullInfo)

but if i change it to
C#
[OperationContract]
[WebInvoke(UriTemplate = "/NewUser")]
UserCreateStatus CreateNewUser(UserFullInfo newUser);

where UserCreateStatus is enum (DataContract) service reference definition for the same changes to:
C#
CreateNewUser(DoDoodles.DoodleService.CreateNewUserRequest request)

where is this CreateNewUserRequest coming from and why is it changed?
How can i rectify this and use the UserFullInfo object in a simpler way?

Thanks in advance!!
Posted
Updated 4-Jul-12 22:51pm
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900