-1

my wcf web service working fine when i can pass string parameter in browser(iis published) below

http://192.168.xx.xx/Service1.svc/insert?name=ali&contact=123&addres=some

but in android using retrofit i can't.here i can pass in android side

String ROOT_URL = "http://192.168.xx.xx/Service1.svc/insert";

@POST("/Service1.svc/insert")

any one help me please....

1 Answer 1

0

Your ROOT_URL should be http://192.168.xx.xx. Otherwise your app will try to call http://192.168.xx.xx/Service1.svc/insert/Service1.svc/insert.

1
  • its working fine. can i post multiple values against one key in retrofit?
    – Mehmood
    Jan 15, 2019 at 14:33

Not the answer you're looking for? Browse other questions tagged or ask your own question.