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 6797543
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T18:37:19+00:00 2026-05-26T18:37:19+00:00

We are builing a WCF Service which takes a message string as XML, does

  • 0

We are builing a WCF Service which takes a message string as XML, does some processing on the XML and returns XML. We are looking into the idea of adding JSon results (and requests) as an option for users. And i have a question about how to impliment this

Since the service returns a string at the moment, containing the message in XML, i was thinking of adding a new paramater to the Method: Format. if this is XML, parse the incomming message as XML, do the magic and then return XML (much like what it is doing now). If that format is JSON, parse the JSON, do the Magic and return JSON… This will be as pluggable as posible: parse the input and turn into POCOs and pass on to the processing system, which returns POCOs to a Serilizer (for want of a better word) and return the text (be it XML or JSON currently) to the user.

Is this the correct way of doing this? The service is not a WCF Rest Service. We only have 1 method, and the Message we recieve is changed based on task being sent in. is this the right way to do this? any other sugestions?

  • 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-26T18:37:19+00:00Added an answer on May 26, 2026 at 6:37 pm

    WCF has 2 extensibility points that sound perfect for just such a situation: custom message inspectors and message formatters.

    Incidentally, Carlos Figuera has a very good blog, which you may find useful if you use these extensibility points.

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

Sidebar

Related Questions

I'm building a WCF web service which returns a composite object that looks similar
When building a WCF service for a large scale application, which is better: In
We building a static dll which is consuming a WCF services (has a service
I'm working with a WCF service in Azure, which uses Windows Live ID authentication
I have a WCF service which I am trying to use to generate an
I am building a WCF service interface for an existing Windows service process. The
I have a self hosted TCP based WCF service. I am now building a
I am building a REST service on WCF, and one of the methods I
I am building a Web service using WCF as a way to provide access
i'm builing this php script which displays a given folder 's children folders and

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.