Hi!
I have developed both a Web Service and a client application, and they work
fine.
All classes used in the Web Service interface are declared in an assembly
named Entities, that is referenced both in the Web Service and the client
application.
The problem is that the automatically-generated Web Service proxy class
creates new classes instead of referencing the original classes.
This way, if I add a method to any of the classes in the Entities assembly,
that functionality isn't available in the client application, because the
proxy-generated classes are static snapshots of the server objects, with all
functionality lost.
There must be a way to do this, because that's what DataSets do. If you
create a Web Service that returns a DataSet, and you reference that web
service from a .NET application that knows about System.Data namespace, the
DataSet gets deserialized as a DataSet.
I suppose it must have something to do with Xml attributes or interfaces,
but I can't find which.
Any help is appreciated. Thanks in advance,
Francisco Garcia 2 1260
I have an in-depth series of articles on returning custom classes from a web
service at http://www.dalepreston.com/Blog/2005...-from-web.html.
HTH
--
Dale Preston
MCAD C#
MCSE, MCDBA
"Francisco Garcia" wrote: Hi!
I have developed both a Web Service and a client application, and they work fine.
All classes used in the Web Service interface are declared in an assembly named Entities, that is referenced both in the Web Service and the client application.
The problem is that the automatically-generated Web Service proxy class creates new classes instead of referencing the original classes.
This way, if I add a method to any of the classes in the Entities assembly, that functionality isn't available in the client application, because the proxy-generated classes are static snapshots of the server objects, with all functionality lost.
There must be a way to do this, because that's what DataSets do. If you create a Web Service that returns a DataSet, and you reference that web service from a .NET application that knows about System.Data namespace, the DataSet gets deserialized as a DataSet.
I suppose it must have something to do with Xml attributes or interfaces, but I can't find which.
Any help is appreciated. Thanks in advance, Francisco Garcia
Thanks a lot, Dale.
That solved my problem!
"Dale" <da******@nospa m.nospam> escribió en el mensaje
news:71******** *************** ***********@mic rosoft.com... I have an in-depth series of articles on returning custom classes from a web service at http://www.dalepreston.com/Blog/2005...-from-web.html.
HTH -- Dale Preston MCAD C# MCSE, MCDBA
"Francisco Garcia" wrote:
Hi!
I have developed both a Web Service and a client application, and they work fine.
All classes used in the Web Service interface are declared in an assembly named Entities, that is referenced both in the Web Service and the client application.
The problem is that the automatically-generated Web Service proxy class creates new classes instead of referencing the original classes.
This way, if I add a method to any of the classes in the Entities assembly, that functionality isn't available in the client application, because the proxy-generated classes are static snapshots of the server objects, with all functionality lost.
There must be a way to do this, because that's what DataSets do. If you create a Web Service that returns a DataSet, and you reference that web service from a .NET application that knows about System.Data namespace, the DataSet gets deserialized as a DataSet.
I suppose it must have something to do with Xml attributes or interfaces, but I can't find which.
Any help is appreciated. Thanks in advance, Francisco Garcia
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Mark |
last post by:
I built the example application outlined in this artical:
http://msdn.microsoft.com/library/default.asp?
url=/library/en-us/dnservice/html/service02112003.asp
There were a number of questions along the same lines
posted to the page's discussion forum but no one replied
with a solution.
The problem I am experiencing is with the 3rd example.
|
by: trexim |
last post by:
Hi,
I am trying to create a Web Reference for CSTA using the URL
http://www.ecma-international.org/standards/ecma-348/csta-wsdl/csta-wsdl-all-operations.wsdl
Visual .Net complains that:
"
The document was understood, but it could not be processed.
- The WSDL document contains links that could not be resolved.
- There was an error downloading
|
by: Carsten Posingies |
last post by:
Hi NG,
I've got this annoying problem:
On the server's side there's an Apache w/ PHP running. I wrote a kind of
"bare bones" SOAP implementation, though meeting the SOAP specs. Afaics
this part isn't causing the problem.
To be able to use wsdl.exe, I've tried to describe my web service wie a
WSDL file. I will post this file as soon as an expert is willing to care
|
by: Stefan Lischke |
last post by:
Hi,
I'm really desperate using code generation(wsdl.exe) from wsdl files for
latest WS-Eventing(including WS-Addressing) Specs.
I'm writing my diploma about "publish subscribe systems based on Web
Services"
I took the WS-Eventing WSDL file and added <binding>'s and
<service>'s... Then i took the apache axis wsdl2java tool and i got nice
|
by: drb |
last post by:
Hi,
Newbie question #2 - hope that's OK!
I'm trying to create a WSDL file using one or more XSD schema files. While
WSDL.exe doesn't seem to support the XSD "import" function, if I include a
single huge XSD schema file on the command line input to WSDL.exe, I can
essentially achieve the desired result. (So, first question: is it true that
WSDL.exe does not support *any* kind of <wsdl:import ...> or <xsd:import...>
function?)
| |
by: AndyO |
last post by:
Following what is found out at
http://www.gotdotnet.com/team/xml_wsspecs/dime/WSDL-Extension-for-DIME.htm
for composing my WSDL, when using the wsdl.exe, I can't seem to get around
the error message:
"Error: one or more required WSDL extension elements were ignored.
Errors were encountered. Review generated source comments for more details."
More specifically, for each of the binding places (inside
wsdl:output/wsdl:input) where I use:
|
by: Andreas |
last post by:
Hi,
Im trying to consume a webservice described by the WSDL below, however
When i try to add the WSDL it does not work, tried to run it through WSDL.EXE
It validates in XMLSpy, but WSDL.exe pukes on it, as does when i try to
use it in a Vs.Net project... Any ideas how to go forward with this?
Output from WSDL.EXE;
Error: Unable to import binding
|
by: Nick Locke |
last post by:
I have a fairly simple structure:
- Simple Types in an XSD
- Complex Types (one file) in another XSD, importing the Simple Types
- More Complex Types (second file) in another XSD, again importing the
Simple Types
- A WSDL Definitions file, importing the two Complex Types files
- A WSDL Service file, importing the WSDL Definitions file
I have put all that together with XML Spy and that seems happy. I can also
|
by: BillB |
last post by:
Hi,
I've been given a WSDL file and need to convert it to C# so that I can use
the procedures it creates, can anyone tell me how to do this?
I'm looking at doing it using Visual Studio 2005 Command Prompt with
following line of code
wsdl /l:cs /protocol:SOAP mywsdl.wsdl
any help is appreciated.
Thanks
|
by: Eternal Snow |
last post by:
Hi all.
I have some trouble by using WCF while creating WSDL.
Please follow that:
1 Create a WCF service in EXE mode (not tried in IIS), add a basicHTTPBinding and a mexHttpBinding.
2 Run it, and get the WSDL of your service. You should got something like this:
<?xml version="1.0" encoding="utf-8" ?
- <wsdl:definitions name="Service_WCF" targetNamespace="http://tempuri.org/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
| |
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |