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…
![](../../users/profiles/187419.webp)
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:
![](../../users/profiles/573420.webp)
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…
![](../../users/profiles/362973.webp)
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…
![](../../users/profiles/1969386.webp)
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…
![](../../users/profiles/4421694.webp)
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…
![](../../users/profiles/2074662.webp)
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…
![](../../users/profiles/1832306.webp)
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…
![](../../users/profiles/218640.webp)
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…
![](../../users/profiles/1249558.webp)
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…
![](../../users/profiles/71904.webp)
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}")]
…
![](../../users/profiles/1882844.webp)
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
…
![](../../users/profiles/1662776.webp)
sivabalaguru
- 39
- 2
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 =…
![](../../users/profiles/304832.webp)
danludwig
- 45,241
- 21
- 150
- 230