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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T16:29:12+00:00 2026-05-31T16:29:12+00:00

What is considered the best way to expose a type to another application over

  • 0

What is considered the best way to expose a type to another application over the web?

I know that this is possible by creating a type defined in a web service (WCF). Although, the consuming application wouldn’t actually be making any method/service calls. Would it still be advisable to do this? Is there a better alternative?

Edit 1:
There is a website that needs to invoke our PC application. We are using a custom registered protocol which will allow them to pass query-string parameters to us. Many of these parameters are currently defined as Enum types. My goal is to expose these types so that the calling website is able to serialize the data and pass it via the query string safely.

Edit 2: Would JSON be a good way to achieve this? I haven’t really delved into it too much but reading an overview seems like it would be a great alternative to what I’ve been rambling on about 😉

  • 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-31T16:29:13+00:00Added an answer on May 31, 2026 at 4:29 pm

    If you are asking about exposing complex types for webservices:

    My webservices have either simple standard types linke integer or boolean or strings that contain xml for complex data.

    the xml can be described by xsd-files to verify the content. There are also tools for many platforms that generate source code from xsd for the objectmodell. (i.e xsd.exe for Dotnet) there

    > Best practices for exposing types over the web
    

    I would use xsd.

    If you want your api with structred types insted of xml you have to process yourself the article Contract-First Web Services my be helpful

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

Sidebar

Related Questions

Is there a way in Cocoa that is currently considered best practice for creating
What is currently considered the best way to clear CSS floated elements that will:
What would be considered best practice in this case. I've got a class that's
Three SHA512Managed related questions: Is SHA512Managed considered the best one-way hash available in .NET
Hmmm. Consider this program, whose goal is to figure out the best way to
Would it be considered best practice to use a single template that changes it's
It's widely considered that the best reason to validate one's HTML is to ensure
What is the best way to obtain a simple, efficient immutable queue data type
What is the best way to organize code that belongs to the same project
What is considered the best way of handling multiple NSTableViews without using Cocoa Bindings?

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.