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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T08:26:51+00:00 2026-05-16T08:26:51+00:00

I have an application which consumes a WCF Service. I have no access to

  • 0

I have an application which consumes a WCF Service. I have no access to the source code to the service I’m consuming and I can’t connect to it directly as it’s internal to part of a companies network.

I have the necessary Service Reference and a number of sample XML requests and responses. What I’d like to know is how can I create/mock a service response from these XML files for testing? Or is there an alternative?

Thanks,
JJ

  • 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-16T08:26:52+00:00Added an answer on May 16, 2026 at 8:26 am

    Service reference should contain all necessary contracts. So you should be able to create fake implementation of the service from its service contract and related data contracts. But your client code can’t access service proxy directly. Wrap service access in wrapper class implementing service contract and inject that wrapper into your client code. Than you can easily mock that wrapper.

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

Sidebar

Related Questions

I have put together a .net winform application which consumes a wcf service exposed
I have a wpf application, which consumes wcf service. I wish to catch any
We have developed a web application which consumes a web service. The user will
I have a Silverlight app that consumes a WCF service in my asp.net application.The
We have a application which is triggered from browser. This application consumes around 800
I have an application which uses code that produces various types of objects and
I have created one WCF service , which is working fine, now i want
I have a WCF-REST service with one method which returns a string: [ServiceContract] public
System Description: I have a WCF service (self hosted in a windows service) which
Please advise me on this. I have both Wcf service (which will be responsible

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.