troubleshooting Question

Create a WCF object on client side

Avatar of luminas
luminas asked on
.NET ProgrammingWCFWeb Frameworks
6 Comments1 Solution569 ViewsLast Modified:
Hi,
Could someone please let me know what is needed in order to be able to create objects which were defined on the server side of WCF, in the client code.

So, basically, if I have an object "Reservation", in WCF (let's say it is hosted on a website's App_Code folder), I would want the calling code (let's say an ASPX page which is NOT in the same website) to be able to do:

Dim reservation as new RestaurantService.Reservation() ' This object is defined on the server, but I would like it to be available to me for declaration on the client side, just as methods of the service contract are.

reservation.FirstName = "John"
reservation.LastName = "Smith"
....
RestaurantService.CreateNewReservation(reservation)

This would be so much nicer than having to do:

RestaurantService.CreateNewReservation("john", "smith",... )

Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 6 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 6 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros