1
votes

I'm trying to call ServiceStack service from a console app with a service reference client (generated after using Add Service Reference in VS 2010).

I looked at the sample at github but was unable to create a similar client code.

My objective is to provide a set of services with a simple API that can be called by a .NET client as easy as possible. Ideally, client should not need any knowledge of ServiceStack to call the services.

My questions are:

  • How should I create request if the service does not need any parameters?
  • How can I resolve proxy.Properties?

Here is the gist

2
Looks like proxy.Properties is not needed. - Alper

2 Answers

1
votes

Got it working, updated gist Removed properties, version, request

1
votes

You can use SOAP/WSDL's Add Service Reference but you should be mindful of SOAP's Limitations.

Although the current recommendations for client libraries is to use your preferred choice of ServiceStack's built-in generic service clients.