Questions tagged [uritemplate]

80 questions
0
votes
3 answers

Stop URITemplate expansion when using Spring RESTTemplate

I am using the Spring RestTemplate to make calls to a Apache Solr index. I form a request string manually and don't supply any intentional {variable_name} template expansion variables. Part of the query is the term {!lucene q.op=OR}. Unfortunately…
nialloc
  • 1,153
  • 1
  • 12
  • 23
0
votes
1 answer

Why is Synapse not expanding a variable in a uri-template?

I have a WSO2 ESB 4.8.1 sequence which sends a message to an HTTP endpoint defined as The property is previously set by XPath:
Peter Taylor
  • 4,560
  • 1
  • 32
  • 57
0
votes
1 answer

Long complicated URIs

I have a webservice to give access to some resources on a network. The service has a method to look for the resource and returns the path of the resource. Another method, send to request to the webservice with this path. I try to pass the entire…
Debby
  • 23
  • 2
  • 7
0
votes
1 answer

How to set UriTemplate a Web Service?

How to set The UriTepmlate Attr like that: /FunctionName?{json_data} because the person who is working With this web service whats to call that way for example: http://localhost/xxx/service/Func?{"x":"aaa","y":"bbb"} I tried…
kudra
  • 124
  • 1
  • 14
0
votes
2 answers

Url doesn't allow underscore,slash(:\) in value field

I am developing a wcf rest service application,below is my uriTemplate. http://localhost:50782/PhotoManager.svc/UploadPhoto/?fileName={fileName}&description={description} Below is my url that is from client…
user4391070
0
votes
1 answer

WSO2 API Manager v1.8.0

I have a simple use case of mapping path param from the API consumer to the backend API endpoint. I have done a lot of research but have not found out the specific answer on how to do that. As per my understanding, thr mapping of the path parameter…
dave
  • 91
  • 6
0
votes
1 answer

Unable to invoke rest web service

I am just trying out a sample rest service example. My rest service class is : @Path("oauth") public class OauthClass { private static Map oAuthBeanMap = new HashMap(); static { OauthBean…
Roy
  • 1,187
  • 1
  • 20
  • 59
0
votes
1 answer

Why are my template variables allegedly missing from my YQL query?

I'm trying to hide an API key within a YQL query. To do so, I've tried following this post (also explained by the same author here). When I try and run a query using the URI template, I get the following warning returned: "warning": "Missing…
JohnB
  • 1,221
  • 1
  • 18
  • 32
0
votes
1 answer

can WCF JSON WebService operation with non-string parameters be called from browser?

I understood that UriTemplate supports only string parameters unless you have them in form like below (id={id} etc.). Here for example: Can I pass non-string to WCF RESTful service using UriTemplate? However I can't make the following work. Even if…
char m
  • 6,390
  • 14
  • 58
  • 96
0
votes
1 answer

Difference between UriTemplate parameters and method parameters

Consider the code [WebInvoke(UriTemplate="/{memId}/{username}")] [ServiceContract] void Method(string strMemId,string strUname) { // my code goes here } Are the parameters present in the UriTemplate,the same to the method parameters? If not, when…
Sandeep
  • 258
  • 1
  • 6
  • 21
0
votes
2 answers

WCF Rest Help Page

How can I update a WCF REST services UriTemplate to be www.mysite.com/... instead of the system name http://mysystem/... When I go to the service help page I see the system name and I don't want the end user to see…
Chris Klepeis
  • 9,204
  • 16
  • 80
  • 147
0
votes
1 answer

OperationContract Name and UriTemplate

I create a service method. This have OperationName and UriTemplate. I am confusing this 2 names based on my scenario. [OperationContract(Name="MyMethod")] [WebGet(ResponseFormat = WebMessageFormat.Json, UriTemplate = "/MyMethod/{p1}")] …
Akhil
  • 1,601
  • 2
  • 25
  • 65
0
votes
1 answer

Complex UriTemplate for WCF

I am totally new to WCF and web services. I need to create a REST based wcf service for which I have got the sample walkthrough from code project. I would like have the Uri Template like …
0
votes
1 answer

Strange behavior with WCF WebGetAttribute's UriTemplate property

I'm done banging my head on the keyboard for this one. I have a WCF client project that can be used to hit the Yahoo GeoPlanet service. One of their endpoints for free-text querying can be represented like so: [OperationContract(Name =…
danludwig
  • 45,241
  • 21
  • 150
  • 230
0
votes
1 answer

Multiple Uri Template while creating rest service in wso2 esb

I have created a rest service as:
Roy
  • 1,187
  • 1
  • 20
  • 59