Click here to Skip to main content
15,896,348 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionQuestions about ASPNETDB.MDF Pin
ibmkahm24-Oct-10 22:14
ibmkahm24-Oct-10 22:14 
AnswerRe: Questions about ASPNETDB.MDF Pin
kadaoui el mehdi27-Oct-10 3:41
kadaoui el mehdi27-Oct-10 3:41 
QuestionCan't figure out how to covnert this XML to XSL for a gridview Pin
Albert8324-Oct-10 19:01
Albert8324-Oct-10 19:01 
QuestionObjectDisposedException when using Response.Filter Pin
95ulisse24-Oct-10 5:06
95ulisse24-Oct-10 5:06 
QuestionWeb Service Complex Type returning Pin
Dirso23-Oct-10 13:06
Dirso23-Oct-10 13:06 
AnswerRe: Web Service Complex Type returning [modified] Pin
Karthik. A23-Oct-10 15:37
Karthik. A23-Oct-10 15:37 
GeneralRe: Web Service Complex Type returning Pin
Dirso26-Oct-10 9:16
Dirso26-Oct-10 9:16 
AnswerRe: Web Service Complex Type returning Pin
Keith Barrow23-Oct-10 21:56
professionalKeith Barrow23-Oct-10 21:56 
Dirso wrote:
1) The WebReference I add in the client has a definition of Order that the compiler thinks it's not from the assembly they are defined into. I can't cast. I have to create a List and populate with the data returned from the WebMethod. Worst, It doesn't return a List<>, it returns an [].


This is correct (and good!) behaviour. The web service is supposed to be agnostic of the client (for example a Java client can consume a .Net web service and vice versa). This is the reason the list is returned as an array, as all languages have the concept of an array, but not a list. The same goes for the Order type not casting, the message passed between the client and server is just a "value bag" that looks like an object, you are supposed to populate proper objects from them when then response is recieved. When you generate the client, a new class type is created. The generated class will have a different namespace but normally the same name as the originating server type. This won't cast as it is a completely different type as far as the runtime is concerned, you have to write a convertor if you wish to include the original class. Web Services != Object Orientation.

GeneralRe: Web Service Complex Type returning Pin
Dirso26-Oct-10 9:17
Dirso26-Oct-10 9:17 
Questionweb service Pin
Any_India23-Oct-10 7:48
Any_India23-Oct-10 7:48 
AnswerRe: web service Pin
Keith Barrow23-Oct-10 8:02
professionalKeith Barrow23-Oct-10 8:02 
GeneralRe: web service Pin
Any_India23-Oct-10 8:23
Any_India23-Oct-10 8:23 
GeneralRe: web service Pin
Keith Barrow23-Oct-10 8:34
professionalKeith Barrow23-Oct-10 8:34 
Questionmulti language website Pin
Jassim Rahma23-Oct-10 3:34
Jassim Rahma23-Oct-10 3:34 
AnswerRe: multi language website PinPopular
Pete O'Hanlon23-Oct-10 4:36
mvePete O'Hanlon23-Oct-10 4:36 
AnswerRe: multi language website Pin
Keith Barrow23-Oct-10 6:36
professionalKeith Barrow23-Oct-10 6:36 
QuestionTab Order Pin
Dushan12323-Oct-10 3:29
Dushan12323-Oct-10 3:29 
Questionhow to select design patterns Pin
anoop_m8322-Oct-10 7:29
anoop_m8322-Oct-10 7:29 
AnswerRe: how to select design patterns Pin
T M Gray22-Oct-10 8:34
T M Gray22-Oct-10 8:34 
AnswerRe: how to select design patterns Pin
Brij22-Oct-10 8:41
mentorBrij22-Oct-10 8:41 
AnswerRe: how to select design patterns Pin
Keith Barrow22-Oct-10 10:18
professionalKeith Barrow22-Oct-10 10:18 
AnswerRe: how to select design patterns Pin
Pete O'Hanlon22-Oct-10 11:45
mvePete O'Hanlon22-Oct-10 11:45 
Questionhow to store arraylist in string??????????? Pin
srisairam22-Oct-10 0:37
srisairam22-Oct-10 0:37 
GeneralRe: how to store arraylist in string??????????? Pin
Khaniya22-Oct-10 1:27
professionalKhaniya22-Oct-10 1:27 
GeneralRe: how to store arraylist in string??????????? Pin
Keith Barrow24-Oct-10 8:04
professionalKeith Barrow24-Oct-10 8:04 

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.