Click here to Skip to main content
15,890,043 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: MediaElement ? Pin
Christian Graus20-Mar-09 11:23
protectorChristian Graus20-Mar-09 11:23 
AnswerRe: MediaElement ? Pin
Mark Salsbery20-Mar-09 13:17
Mark Salsbery20-Mar-09 13:17 
GeneralRe: MediaElement ? Pin
Christian Graus20-Mar-09 15:48
protectorChristian Graus20-Mar-09 15:48 
GeneralRe: MediaElement ? Pin
Mark Salsbery22-Mar-09 6:39
Mark Salsbery22-Mar-09 6:39 
GeneralRe: MediaElement ? Pin
Christian Graus22-Mar-09 10:07
protectorChristian Graus22-Mar-09 10:07 
GeneralRe: MediaElement ? Pin
Pete O'Hanlon23-Mar-09 1:02
mvePete O'Hanlon23-Mar-09 1:02 
Questionneed solution for "Dynamic invocation of Webmethods" Pin
ramakrishnamakkena20-Mar-09 2:59
ramakrishnamakkena20-Mar-09 2:59 
AnswerRe: need solution for "Dynamic invocation of Webmethods" Pin
Pete O'Hanlon20-Mar-09 3:15
mvePete O'Hanlon20-Mar-09 3:15 
While I wouldn't normally call the web service without a service reference in place, it's a simple enough process. Basically, you have to build the web request yourself and then call it. The following snippet should give you an idea of how it works. I'll leave it to you to work out what your data will be and what your response will be, but this should be a useful starting point:
string data = "xmldocument";
string url = "myurl";
string response = string.Empty;
// Build request objects to pass the xml to the web method
byte[] buffer = Encoding.ASCII.GetBytes(data);
HttpWebRequest request = WebRequest.Create(url) as HttpWebRequest;
request.Method = "POST";
request.ContentType = "text/xml";
request.ContentLength = buffer.Length;
using (Stream post = request.GetRequestStream())
{
  // post the data and close connection
  post.Write(buffer, 0, buffer.Length);
  post.Close();
  // Build response object
  HttpWebResponse response = request.GetResponse() as HttpWebResponse;
  using (Stream responsedata = response.GetResponseStream())
  {
    using (StreamReader responsereader = new StreamReader(responsedata))
    {
      response = responsereader.ReadToEnd();
    }
  }
}


"WPF has many lovers. It's a veritable porn star!" - Josh Smith

As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.


My blog | My articles | MoXAML PowerToys



QuestionWPF Scroll bar in frame control [modified] Pin
prl_pt20-Mar-09 0:38
prl_pt20-Mar-09 0:38 
AnswerRe: WPF Scroll bar in frame control Pin
Mark Salsbery20-Mar-09 6:51
Mark Salsbery20-Mar-09 6:51 
QuestionSilverlight and Asp.Net Pin
Jason Wilczak19-Mar-09 14:05
Jason Wilczak19-Mar-09 14:05 
AnswerRe: Silverlight and Asp.Net Pin
Mark Salsbery20-Mar-09 6:18
Mark Salsbery20-Mar-09 6:18 
GeneralRe: Silverlight and Asp.Net Pin
Jason Wilczak20-Mar-09 11:44
Jason Wilczak20-Mar-09 11:44 
QuestionAm I missing someting ? Pin
Christian Graus19-Mar-09 13:04
protectorChristian Graus19-Mar-09 13:04 
AnswerRe: Am I missing someting ? Pin
Mark Salsbery19-Mar-09 14:27
Mark Salsbery19-Mar-09 14:27 
GeneralRe: Am I missing someting ? Pin
Christian Graus19-Mar-09 16:02
protectorChristian Graus19-Mar-09 16:02 
QuestionCPU Usage chart in Silverlight Pin
farhan134219-Mar-09 9:24
farhan134219-Mar-09 9:24 
AnswerRe: CPU Usage chart in Silverlight Pin
Mark Salsbery20-Mar-09 6:30
Mark Salsbery20-Mar-09 6:30 
QuestionDataGridCheckboxColumn bind to EF Many-To-Many Relationship Pin
Wouter Van Ranst19-Mar-09 8:21
Wouter Van Ranst19-Mar-09 8:21 
QuestionWPF ListBox/ComboBox with multiple items of same value Pin
BRShroyer19-Mar-09 3:44
BRShroyer19-Mar-09 3:44 
AnswerRe: WPF ListBox/ComboBox with multiple items of same value Pin
ABitSmart19-Mar-09 4:38
ABitSmart19-Mar-09 4:38 
GeneralRe: WPF ListBox/ComboBox with multiple items of same value Pin
BRShroyer19-Mar-09 6:03
BRShroyer19-Mar-09 6:03 
GeneralRe: WPF ListBox/ComboBox with multiple items of same value Pin
w3stfa1129-Nov-09 18:13
w3stfa1129-Nov-09 18:13 
QuestionUIcontrol.Dispatcher.CheckAccess() Pin
Jammer19-Mar-09 1:56
Jammer19-Mar-09 1:56 
AnswerRe: UIcontrol.Dispatcher.CheckAccess() Pin
ABitSmart19-Mar-09 2:23
ABitSmart19-Mar-09 2:23 

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.