Click here to Skip to main content
15,890,438 members
Home / Discussions / C#
   

C#

 
Questiongetting directory list in creation date order Pin
JacquesBrits11-May-09 21:14
JacquesBrits11-May-09 21:14 
AnswerRe: getting directory list in creation date order Pin
tim_gunning12-May-09 1:14
tim_gunning12-May-09 1:14 
Questionconvert postscript to pdf Pin
tauras8111-May-09 20:57
tauras8111-May-09 20:57 
AnswerRe: convert postscript to pdf Pin
LesF23-Nov-09 22:32
LesF23-Nov-09 22:32 
Questioncalender Pin
smithasuryanarayanan11-May-09 20:42
smithasuryanarayanan11-May-09 20:42 
AnswerRe: calender Pin
Henry Minute11-May-09 21:06
Henry Minute11-May-09 21:06 
Questionhow to receive a frame in Serial port by FiFo buffer Pin
hamed_farasat11-May-09 20:16
hamed_farasat11-May-09 20:16 
QuestionAdding Authentication in C# client for gSOAP C++ webservices........ Pin
King Julien11-May-09 19:46
King Julien11-May-09 19:46 
Hi CP gurus,

I have a gSoap Web Service written using C++, it uses SOAP username and
password authentication.

I also have a C# client consuming the web service, all this was working
fine until I added the authentication on the server, now I can not get the
client to authenticate web service methods. Can someone tell me how to add authentication info
to the SOAP message posted from the C# SOAP client.

It may look something like this...


<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:ns1="http://localhost:80/Service.wsdl"
xmlns:ns2="http://tempuri.org/ns1.xsd"><SOAP-ENV:Body><ns2:getBatteryLevel></ns2:getBatteryLevel></SOAP-ENV:Body></SOAP-ENV:Envelope>POST
/ HTTP/1.1
Host: localhost:8080
User-Agent: gSOAP/2.7
Content-Type: text/xml; charset=utf-8
Content-Length: 489
Connection: close
Authorization: Basic dXNlcjpwYXNz
SOAPAction: ""

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:ns1="http://localhost:8080/Service.wsdl"
xmlns:ns2="http://tempuri.org/ns1.xsd"><SOAP-ENV:Body><ns2:GetDBOldestPendingRow><iMaxRows>100</iMaxRows></ns2:GetDBOldestPendingRow></SOAP-ENV:Body></SOAP-ENV:Envelope>

No how to add the blocked Authentication line in the SOAP message.....???

Searched Google... but no clue is left....

Thank in advance for your help.....

Have a Happy Coding.....

QuestionDataGridView CellPainting (some cells only) Pin
John Jak11-May-09 19:36
John Jak11-May-09 19:36 
QuestionHow can I get the reference of PDF file opened in Internet Explorer using c#? Pin
svt gdwl11-May-09 19:26
svt gdwl11-May-09 19:26 
Questionpassing parameters between two application Pin
imannasr8811-May-09 19:23
imannasr8811-May-09 19:23 
AnswerRe: passing parameters between two application Pin
dan!sh 11-May-09 19:36
professional dan!sh 11-May-09 19:36 
GeneralRe: passing parameters between two application Pin
imannasr8812-May-09 0:35
imannasr8812-May-09 0:35 
QuestionGet time zones in windows mobile Pin
vijaywithu11-May-09 19:08
vijaywithu11-May-09 19:08 
Questionhow to nudge a picture in excel sheet using c# Pin
tofa11111-May-09 18:14
tofa11111-May-09 18:14 
AnswerRe: how to nudge a picture in excel sheet using c# Pin
dan!sh 11-May-09 18:22
professional dan!sh 11-May-09 18:22 
GeneralRe: how to nudge a picture in excel sheet using c# Pin
tofa11111-May-09 18:28
tofa11111-May-09 18:28 
GeneralRe: how to nudge a picture in excel sheet using c# Pin
dan!sh 11-May-09 18:51
professional dan!sh 11-May-09 18:51 
AnswerRe: how to nudge a picture in excel sheet using c# Pin
tofa11111-May-09 20:23
tofa11111-May-09 20:23 
QuestionRelated to mobile Pin
Ch.Gayatri Subudhi11-May-09 18:10
Ch.Gayatri Subudhi11-May-09 18:10 
AnswerRe: Related to mobile Pin
dan!sh 11-May-09 18:32
professional dan!sh 11-May-09 18:32 
AnswerRe: Related to mobile Pin
Dave Kreskowiak11-May-09 19:07
mveDave Kreskowiak11-May-09 19:07 
GeneralRe: Related to mobile Pin
Ch.Gayatri Subudhi11-May-09 19:15
Ch.Gayatri Subudhi11-May-09 19:15 
AnswerRe: Related to mobile Pin
Rajesh Anuhya11-May-09 19:26
professionalRajesh Anuhya11-May-09 19:26 
GeneralRe: Related to mobile Pin
Ch.Gayatri Subudhi11-May-09 19:37
Ch.Gayatri Subudhi11-May-09 19:37 

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.