IIS hosted WCF Service return HTTP 400 Bad Request

前端 未结 4 436
醉酒成梦
醉酒成梦 2021-01-02 00:58

I have been searching for hours, but I could not find the solution. I will explain briefly.

I am learning WCF Services. I have just created a service and browse it.

4条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-02 01:53

    This may be of help. ive just spent over 2 hours trying to get this working. i use FF and its set as the default browser.

    in FF it was adding a / on the end of my URL

    http://services.tester.dev/VehicleFeedService.svc/
    

    which returned a NetworkError: 400 Bad Request

    however in IE or chrome, it doesnt put the / on the end and it works fine.

    one thing to note.. even in FF which was giving me a 400 bad request, the ?wdsl did work

    http://services.tester.dev/VehicleFeedService.svc?wsdl
    

    it appears that the / was causing the issue

提交回复
热议问题