Server error upon displaying class

Z

Zark3

Sorry in advance if this turns out to be a real newbie question, but my
problem is as follows:

Object description: I've made a webservice (aggregator) which calls out
to a variable number of other (specific) webservices which in turn get
their data from some (possibly) remote site. So far so good.
I figured I had an excellent class design with a class
MetadataRecordCollection that (a.o.) holds an ArrayList which contains
objects of my class MetadataRecord (which is an abstract, in reality it
contains objects of type either AMICO_Record or MARC21_Record) which in
turn holds an ArrayList that contains objects of my class MetadataField
(which is an abstract, in reality it contains objects of type either
AMICO_Field of MARC21_Field). With me so far? I thought that this
abstraction/inheritance would be the most elegant programming solution.
(Correct me if I'm wrong)

Situation description: in my aggregator component I have a function
"[WebMethod] public MetadataRecordCollection Present(int set_number,
int start, int end)" which calls methods in its subsidiary webservices
that have the exact same signature. These specific webservices call a
remote-site-specific function like "public MetadataRecordCollection
Present(string library, int set_number, int start, int end, string
session_id)". At this most specific level the metadata is extracted
from its remote location, stuffed into a number of classes like
AMICO_Record, after which the records are added to the
MetadataRecordCollection. Pretty much the way to tackle this or not? So
far have I still been smart? ;)

Now, as for the problem, when debugging in VS.NET (2k3, fw v1.1) I can
see that at the last stage of the highest order function (the
aggregation component) my programs have not only correctly parsed their
data and put it into a class, this class has also been correctly passed
through at each level. However, come the closing brace of this
function, suddenly an HTTP500 occurs with no descriptive message... It
appears to me my functions and classes function correctly internally
but that this object MetadataRecordCollection cannot be properly output
to screen. How can I 'force' this? Can it be done manually? Where could
an error with visualization/transcoding to XML originate?

Thanks for every reply or pointer to more information,

Chris
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Staff online

Members online

Forum statistics

Threads
473,767
Messages
2,569,570
Members
45,045
Latest member
DRCM

Latest Threads

Top