Click here to Skip to main content
16,007,809 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: open windows form in java script [modified] Pin
Vasudevan Deepak Kumar23-Aug-07 2:20
Vasudevan Deepak Kumar23-Aug-07 2:20 
Questionclient side file selection Pin
JimmyRopes22-Aug-07 4:59
professionalJimmyRopes22-Aug-07 4:59 
AnswerRe: client side file selection Pin
Fred_Smith22-Aug-07 5:15
Fred_Smith22-Aug-07 5:15 
GeneralRe: client side file selection Pin
JimmyRopes22-Aug-07 6:43
professionalJimmyRopes22-Aug-07 6:43 
AnswerRe: client side file selection Pin
Vasudevan Deepak Kumar22-Aug-07 5:19
Vasudevan Deepak Kumar22-Aug-07 5:19 
GeneralRe: client side file selection Pin
JimmyRopes22-Aug-07 6:44
professionalJimmyRopes22-Aug-07 6:44 
QuestionMissing SWF file seems to hang the web browser Pin
Vasudevan Deepak Kumar22-Aug-07 4:25
Vasudevan Deepak Kumar22-Aug-07 4:25 
QuestionErrorhandling in Webservices Pin
matthias s.22-Aug-07 1:57
matthias s.22-Aug-07 1:57 
hey,

i've got a webservice with one webmethod. if an exception occurs in this method, i'd like to throw it (and transport it back to the client) as a SoapException. my code looks somewhat like this:

[WebMethod]
public News[] GetLatestNews(string subscriberKey, int count, string languageName)
{
 try {
  // do something that throws an exception
 }
 catch (Exception ex)
 {
  string msg = "Internal Server Error: " + ex.Message;
  string actor = HttpContext.Current.Request.Url.AbsoluteUri;
  XmlNode details = BuildDetails(actor, ERR_SERVERERROR, msg);

  throw new SoapException(msg, SoapException.ServerFaultCode, actor, details);
 }
}


the method BuildDetails creates an XmlNode with some error information (as you can probably guess by looking at the signature).

my problem is: when i start debugging the webservice, the page i get when i invoke the method shows only the error message. without any xml around it. but i'd like to have a proper xml-return which contains all of the information i've placed into the SoapException.

what am I missing here? thanks in advance.

/matthias


I love deadlines. I like the whooshing sound they make as they fly by.
[Douglas Adams]

AnswerRe: Errorhandling in Webservices Pin
kubben22-Aug-07 3:24
kubben22-Aug-07 3:24 
AnswerRe: Errorhandling in Webservices Pin
kubben22-Aug-07 3:27
kubben22-Aug-07 3:27 
GeneralRe: Errorhandling in Webservices Pin
matthias s.22-Aug-07 3:35
matthias s.22-Aug-07 3:35 
GeneralRe: Errorhandling in Webservices Pin
kubben22-Aug-07 3:40
kubben22-Aug-07 3:40 
GeneralRe: Errorhandling in Webservices Pin
matthias s.22-Aug-07 3:46
matthias s.22-Aug-07 3:46 
GeneralRe: Errorhandling in Webservices Pin
kubben22-Aug-07 3:49
kubben22-Aug-07 3:49 
GeneralRe: Errorhandling in Webservices Pin
kubben22-Aug-07 3:50
kubben22-Aug-07 3:50 
GeneralRe: Errorhandling in Webservices Pin
kubben22-Aug-07 4:06
kubben22-Aug-07 4:06 
GeneralRe: Errorhandling in Webservices Pin
matthias s.22-Aug-07 4:14
matthias s.22-Aug-07 4:14 
QuestionLive update of events using Ajax-Push Pin
vbss7522-Aug-07 1:55
vbss7522-Aug-07 1:55 
QuestionChange system datetime using ASP Pin
TPN21-Aug-07 22:13
TPN21-Aug-07 22:13 
AnswerRe: Change system datetime using ASP Pin
Fred_Smith21-Aug-07 22:27
Fred_Smith21-Aug-07 22:27 
Questionpost a message Pin
michael_jhons21-Aug-07 21:20
michael_jhons21-Aug-07 21:20 
AnswerRe: post a message Pin
Michael Sync21-Aug-07 21:33
Michael Sync21-Aug-07 21:33 
AnswerRe: post a message Pin
Vasudevan Deepak Kumar22-Aug-07 4:27
Vasudevan Deepak Kumar22-Aug-07 4:27 
QuestionIntegrating flash with asp Pin
nalinithiyagu21-Aug-07 19:37
nalinithiyagu21-Aug-07 19:37 
QuestionWhy won't this work in Firefox or Netscape? Pin
chaddolan21-Aug-07 16:44
chaddolan21-Aug-07 16:44 

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.