HighTechTalks DotNet Forums  

Returning an array of custom objects

ASP.net Web Services microsoft.public.dotnet.framework.aspnet.webservices


Discuss Returning an array of custom objects in the ASP.net Web Services forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Mr. Murdock
 
Posts: n/a

Default Returning an array of custom objects - 12-06-2007 , 09:46 AM






Hello,

I have created a method on the websevice called ProductObject[] GetProducts().
It returns an array of products available in the database.
The problem is when I receive the response from the webservice. It is not
coming as ProductObject[] but as a System.Array that contains XML nodes,
attributes and elements. I believe this is an issue with the deserialization
process.
How can I repair it?

Thank you,
Murdock

Reply With Quote
  #2  
Old   
Mr. Murdock
 
Posts: n/a

Default RE: Returning an array of custom objects - 12-06-2007 , 09:57 AM






Hey,

Problem sorted. I had to update the webreferences on the project manually.
It's working now. Tricky don't you think?
Another funny issue. I'm then binding the results on a dropdownlist but it
fails.
It says it can't find the "Name" property on the object but it is there.
I can get the value in debug mode.
Any thoughs?

"Mr. Murdock" wrote:

Quote:
Hello,

I have created a method on the websevice called ProductObject[] GetProducts().
It returns an array of products available in the database.
The problem is when I receive the response from the webservice. It is not
coming as ProductObject[] but as a System.Array that contains XML nodes,
attributes and elements. I believe this is an issue with the deserialization
process.
How can I repair it?

Thank you,
Murdock

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.