Мысли вслух…

WCF RESTful service, How to pass url as argument for GET method?

Автор: Сен.11.2012 Категория: Development

Hi all,

Today I found that I need to pass url as argument to my WCF RESTful service. At first I found that I handled exception when you try to pass argument as encoded url.

Solution is too simple, modify your UrlTemplate with named arguments.

Like this — UriTemplate = «Service?a={url}&b={filename}»

:

Leave a Reply

:bad: :beer: :biggrin: :blink: :blush: :bomb: :confused: :cool: :crazy: :cry: :dont_know: :eek: :evil: :dance: :heart: :idea: :joke: :kiss: :lol: :mad: :music: :rose: :sad: :smile: :surprised: :tongue: :yahoo: :wall: :wink:
 

Поиск

Список друзей