Back to list
Views:   5.8K
Replies:  1
Archived

Calling Method

Is there a way to not call the code below. I just want to give the URL to where the service is located without telling them to inlude this method in their project or does that have to be included?

example:

var

but Client gets instatiated by the protected method below. Want to make it as easy as possible for someone to use my service.

Thanks

response = Client.GetDocuments(request);
Dennis Tucker, Aug 11, 2011
Would a simple public static method to your class work? respose = YourClass.Method(request); and then in that method you hide all the details.
Aug 18, 2011
Reply 1

Would a simple public static method to your class work?

respose = YourClass.Method(request);

and then in that method you hide all the details.
Danut Prisacau, Aug 18, 2011
Yeah agreed.. In fact I am evaluating an alternative framework for a specific requirement, and I am inclined towards Rails or Django. Both are great to work with.
Mar 08, 2011


Stay Inspired!
Join other developers and designers who have already signed up for our mailing list.
Terms     Privacy     Licensing       EULA       Sitemap      
© Data & Object Factory, LLC.
Made with    in Austin, Texas