Click here to Skip to main content
15,920,603 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: XML,Xhtml Pin
thatraja25-Oct-10 20:33
professionalthatraja25-Oct-10 20:33 
AnswerRe: XML,Xhtml Pin
javad200925-Oct-10 21:08
javad200925-Oct-10 21:08 
GeneralRe: XML,Xhtml Pin
Any_India25-Oct-10 21:31
Any_India25-Oct-10 21:31 
GeneralRe: XML,Xhtml Pin
Nithin Sundar27-Oct-10 20:30
Nithin Sundar27-Oct-10 20:30 
QuestionConnectionStringa nd Web.config Pin
future383925-Oct-10 18:52
future383925-Oct-10 18:52 
AnswerRe: ConnectionStringa nd Web.config Pin
thatraja25-Oct-10 20:26
professionalthatraja25-Oct-10 20:26 
QuestionMVC and Dataset Pin
future383925-Oct-10 14:08
future383925-Oct-10 14:08 
AnswerRe: MVC and Dataset Pin
kadaoui el mehdi27-Oct-10 3:33
kadaoui el mehdi27-Oct-10 3:33 
QuestionWebpage template Pin
yakshasa25-Oct-10 11:56
yakshasa25-Oct-10 11:56 
QuestionLinq to SQL Pin
Satish_S25-Oct-10 2:39
Satish_S25-Oct-10 2:39 
AnswerRe: Linq to SQL Pin
dan!sh 25-Oct-10 11:03
professional dan!sh 25-Oct-10 11:03 
GeneralRe: Linq to SQL Pin
Satish_S25-Oct-10 18:04
Satish_S25-Oct-10 18:04 
GeneralRe: Linq to SQL Pin
dan!sh 25-Oct-10 19:51
professional dan!sh 25-Oct-10 19:51 
GeneralRe: Linq to SQL Pin
Satish_S25-Oct-10 20:41
Satish_S25-Oct-10 20:41 
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 

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.