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

Ask A Question

Stats

  • Questions 349k
  • Answers 349k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Wrap your title with an a tag and append the… May 14, 2026 at 6:53 am
  • Editorial Team
    Editorial Team added an answer Due to Apple's (to put it politely) "controlling" approach to… May 14, 2026 at 6:53 am
  • Editorial Team
    Editorial Team added an answer After filing a bug report I got the answer that… May 14, 2026 at 6:53 am

Related Questions

I have a WCF service with a security class for getting some of the
I am trying to create a TreeView from the Silverlight TreeView control. I have
I have a very bad feeling about using lock in my code but now
I have a simple class called Job with a public ctor and public function
I've created the default WCF Service in VS2008. It's called Service1 public class Service1

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.