Last post Apr 29, 2014 08:59 AM by indyitman
Apr 25, 2014 10:05 AM|indyitman|LINK
I am trying to use Fiddler to test sending a POST request to a REST service that receives an XML string. It seems there are a zillion ways to do a Web.config, but although I have gotten this to work fine on localhost, doing it in IIS 6.0 yields nothing
but 404 or 500. I feel that it is probably a URI issue, but I've made so many changes, I've been going in circles. I can navigate to they service in the browser and see the wsdl data, but doing a Post doesn't work in Fiddler nor with a client app I wrote
(the client app works on localhost).
Any help is much appreciated...
Here is the Rest Service Web.config:
<?xml version="1.0" encoding="utf-8"?>
<compilation targetFramework="4.0" debug="true" />
<customErrors mode="Off" />
<serviceHostingEnvironment multipleSiteBindingsEnabled="true" />
<add baseAddress="https://example.com/root" />
<transport clientCredentialType="None" />
<serviceMetadata httpGetEnabled="false" httpsGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="true" />
<modules runAllManagedModulesForAllRequests="true" />
<directoryBrowse enabled="true" />
Apr 25, 2014 10:13 AM|MaddyBoss333|LINK
Please refer to below links:-
Apr 25, 2014 10:39 AM|indyitman|LINK
Thanks for the links, but I have a question: why in the examples is the service endpoint address either an empty string ("") or non-existent?
Also, I can browse to https://example.com/root/service.svc and view the WSDL(which is not used here), but if I browse to
https://example.com/root/service.svc/postdata I get "ContractFilter mismatch at the EndpointDispatcher", and when trying to Post XML to https://example.com/root/service.svc/postdata
in Fiddler, I get 500 Internal Server Error.
Apr 28, 2014 06:10 AM|Fuxiang Zhang - MSFT|LINK
but I have a question: why in the examples is the service endpoint address either an empty string ("") or non-existent?
Thanks for your post.
As for the wcf service with svc file, we need not set a the endpoint address to it, that because the file path is the endpoint like below.
For more information, please refer to below article.
Hope that helps, thanks.
Apr 29, 2014 08:59 AM|indyitman|LINK
Hi Zhang, thanks again for the help.
Since I will be using this service in an existing MVC application, I am going to make a switch and add a Web API POST controller instead of a separate WCF project.