473,385 Members | 1,400 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

webservices and "reuse types in referenced assemblies"

I see that this has been asked before, but there seem to be no
(working) resolutions.

I want to share the exact types used in webrequests between the client
and the server. The proxy is too pale a representation of the actual
class used by the server: there are useful functions like ToString
overrides etc that I want the client to use.

So when I create the service reference (VS 2008) I check the advanced
option to reuse the types, making sure that the assembly containg the
types and their interfaces is referenced. But the generated
resources.cs seems to be pretty much identical to without.

I have been able to modify the file to make it use the referenced
assembly, but then of course it gets overqritten if you update the
service reference. It seems to me that what I want is exactly what is
promised by that option, but it fails to do anything when selected. Is
there something that I am missing? Has anyone managed to get this to
work?

Thanks
Jun 27 '08 #1
2 2833
On Apr 22, 12:35*am, davidkclark <davidkcl...@gmail.comwrote:
I see that this has been asked before, but there seem to be no
(working) resolutions.

I want to share the exact types used in webrequests between the client
and the server. The proxy is too pale a representation of the actual
class used by the server: there are useful functions like ToString
overrides etc that I want the client to use.

So when I create the service reference (VS 2008) I check the advanced
option to reuse the types, making sure that the assembly containg the
types and their interfaces is referenced. But the generated
resources.cs seems to be pretty much identical to without.

I have been able to modify the file to make it use the referenced
assembly, but then of course it gets overqritten if you update the
service reference. It seems to me that what I want is exactly what is
promised by that option, but it fails to do anything when selected. Is
there something that I am missing? Has anyone managed to get this to
work?

Thanks
Did you have any luck? I am trying the same and it does not work.
Jun 27 '08 #2
Any luck? I am facing the same issue

"davidkclark" wrote:
I see that this has been asked before, but there seem to be no
(working) resolutions.

I want to share the exact types used in webrequests between the client
and the server. The proxy is too pale a representation of the actual
class used by the server: there are useful functions like ToString
overrides etc that I want the client to use.

So when I create the service reference (VS 2008) I check the advanced
option to reuse the types, making sure that the assembly containg the
types and their interfaces is referenced. But the generated
resources.cs seems to be pretty much identical to without.

I have been able to modify the file to make it use the referenced
assembly, but then of course it gets overqritten if you update the
service reference. It seems to me that what I want is exactly what is
promised by that option, but it fails to do anything when selected. Is
there something that I am missing? Has anyone managed to get this to
work?

Thanks
Jun 27 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Phil Powell | last post by:
class DepartmentTree { function &buildTree($id) { static $html; if (!isset($html)) { // DO STUFF HERE TO $html } // DO MORE STUFF if ($condition_is_met) $this->buildTree($newID);...
4
by: yf | last post by:
A KB article "http://support.microsoft.com/default.aspx?scid=kb;en-us;209599" tells that the maximum number of records that a table may hold if the PRIMARY key data type is set to AUTONUMBER is...
0
by: antsays | last post by:
I am trying to serialize a collection to disk using the code provided. This works just fine but when I try do copy and past the xml file to another location or sometimes even just click on the...
1
by: BillyMac | last post by:
Hello I emply a "plug-in" architecture for a .NET Windows service. At OnStart, the service browses for DLL's in in sub-folders and loads them dyanamically using Assembly.LoadFrom() The...
1
by: Pascual ataeda | last post by:
Hello, According to the MSDN documentation, FieldInfo.GetValue throws a NotSupportedException if “A field is marked literal, but the field does not have one of the accepted literal types”. ...
2
by: Florian G. Pflug | last post by:
Hi Since sometime yesterday, my postgresql (7.4.5) reports "ERROR: cannot compare arrays of different element types", when I analyze a specific table in my database. Here is the tables...
1
by: Nilam2477 | last post by:
While running my application i got following error in Application log Faulting application .exe, version , faulting module mfc42u.dll, version 6.2.8071.0, fault address 0x0000239d. Corresponding...
5
by: kp | last post by:
Hi, I am compiling on an AIX 5.1 box and my test machine is AIX 5.3. I run the foll. steps for compiling my test binary "test" /usr/vacpp/bin/xlC test.c -c -o test.o -I/home/jag/progs/include...
4
by: Robert Cramer | last post by:
I am needing to create a sort of "plug-in architecture" whereby different Web sites I maintain on the same server have slightly different functionality. Some Web sites will need to use the...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.