RE: Soap class definition question
- From: Scott <snorberg@xxxxxxxxxxxxxxxxx>
- Date: Mon, 9 Mar 2009 07:45:03 -0700
Steven,
I have already moved this whole project over to wcf service(s) and use a
common dll with the class definitions. This approach works good and gives me
the flexibility I need for this type of work.
Thanks.
--
Scott Norberg
""Steven Cheng"" wrote:
Hi Scott,.
Thanks for your reply.
Yes, for the "standard webservce" proxy, it hasn't provided support on
reusing types(defined in a referenced or specific assembly) like what WCF
client proxy uses.
For your scenario, I think you can consider the following approaches:
1. still us the standard webservice "add WebReference" to generate
webservice client proxy. However, after generated the proxy code, you can
directly dig into the source code(Reference.cs ..) and change the type from
its autogenerated one to your shared common types. However, such change
will be overwritten when you upcate the webservice. To resolve the problem,
you can consider use partial class file to do the change or use wsdl.exe to
generate the proxy in commandline. Here is a article introduce some on this:
How to customize the Web Service proxy generated by wsdl.exe (or add web
references)
2. If using .NET 3.X is ok for your case. You can consider use "Add
ServiceReference" to generate a WCF proxy to consume the webservice. And
the WCF proxy generation support type sharing(in referenced assemblies or
in specified assemblies). It doesn't limit to TCP port only.
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@xxxxxxxxxxxxxx
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/en-us/subscriptions/aa948868.aspx#notifications.
Note: MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 2 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions. Issues of this
nature are best handled working with a dedicated Microsoft Support Engineer
by contacting Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/en-us/subscriptions/aa948874.aspx
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
From: =?Utf-8?B?U2NvdHQ=?= <snorberg@xxxxxxxxxxxxxxxxx><#Fb2fyVnJHA.5108@xxxxxxxxxxxxxxxxxxxxxx>
References: <BFB6A67A-EB7D-4D09-9322-32C793C25FAF@xxxxxxxxxxxxx>
Subject: RE: Soap class definition question
Date: Thu, 5 Mar 2009 07:53:01 -0800
Steven,available
Yes, we use the the standard web service client proxy, and it does pick up
the custom types from my common assembly. BUT the exported types,
from the proxy are under a different namespace, generallysince
program.reference.class. That makes the common class definition useless
the name is different, the class is different and you need to copy datafrom
one class to another just to get it to work. This is not the way to re-uselive
anything :-(
I looked at the codeproject article. That example uses a tcp transport not
soap. We may need to go that way just to make this thing work, or just
with copying classes everytime we need to reference the soap service.can
In this project there are actually 3 tiers. The client, the front end
service and a back end service. It would really be nice [required] that I
create a class in the client, pass it to the front end service and thenhave
that SAME class sent to the backend service. The way this appears to workthe
that structure is not possible.
What is the recommended way to do the above using soap web service with
standard proxy generation?
--
Scott Norberg
""Steven Cheng"" wrote:
Hi Scott,
- Follow-Ups:
- RE: Soap class definition question
- From: "Steven Cheng"
- RE: Soap class definition question
- References:
- Soap class definition question
- From: Scott
- RE: Soap class definition question
- From: "Steven Cheng"
- RE: Soap class definition question
- From: Scott
- RE: Soap class definition question
- From: "Steven Cheng"
- Soap class definition question
- Prev by Date: Re: load tree view from xml
- Next by Date: Re: Please help with getting the right structure from dataset using GetXML()
- Previous by thread: RE: Soap class definition question
- Next by thread: RE: Soap class definition question
- Index(es):
Relevant Pages
|