Reputation: 11
http://domain.eastus2.cloudapp.azure.com:19080/MyCalculatorApplication/AgeCalculatorService/api/values throws exception as {"Error":{"Code":"E_INVALIDARG","Message":"Invalid argument"}}
Upvotes: 0
Views: 505
Reputation: 11
When you are trying to use the naming service of service fabric, first you should resolve the endpoint using this url:
http://domain.eastus2.cloudapp.azure.com:19080/Services/MyCalculatorApplication/AgeCalculatorService/$/ResolvePartition?api-version=3.0&PartitionKeyType=1&timeout=60
Then you can use one of the endpoints
Upvotes: 1
Reputation: 226
I'm not sure that this is the correct endpoint. Your url should be something like this: http://domain.eastus2.cloudapp.azure.com:SERVICEPORT/api/values
Upvotes: 0