Click here to Skip to main content
15,885,546 members
Home / Discussions / C#
   

C#

 
GeneralRe: C++ Bit Fields implementation in C# Pin
A.Wegierski22-Apr-04 19:57
A.Wegierski22-Apr-04 19:57 
GeneralRe: C++ Bit Fields implementation in C# Pin
leppie22-Apr-04 7:22
leppie22-Apr-04 7:22 
Generalstruct/class .vs. Datasets Pin
BernardYardley21-Apr-04 23:17
BernardYardley21-Apr-04 23:17 
GeneralRe: struct/class .vs. Datasets Pin
Heath Stewart22-Apr-04 3:07
protectorHeath Stewart22-Apr-04 3:07 
GeneralRe: struct/class .vs. Datasets Pin
BernardYardley22-Apr-04 3:20
BernardYardley22-Apr-04 3:20 
GeneralRe: struct/class .vs. Datasets Pin
Heath Stewart22-Apr-04 4:05
protectorHeath Stewart22-Apr-04 4:05 
GeneralRe: struct/class .vs. Datasets Pin
BernardYardley22-Apr-04 4:33
BernardYardley22-Apr-04 4:33 
GeneralRe: struct/class .vs. Datasets Pin
Heath Stewart22-Apr-04 4:40
protectorHeath Stewart22-Apr-04 4:40 
It was clear to begin with, but you're the intent of WSDL. The WSDL file for your web service is used to generate the client proxy, including all types necessary to makes calls on your web service. This is what WSDL is for, and what helps makes web services platform- and implementation-independent. You can discover information about a web service using the ubiquitous XML format, even at runtime.

What you're trying to do is more of a .NET Remoting tactic. You don't need to have an assembly that defines your types, since the client proxy that is generated will contain them - that again is what WSDL is partly for (to describe the types used, as well as all the methods, etc.). If you do want to share the types (perhaps they have some handy methods), then simply go into the generated class file (just show hidden files in your project) and change the type to your class from the MyClasses assembly.

Again, going back to the original question of classes vs. structs vs. DataSets - you can use anything. You can pass the intrinics (int, long, string, char, etc.) and anything else you like, even arrays like a byte[] array (commonly used for images, though DIME is much faster).

What you use is up to you and your implementation, but you can use anything. Take a look at http://www.xmethods.net[^] for a huge list of web services, most (all?) of which don't use DataSets and just return whatever types they want, which are defined in the web service's WSDL.

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: struct/class .vs. Datasets Pin
BernardYardley22-Apr-04 4:52
BernardYardley22-Apr-04 4:52 
Generalshowing a bitmap Pin
Amirjalaly21-Apr-04 21:55
Amirjalaly21-Apr-04 21:55 
GeneralRe: showing a bitmap Pin
Mazdak22-Apr-04 0:48
Mazdak22-Apr-04 0:48 
GeneralCreating object instance only known object name Pin
PEDRO_PASAMAR21-Apr-04 21:01
PEDRO_PASAMAR21-Apr-04 21:01 
GeneralRe: Creating object instance only known object name Pin
Bilal Farooq21-Apr-04 22:20
Bilal Farooq21-Apr-04 22:20 
GeneralUsing Images of Satellite Assemblies Pin
Bilal Farooq21-Apr-04 19:54
Bilal Farooq21-Apr-04 19:54 
GeneralRe: Using Images of Satellite Assemblies Pin
Heath Stewart22-Apr-04 3:29
protectorHeath Stewart22-Apr-04 3:29 
GeneralGet currently active window Pin
Bilal Farooq21-Apr-04 19:42
Bilal Farooq21-Apr-04 19:42 
GeneralRe: Get currently active window Pin
A.Wegierski22-Apr-04 0:26
A.Wegierski22-Apr-04 0:26 
GeneralRe: Get currently active window Pin
Bilal Farooq22-Apr-04 3:29
Bilal Farooq22-Apr-04 3:29 
GeneralRe: Get currently active window Pin
Heath Stewart22-Apr-04 3:39
protectorHeath Stewart22-Apr-04 3:39 
Generalauto+indentation feature Pin
kumaru_san21-Apr-04 19:04
kumaru_san21-Apr-04 19:04 
GeneralRe: auto+indentation feature Pin
leppie22-Apr-04 7:29
leppie22-Apr-04 7:29 
GeneralRe: auto+indentation feature Pin
kumaru_san22-Apr-04 18:32
kumaru_san22-Apr-04 18:32 
QuestionHow to float window over application properly Pin
Michael Wolski21-Apr-04 18:10
Michael Wolski21-Apr-04 18:10 
AnswerRe: How to float window over application properly Pin
Heath Stewart22-Apr-04 3:42
protectorHeath Stewart22-Apr-04 3:42 
GeneralRe: How to float window over application properly Pin
Michael Wolski22-Apr-04 4:20
Michael Wolski22-Apr-04 4:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.