Click here to Skip to main content
15,893,663 members
Home / Discussions / C#
   

C#

 
AnswerRe: Multi-threaded Task stops after 150 tasks Pin
Richard Deeming2-Aug-13 1:19
mveRichard Deeming2-Aug-13 1:19 
QuestionFileSyncProvider Exception sourceDirectory is write protected Pin
andre_muc1-Aug-13 9:27
andre_muc1-Aug-13 9:27 
QuestionWindows Service Pin
murugesan.ks1-Aug-13 7:55
murugesan.ks1-Aug-13 7:55 
AnswerRe: Windows Service Pin
Eddy Vluggen1-Aug-13 9:02
professionalEddy Vluggen1-Aug-13 9:02 
AnswerRe: Windows Service Pin
jschell1-Aug-13 11:29
jschell1-Aug-13 11:29 
QuestionFill Data One Grid To Another Grid using Arrow Key Pin
sanket1641-Aug-13 2:32
sanket1641-Aug-13 2:32 
AnswerRe: Fill Data One Grid To Another Grid using Arrow Key Pin
Dave Kreskowiak1-Aug-13 3:30
mveDave Kreskowiak1-Aug-13 3:30 
Questionsend SOAP message using web service Pin
vaibhavData1-Aug-13 0:27
vaibhavData1-Aug-13 0:27 
Hi,

while sending SOAP envelope with xml content to the recipient service with credentials e.g(userName ,Password) i am not able to send the request.
I am just having IP addreess and Port of the recipient.


Below code I am using for that :

string username = "XXX"
string Password = "YYY"
string Methodname = "ABC" // Method Provided

//Converted string in Base 64 format for username & password
var headerFormat = "Basic {0}";
var authHeader = string.Format(headerFormat,
Convert.ToBase64String(Encoding.UTF8.GetBytes(Uri.EscapeDataString(username) + ":" + Uri.EscapeDataString(Password))));

//web request made for SOAP
HttpWebRequest req = (HttpWebRequest)WebRequest.Create(“https://192.168.0.1:11111/”);

req.Headers.Add("SOAPAction", "https://192.168.0.1:11111/" + Methodname );

//Authorization added to SOAP web request header.
req.Headers.Add("Authorization", authHeader);

req.ContentType = "text/xml;charset=\"utf-8\"";
req.Accept = "text/xml";
req.Method = "POST";

req.GetRequestStream()


Please help to sort out this problem.

Thanks and Regards,
Rahul Joshi
AnswerRe: send SOAP message using web service Pin
Richard Andrew x641-Aug-13 11:14
professionalRichard Andrew x641-Aug-13 11:14 
GeneralRe: send SOAP message using web service Pin
vaibhavData1-Aug-13 19:05
vaibhavData1-Aug-13 19:05 
QuestionMemory management Pin
sureshdob1-Aug-13 0:11
sureshdob1-Aug-13 0:11 
AnswerRe: Memory management Pin
Eddy Vluggen1-Aug-13 1:05
professionalEddy Vluggen1-Aug-13 1:05 
QuestionGradient arc Pin
FaraonKture31-Jul-13 21:30
FaraonKture31-Jul-13 21:30 
AnswerRe: Gradient arc Pin
Pete O'Hanlon31-Jul-13 22:22
mvePete O'Hanlon31-Jul-13 22:22 
AnswerRe: Gradient arc Pin
Abhinav S31-Jul-13 22:35
Abhinav S31-Jul-13 22:35 
QuestionWMI with service application Pin
Andre O Rahming31-Jul-13 12:37
Andre O Rahming31-Jul-13 12:37 
AnswerRe: WMI with service application Pin
Garth J Lancaster31-Jul-13 14:24
professionalGarth J Lancaster31-Jul-13 14:24 
AnswerRe: WMI with service application Pin
Abhinav S31-Jul-13 19:47
Abhinav S31-Jul-13 19:47 
AnswerRe: WMI with service application Pin
Bernhard Hiller31-Jul-13 21:05
Bernhard Hiller31-Jul-13 21:05 
QuestionHow to get window z order using GetTopMostWindow api Pin
bunge-bunge31-Jul-13 7:49
bunge-bunge31-Jul-13 7:49 
AnswerRe: How to get window z order using GetTopMostWindow api Pin
Eddy Vluggen31-Jul-13 8:49
professionalEddy Vluggen31-Jul-13 8:49 
QuestionWhat do you think this is about? Pin
Jasmine250131-Jul-13 7:22
Jasmine250131-Jul-13 7:22 
AnswerRe: What do you think this is about? Pin
Eddy Vluggen31-Jul-13 8:46
professionalEddy Vluggen31-Jul-13 8:46 
GeneralRe: What do you think this is about? Pin
Jasmine250131-Jul-13 9:06
Jasmine250131-Jul-13 9:06 
GeneralRe: What do you think this is about? Pin
Eddy Vluggen31-Jul-13 10:42
professionalEddy Vluggen31-Jul-13 10:42 

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.