473,398 Members | 2,088 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

return a complex type

Joe
I would like to return a class which encapsulates an ArrayList. The
ArrayList actually has all the data I need.

Can this be done?
Nov 21 '05 #1
3 1854
Umm, sure. If you want more control over the return element names etc. you
might want to consider making up an XSD for that data and generating the
class for that. There is an excellent XSD to Object generator at
www.gotdotnet.com

--
Girish Bharadwaj
http://msmvps.com/gbvb
"Joe" <J_no_spam@_no_spam_Fishinbrain.com> wrote in message
news:OX**************@TK2MSFTNGP15.phx.gbl...
I would like to return a class which encapsulates an ArrayList. The
ArrayList actually has all the data I need.

Can this be done?

Nov 21 '05 #2
I'm not imediately seeing this generator at the address you gave. Could you
be more specific?

thx

Jeff

"Girish bharadwaj" <gi*****@mvps.org> wrote in message
news:ex**************@tk2msftngp13.phx.gbl...
Umm, sure. If you want more control over the return element names etc. you
might want to consider making up an XSD for that data and generating the
class for that. There is an excellent XSD to Object generator at
www.gotdotnet.com

--
Girish Bharadwaj
http://msmvps.com/gbvb
"Joe" <J_no_spam@_no_spam_Fishinbrain.com> wrote in message
news:OX**************@TK2MSFTNGP15.phx.gbl...
I would like to return a class which encapsulates an ArrayList. The
ArrayList actually has all the data I need.

Can this be done?


Nov 21 '05 #3
http://apps.gotdotnet.com/xmltools/xsdobjgen/

--
Girish Bharadwaj
http://msmvps.com/gbvb
"Jeff Dillon" <je**@removeemergencyreporting.com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
I'm not imediately seeing this generator at the address you gave. Could you be more specific?

thx

Jeff

"Girish bharadwaj" <gi*****@mvps.org> wrote in message
news:ex**************@tk2msftngp13.phx.gbl...
Umm, sure. If you want more control over the return element names etc. you might want to consider making up an XSD for that data and generating the
class for that. There is an excellent XSD to Object generator at
www.gotdotnet.com

--
Girish Bharadwaj
http://msmvps.com/gbvb
"Joe" <J_no_spam@_no_spam_Fishinbrain.com> wrote in message
news:OX**************@TK2MSFTNGP15.phx.gbl...
I would like to return a class which encapsulates an ArrayList. The
ArrayList actually has all the data I need.

Can this be done?



Nov 21 '05 #4

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

Similar topics

2
by: burdeen | last post by:
I've been trying to return an array with PHP5 soap. Is this not supported? or am i doing it wrong? Seems to return on the last element in the array. In my WSDL i've defined my return type as a...
94
by: John Bailo | last post by:
The c# *return* statement has been bothering me the past few months. I don't like the fact that you can have different code paths in a method and have multiple return statements. To me, it...
2
by: PengYu.UT | last post by:
I have the following sample program, which can convert function object with 1 argument into function object with 2 arguments. It can also do + between function object of the same type. The last...
59
by: Michael C | last post by:
eg void DoIt() { int i = FromString("1"); double d = FromString("1.1"); } int FromString(string SomeValue) {
5
by: jmd | last post by:
hello. i am trying VC++ 7.1 (with vsnet 2003). my example : class Complex { public: Complex ( float re_ = 0.0, float im_ = 0.0 ) : re(re_), im(im_) {} float Re () { return ( re ); } float...
17
by: benben | last post by:
Given a class template Vector<>, I would like to overload operator +. But I have a hard time deciding whether the return type should be Vector<U> or Vector<V>, as in: template <typename U,...
1
by: louis_la_brocante | last post by:
Dear all, I am having trouble generating a client proxy for a webservice whose methods return a "complex" type. The type is complex in that it is a class whose members are a mix of primitive...
2
by: mhs1pk | last post by:
Hi, I m a having problem while trying to make the return type of a method in MFC appl in VC6 as complex<double>. If i declear a variable wth std::complex<double> type, it is compled successfully....
3
by: katis | last post by:
Hi all :) Is it posible in xsd to change only minOccurs value of element in complex type by extending this type? The problem I'm trying to solve is this: I have two complex types -...
1
by: sebastian.mattar | last post by:
HI there! I am trying to consume a web service implemented in Perl (SOAP::Lite) using VS Express 2008. I already implemented a client in java without problems. I succeeded in calling the web...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...
0
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...

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.