473,659 Members | 2,640 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how is client side DTO created from wsdl driven contract?

I am starting to get the idea...the xsd's feed the service layer operations
and messages. I am beginning to understand it at the abstract level. But at
implementation, when the client references a web service, the wsdl is
referenced, then the client binds through a proxy to the web service. My
question is, "How is the same object created(and hydrated) on the client
side that existed on the server side before it was serialized?" How does the
"newing up" happen? If there is no class sitting on the client to
instantiate, does it get the class from the wsdl? There must be in the xsd
portion of the wsdl, the data elements which will be turned into an object.
But when and where does that happen. When and how is the customer object
created on the client and then filled up with the data values? Thank
ou. -hazz
Dec 15 '05 #1
1 2952
In some cases, the proxy class generated by WSDL.exe uses a least common
denominator approach for casting objects to a type specified in a service
description. As a result, the generated type in the proxy class might not be
what the developer wants or expects. For example, when WSDL.exe encounters
an ArrayList type in a service description , it creates an Object Array in
the generated proxy class. To ensure correct object type casts, open the
file containing the generated proxy class and change any incorrect object
types to the expected object type.
http://msdn.microsoft.com/library/de...rviceProxy.asp

"hazz" <ha**@sonic.net > wrote in message
news:e2******** ******@TK2MSFTN GP11.phx.gbl...
I am starting to get the idea...the xsd's feed the service layer operations
and messages. I am beginning to understand it at the abstract level. But at
implementation , when the client references a web service, the wsdl is
referenced, then the client binds through a proxy to the web service. My
question is, "How is the same object created(and hydrated) on the client
side that existed on the server side before it was serialized?" How does
the "newing up" happen? If there is no class sitting on the client to
instantiate, does it get the class from the wsdl? There must be in the xsd
portion of the wsdl, the data elements which will be turned into an object.
But when and where does that happen. When and how is the customer object
created on the client and then filled up with the data values? Thank
u. -hazz

Dec 15 '05 #2

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

Similar topics

6
20250
by: john deviney | last post by:
I have a C#/.Net 1.1 client talking to a Java based web service. I need to insert a soap header on the client side which is expected on the server side. Currently, the Java ws provider, Axis, does not support automatic wsdl generation of custom headers so the wsdl has no information regarding the required header. I've read through a lot of material and managed to get a workable solution but it is far from ideal. I created a new...
3
2194
by: Dhananjayan | last post by:
Hi, I have a java webservice running on Axis, Iam able to create a java client to invoke the webservice and obtain the result. But iam not able to invoke the service from .Net client.. Here are the steps i followed to create a .net client I created a web reference("NetClient") for a webservice running in Axis thru "Add Web Reference", it created succesfully. The next step I should do in order to invoke the service is to
3
5297
by: Mike | last post by:
I have created a web service for a client to consume. The element I am having trouble with is, as described in their WSDL: <xsd:element minOccurs="0" ref="LocalData" maxOccurs="1" /> <xsd:element name="LocalData"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:enumeration value="Y" /> <xsd:enumeration value="N" />
2
4186
by: pshvarts | last post by:
(I'm new in SOAP) I get some wsdl file (from apache service ). I tried creating SOAP client with .NET - trying to add Web Reference and get error like: "Custom tool error: Unable to import WebService/Schema. Unable to import binding..." I thought may be wsdl file is not good enough (it was created with qsoap toolkit), so I paste-copy sample from http://www.w3.org/TR/2001/NOTE-wsdl-20010315#_wsdl (will paste below) and receive same error...
7
2917
by: Nalaka | last post by:
Hi, I created a sinple web service that returns a dataSet. Then I created a client program that uses this web service (that returns the Dataset). My question is, how did the client figure out to create a "DataSet" as the return type from the webservice?
8
11177
by: semedao | last post by:
Hi , I need to develop some feature of web service that can notify client - "Push" operation - and fast somebody know if it's possible , and how? When I say "Push" I mean - pure push :) , not mechanism of client checking for messages in interval... thanks
5
4972
by: Nick K. | last post by:
I use wsdl.exe to generate client code to call a web service. The actual web service is generated with the BizTalk Web Services Publishing Wizard. I'm not sure this is particular to the BizTalk code but the calls to web methods pass parameters by ref so that I have to call it like: XmlDocument doc = new XmlDocument(); doc.LoadXml(message);
1
2161
by: =?Utf-8?B?ZGF2aWQ=?= | last post by:
I have developed web services, myWebService by .NET Visual Studio, with web methods getInfo and getInfo(int) (under .net framework 1.1). It works fine for the clients created by .NET visual studio. However, when developing Java client, Eclipse detected the following error on WSDL file: WSDLException: faultCode=INVALID_WSDL: : The element type "br" must be terminated by the matching end-tag "</br>". I have checked the web source in...
3
4416
by: Lance Wynn | last post by:
Hello, I am receiving this error when trying to instantiate a webservice component. I have 2 development machines, both are XP sp2 with VS 2008 installed. On one machine, the code works fine. On the other machine I get the error upon instantiating the service client. I add the reference by choosing Add Service Reference from the project menu, and pointing to the remote wsdl file. I can't seem to find what the difference between the two...
0
8339
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,...
0
8851
Oralloy
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...
0
8751
jinu1996
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...
1
8535
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,...
0
7360
agi2029
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...
1
6181
isladogs
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...
0
5650
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();...
1
2757
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1739
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.