Solved

C# web reference mock data

Posted on 2010-11-15
1
754 Views
Last Modified: 2012-05-10
If I want to mock data coming from Java webservices (actually add to data already coming from web services), how can i do it. Remember, I just want to add to data that is already coming from teh web services, so I cannot point to another mock services.
0
Comment
Question by:vivekj2004
1 Comment
 
LVL 18

Accepted Solution

by:
Richard Lee earned 500 total points
ID: 34143775
I am not sure I understand the question. More details would be required to receive a comprehensive solution.

If you have data coming from a web service then this data is put together by the service and then passed to the client (you). If the data needs to be added before it reaches you then the web service needs to be modified. If the data needs to be modified by the client (you) then just do it.

I assume you have consumed the web service by adding a web reference to your application. This would mean that you are calling the service methods by the proxy class that visual studio has created for you. These methods would return data using a managed type. You can thus easily modify the result/result set with c#

More details required for a customised solution.

DaTribe
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Extention Methods in C# 3.0 by Ivo Stoykov C# 3.0 offers extension methods. They allow extending existing classes without changing the class's source code or relying on inheritance. These are static methods invoked as instance method. This…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question