Click here to Skip to main content
15,891,409 members
Home / Discussions / C#
   

C#

 
Generalgraphics in c Pin
kcal22-Apr-04 0:09
kcal22-Apr-04 0:09 
GeneralRe: graphics in c Pin
Mazdak22-Apr-04 0:42
Mazdak22-Apr-04 0:42 
GeneralRe: graphics in c Pin
Dave Kreskowiak22-Apr-04 0:41
mveDave Kreskowiak22-Apr-04 0:41 
QuestionHow to use variable in property (attribute) Pin
A.Wegierski22-Apr-04 0:05
A.Wegierski22-Apr-04 0:05 
AnswerRe: How to use variable in property (attribute) Pin
Heath Stewart22-Apr-04 3:00
protectorHeath Stewart22-Apr-04 3:00 
AnswerRe: How to use variable in property (attribute) Pin
leppie22-Apr-04 7:12
leppie22-Apr-04 7:12 
AnswerRe: How to use variable in property (attribute) Pin
A.Wegierski22-Apr-04 19:42
A.Wegierski22-Apr-04 19:42 
GeneralExit statment in visual C# Pin
Hemant Mane21-Apr-04 23:54
Hemant Mane21-Apr-04 23:54 
GeneralRe: Exit statment in visual C# Pin
A.Wegierski22-Apr-04 0:19
A.Wegierski22-Apr-04 0:19 
GeneralRe: Exit statment in visual C# Pin
Heath Stewart22-Apr-04 3:01
protectorHeath Stewart22-Apr-04 3:01 
GeneralRe: Exit statment in visual C# Pin
A.Wegierski22-Apr-04 19:59
A.Wegierski22-Apr-04 19:59 
GeneralRe: Exit statment in visual C# Pin
SJ_Phoenix22-Apr-04 0:42
SJ_Phoenix22-Apr-04 0:42 
GeneralC++ Bit Fields implementation in C# Pin
Vini Deep21-Apr-04 23:33
Vini Deep21-Apr-04 23:33 
GeneralRe: C++ Bit Fields implementation in C# Pin
A.Wegierski22-Apr-04 1:10
A.Wegierski22-Apr-04 1:10 
GeneralRe: C++ Bit Fields implementation in C# Pin
Vini Deep22-Apr-04 1:31
Vini Deep22-Apr-04 1:31 
GeneralRe: C++ Bit Fields implementation in C# Pin
Member 363026618-Dec-08 19:53
Member 363026618-Dec-08 19:53 
GeneralRe: C++ Bit Fields implementation in C# Pin
Tim Kohler22-Apr-04 1:22
Tim Kohler22-Apr-04 1:22 
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

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.