Click here to Skip to main content
15,889,849 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: Multi-processing Pin
Curtis Schlak.7-Jul-09 18:20
Curtis Schlak.7-Jul-09 18:20 
QuestionIntellisense help Pin
thenutz726-Jul-09 10:22
thenutz726-Jul-09 10:22 
AnswerRe: Intellisense help Pin
Luc Pattyn6-Jul-09 11:45
sitebuilderLuc Pattyn6-Jul-09 11:45 
GeneralRe: Intellisense help Pin
thenutz726-Jul-09 12:18
thenutz726-Jul-09 12:18 
GeneralRe: Intellisense help Pin
Luc Pattyn6-Jul-09 12:27
sitebuilderLuc Pattyn6-Jul-09 12:27 
AnswerRe: Intellisense help Pin
cateyes996-Jul-09 15:48
cateyes996-Jul-09 15:48 
QuestionWinInet class wrapper? Pin
NetDave6-Jul-09 7:57
NetDave6-Jul-09 7:57 
QuestionWebservices & Reflection & Request types. Pin
Mr Jen Withers6-Jul-09 4:45
Mr Jen Withers6-Jul-09 4:45 
Hi guys, Ive got a complex problem that I could really use some help / opinions on.
Iam in the process of extending the webservice class to add some additional functionality that I require.

I have a requirement where I need to write ALOT of public webservices for various things in my application. Natively the webservices return xml which is great for the public side of the interface but I would also like them to have the ability to return something other then xml - say html or CSV.

So I have written some XSLT that will run against the XML output of the webservice and transform it into whatever I require. The problem is I want to be able to switch the output of the webservice form xml to my xslt output by changing the request type for say "text/CustomXSLT". I would like to do this so I dont have to implement 2 methods for each webmethod just to cover my requirement.

To do this I have implemented a method attribute that marks a webmethod also as an xslt method:

[
XSLTMethod  ("CaseSearch_HTML_Table.xslt" , typeof (SearchCases))]


I have taken the lead from this code project article (see link below) and implemented a very similar system where by I can intercept the method call and manually invoke the method with reflection and put out the correct response.

Extending an existing ASP.NET Web Service to support JSON[^]

However I have hit a road block. All the input parameters in the request.form collection are strings. To make my extension class generic I will need to either write some kind of generic type marshaller to go from string to value or do something else totally horrid.

Iam so close to getting something working here which has alot of value to me but this could be a show stopper. Iam very new to reflection in .net so iam hoping there is alot i dont understand. I was trying to get the .net source so I can see how the standard webservice class handles this kind of type marshalling and see if there is anything i can reuse but the link to the source on the MS site is down Frown | :-(

Thanks in Advance for any help

Mike
Questionbios date time [modified] Pin
vishal lele6-Jul-09 1:47
vishal lele6-Jul-09 1:47 
AnswerRe: bios date time Pin
Colin Angus Mackay6-Jul-09 1:55
Colin Angus Mackay6-Jul-09 1:55 
AnswerRe: bios date time Pin
Colin Angus Mackay6-Jul-09 2:12
Colin Angus Mackay6-Jul-09 2:12 
AnswerRe: bios date time Pin
Eddy Vluggen6-Jul-09 3:15
professionalEddy Vluggen6-Jul-09 3:15 
QuestionInterop call in .Net exe fails when executing from Scheduled task Pin
Hariharan.T5-Jul-09 23:22
Hariharan.T5-Jul-09 23:22 
AnswerRe: Interop call in .Net exe fails when executing from Scheduled task Pin
Colin Angus Mackay6-Jul-09 1:57
Colin Angus Mackay6-Jul-09 1:57 
QuestionFramework and Flatform? Pin
hkim_zoro5-Jul-09 17:48
hkim_zoro5-Jul-09 17:48 
AnswerRe: Framework and Flatform? Pin
Colin Angus Mackay6-Jul-09 1:58
Colin Angus Mackay6-Jul-09 1:58 
GeneralRe: Framework and Flatform? Pin
hkim_zoro7-Jul-09 16:23
hkim_zoro7-Jul-09 16:23 
QuestionBest practice for updating UI in multi-threaded app Pin
bobishkindaguy5-Jul-09 13:55
bobishkindaguy5-Jul-09 13:55 
AnswerRe: Best practice for updating UI in multi-threaded app Pin
Gideon Engelberth5-Jul-09 16:03
Gideon Engelberth5-Jul-09 16:03 
AnswerRe: Best practice for updating UI in multi-threaded app Pin
supercat96-Jul-09 13:13
supercat96-Jul-09 13:13 
QuestionRe: Best practice for updating UI in multi-threaded app Pin
bobishkindaguy6-Jul-09 13:32
bobishkindaguy6-Jul-09 13:32 
AnswerRe: Best practice for updating UI in multi-threaded app Pin
supercat97-Jul-09 5:27
supercat97-Jul-09 5:27 
QuestionRe: Best practice for updating UI in multi-threaded app Pin
bobishkindaguy8-Jul-09 12:51
bobishkindaguy8-Jul-09 12:51 
AnswerRe: Best practice for updating UI in multi-threaded app Pin
supercat98-Jul-09 13:01
supercat98-Jul-09 13:01 
QuestionHow to get http request?? Pin
david bagaturia5-Jul-09 9:21
david bagaturia5-Jul-09 9:21 

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.