WCF: calling a service using a parameter in a URL with &

I have a WCF service with a URL pattern, for example ..

http://localhost:8448/service/SearchProduct/{productid}/{categoryid}/{search}/{pageSize} /{currPage} 

Here I want to call this service path, using parameters in the URL, for example ..

 http://localhost:8448/service/SearchProduct/?productid=10&categoryid=34&search=newproducts&pageSize=10&currPage=5 

But when I call the service using the above path, I got the exception "Endpoint not found".

Could you tell me what I would call this service using the transfer parameter in the URL with &categoryid=10&currPage=10 ??

Thank Advance

+7
source share
1 answer

Try changing your URI pattern as follows:

 http://localhost:8448/service/SearchProduct/?productid={productid}&categoryid={categoryid}&search={search}... 

He should work

+6
source

All Articles