Click here to Skip to main content
15,913,685 members
Home / Discussions / Web Development
   

Web Development

 
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 
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 
Looks at the documentation, like I said before I haven't used soapexception. It seems that the xml is only there if you put it there.
public class ThrowSoapException : WebService 
{
//    This XML Web service method generates a SOAP Client Fault code 
    [WebMethod]
    public void myThrow(){

        // Build the detail element of the SOAP fault.
        System.Xml.XmlDocument doc = new System.Xml.XmlDocument();
        System.Xml.XmlNode node = doc.CreateNode(XmlNodeType.Element, SoapException.DetailElementName.Name, SoapException.DetailElementName.Namespace);


        // Build specific details for the SoapException.
        // Add first child of detail XML element.
        System.Xml.XmlNode details = doc.CreateNode(XmlNodeType.Element, "mySpecialInfo1", "http://tempuri.org/");
        System.Xml.XmlNode detailsChild = doc.CreateNode(XmlNodeType.Element, "childOfSpecialInfo", "http://tempuri.org/");
        details.AppendChild(detailsChild);

            
        // Add second child of detail XML element with an attribute.
        System.Xml.XmlNode details2 = doc.CreateNode(XmlNodeType.Element, "mySpecialInfo2", "http://tempuri.org/");
        XmlAttribute attr = doc.CreateAttribute("t", "attrName", "http://tempuri.org/");
        attr.Value = "attrValue";
        details2.Attributes.Append(attr);

        // Append the two child elements to the detail node.
        node.AppendChild(details);
        node.AppendChild(details2);

            
        //Throw the exception.    
        SoapException se = new SoapException("Fault occurred", SoapException.ClientFaultCode,Context.Request.Url.AbsoluteUri,node);

        throw se;
        return;    }
}


Ben
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 
AnswerRe: Why won't this work in Firefox or Netscape? Pin
Michael Sync21-Aug-07 21:47
Michael Sync21-Aug-07 21:47 
GeneralRe: Why won't this work in Firefox or Netscape? [modified] Pin
chaddolan22-Aug-07 0:54
chaddolan22-Aug-07 0:54 

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.