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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T19:10:08+00:00 2026-06-17T19:10:08+00:00

I have created a stubbed web service to help my team implement and integration

  • 0

I have created a stubbed web service to help my team implement and “integration” test their code without traversing the full stack, which is not possible in this case.

I want to create some different scenarios for them e.g. success, different kinds of failure. One way I have thought of handling these scenarios is if a particular input is e.g. “Smith” then return one object, if “Jones” return another.

I’m wondering if this scenario mapping is too fragile but mainly how I could manage these scenarios in a nice way that would allow the devs to extend the scenarios. One idea was to serialize the possible results they expect and store them with their parameters in a repository of some sort. This means they could be added to and amended. The serialization could break though and for complex object it would be awkward.

Feel like I’m really missing something here!

  • 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-17T19:10:09+00:00Added an answer on June 17, 2026 at 7:10 pm

    I really love stubbing out things like web services during development. It allows the developers to target a system that might not be ready and still get work done. Like you said it also allows them to integrate early, which is great. When the actual service is ready, it should be easy to swap out the stubs for the actual service.

    I think it’s totally fine to create a simple/quick-and-dirty repository that mimics actual web service calls. One set of parameters comes in and then some data goes back out.

    Consider spending a few hours to write a tool that generates code/data structures for you. You can write functions that generate random data (names, addresses, whatever) and then it’s fairly easy to change parameters and re-generate stubbed data/stubbed code.

    It’s worth the work to stub stuff out because it will dramatically increase developer productivity. I wouldn’t be afraid to spend a day or two setting up something – it’ll pay off over the life of the project.

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

Sidebar

Related Questions

have created REST service using servicestack and in post request I have return object
I have created a web reference (Add Web Reference) from Visual Studio 2008 and
Have created an android test project and currently trying to write android unit tests
I have created stylish asp.net controls and have placed the source code and dll
I have created a Silverlight project which also contains a Web project. I have
We have created a spring web app. using: Spring 3.1.0 Hibernate 3.5.4 final tomcat
I have created an inherited document class, see the code below. The documents persists
I have created a windows service which is set to start automatically. This service
I have created a web application KIOSK. But my prob is suppose a user
Have created a web application with Ninject and .Net 4 (have tested both 4.0

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.