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

  • Home
  • SEARCH
  • 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 565237
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T12:51:03+00:00 2026-05-13T12:51:03+00:00

I have a WCF service that will be called from a HTML form located

  • 0

I have a WCF service that will be called from a HTML form located in the customer’s network.

When the same form is posting the exact same data to an ASP page it expects a response like:

Response.Write “SUCCESS” & vbnewline

How can I send the same response from my WCF service?

Thanks.

  • 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-05-13T12:51:03+00:00Added an answer on May 13, 2026 at 12:51 pm

    A WCF service can return any type of data, really. That covers basic primitive types like int or string, but you can also create more advanced composite types (classes) and send them back.

    HOWEVER: WCF is not designed to return HTML markup – that would be the totally wrong approach to things. WCF is a service – a service provides some functionality, you send in some data/parameters, you get back some data/output types.

    WCF should not and must not ever be concerned with the actual representation of that data on the user’s end – that’s the job of your user interface – the ASP page or whatever you’re dealing with.

    So you could have a WCF service like this:

    [ServiceContract]
    interface IMyService
    {
      [OperationContract]
      string SomeServiceMethod(string someInput);
    }
    

    and then call that from your client code something like this:

    string result = MyService.SomeServiceMethod("Hello!");
    

    but you should not ever write a WCF service that returns HTML markup or any other system-specific information.

    And since WCF is a message-based system, the WCF service has absolutely no connection to your ASP page – it cannot participate in the ASP lifecycle or access the “Response” object or anything like that.

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

Sidebar

Related Questions

I have a simple WCF service that I call server side from code behind
here's the setup for the project. I have a WCF Service that is hosted
I have a WCF service with a security class for getting some of the
I've created the default WCF Service in VS2008. It's called Service1 public class Service1
Working with Linq2Sql as a driver for a Wcf Service. Lets go bottom up....
I am trying to create a TreeView from the Silverlight TreeView control. I have
I need to deploy a silverlight 4 soltution where it consumes data from a
My scenario is this - I have two ASP.net websites. Both sites run on
Does anyone know how best to determine the specific underlying cause of this exception?

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.