Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7717361
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T02:52:42+00:00 2026-06-01T02:52:42+00:00

So my previous question revolved around turning wcf into a restful service convert a

  • 0

So my previous question revolved around turning wcf into a restful service convert a WCF Service, to a RESTful application?, which I managed to do with some help!

But I am running into a new problem from my client:

There was no endpoint listening at http://localhost:26535/Service1.svc that could accept the message.
This is often caused by an incorrect address or SOAP action. See
InnerException, if present, for more details.

Now the restful service runs as can be seen from a screen dump:

enter image description here

And I can add from the url the value 1 like so:

enter image description here

But yet I cant seem to run it on another new instance of visual studio, my client app.config looks like this:

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
    <system.serviceModel>
        <bindings>
            <customBinding>
                <binding name="WebHttpBinding_IService1">
                    <textMessageEncoding maxReadPoolSize="64" maxWritePoolSize="16"
                        messageVersion="Soap12" writeEncoding="utf-8">
                        <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
                            maxBytesPerRead="4096" maxNameTableCharCount="16384" />
                    </textMessageEncoding>
                  <httpTransport></httpTransport>
                </binding>
            </customBinding>
        </bindings>
        <client>
            <endpoint address="http://localhost:26535/Service1.svc" binding="customBinding" bindingConfiguration="WebHttpBinding_IService1"
                contract="ServiceReference1.IService1" name="WebHttpBinding_IService1" />
        </client>
    </system.serviceModel>
</configuration>

Client code:

namespace WindowsFormsApplication1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {

        }

        public ServiceReference1.Service1Client testClient = new ServiceReference1.Service1Client();
        private void button1_Click(object sender, EventArgs e)
        {
            label1.Text = testClient.GetData(Convert.ToInt32(textBox1.Text));
        }
    }
}

I was looking at previous problems in this area on SO here: WCF – "There was no endpoint listening at…" error

But it provides no solution? Im not familiar with hosting on IIS or what not this is just practice so having it work on debug (F5) would be zer goood!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T02:52:44+00:00Added an answer on June 1, 2026 at 2:52 am

    This might actually be due to the change to the REST service.

    Try removing/commenting out this from your host config

    <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>
    

    It seems that REST does not pass over any metadata (thus the removal of the mex)

    If you then reset your service reference, it should work properly…I believe.

    Also, this article might prove useful

    If you are able to use a third party, then I would suggest using RestSharp. It makes consuming RESTful services extremely easy 🙂

    Or you could use the newer WebAPI that can make these calls more direct also? The problem is that RESTful services are not as easily consumed the way SOAP calls are/were

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This question relates to my previous question which asks about loading a page into
My previous question broght up some discussion which suggested that I am wrong to
This question is related to my previous question: Android Service - Ping URL So
This question is in continuation to my previous question, in which I asked about
My previous question about this subject was answered and I got some tests working
This question follows on from a previous question which can be found here: Need
After my previous question I have managed to Add and Ad banner to my
Previous question which links onto this and has any addition code ref should I
This question is related to a previous question of mine to which I couldn't
Previous question was to encode two Int32 into one Int64 [ C# - Making

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.