wcf - get fault information from a webinvoke method using WebClient -


मैं नया WebClient (url) का उपयोग कर रहा हूं। अपलोडस्ट्रेस (... WCF WebInvoke वेब विधि को खोलने के लिए। विधि फेंक रही है एक गलती अपवाद।

क्या रिमोट सर्वर ने त्रुटि लौटाई है: (400) खराब अनुरोध "

क्या मैं एक गलती फेंक रहा हूं? FaultException) इसमें सभी प्रासंगिक जानकारी के साथ।

सादर क्रेग।

 < Code> try {string result = client.UploadString ("http: // localhost: 8080 / method", "POST", xml.ToString ()); result.dump ();} कैच (वेबएक्सेशन एक्स) {XNamespace exn = "Http://www.w3.org/1999/xhtml"; var त्रुटि = XElement.Load में नोड से (ex.Response.GetResponseStream ())। Descendants (exn + "p") नोड का चयन करें। Value; त्रुटि। डंप ();}    

Comments

Popular posts from this blog

php - Creating canonical URLs with custom route-classes -

mysql - Formatting problem with PHP DateTime Difference when used as part of an equation -

Mysql Local server hardware -