Click here to Skip to main content
16,011,869 members
Home / Discussions / C#
   

C#

 
AnswerRe: what happen after adding reference of any assembly from VS.net IDE Pin
Colin Angus Mackay4-Jun-08 0:01
Colin Angus Mackay4-Jun-08 0:01 
QuestionWPF ListViewItem DoubleCLick event Pin
aruna_koride3-Jun-08 23:43
aruna_koride3-Jun-08 23:43 
QuestionHow Can i Open A command prompt(cmd) in a windows form? Pin
Phoenix1013-Jun-08 23:12
Phoenix1013-Jun-08 23:12 
AnswerRe: How Can i Open A command prompt(cmd) in a windows form? Pin
Vasudevan Deepak Kumar3-Jun-08 23:37
Vasudevan Deepak Kumar3-Jun-08 23:37 
AnswerRe: How Can i Open A command prompt(cmd) in a windows form? Pin
leppie3-Jun-08 23:40
leppie3-Jun-08 23:40 
AnswerRe: How Can i Open A command prompt(cmd) in a windows form? Pin
Giorgi Dalakishvili3-Jun-08 23:41
mentorGiorgi Dalakishvili3-Jun-08 23:41 
AnswerRe: How Can i Open A command prompt(cmd) in a windows form? Pin
Phoenix1013-Jun-08 23:59
Phoenix1013-Jun-08 23:59 
QuestionConsuming an XFire Java web service from C# Pin
Simon Lime3-Jun-08 22:45
Simon Lime3-Jun-08 22:45 
I have managed to add a Web Reference to my project (VS 2008), however the java web service is expecting a header like this:-
<soap:Header xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
<wsse:Security>
<wsse:UsernameToken>
<wsse:Username>username</wsse:Username>
<wsse:Password Type="wsse:PasswordText">password</wsse:Password>
</wsse:UsernameToken>
</wsse:Security>
</soap:Header>

The code I am using to call a method on the java web service looks something like this:-

MyProject.userService service = new MySolution.MyProject.userService();
ICredentials credentials = new NetworkCredential("myusername", "mypassword");
service.Credentials = credentials;
long id = 298;
service.doStuff(id);

Not surprisingly the last line currently gives a SoapHeaderException with the message 'The Request must include an authentication token'

How do I go about setting the Soap Header?

thks

Simon
AnswerRe: Consuming an XFire Java web service from C# Pin
leppie3-Jun-08 22:49
leppie3-Jun-08 22:49 
GeneralRe: Consuming an XFire Java web service from C# Pin
Simon Lime4-Jun-08 1:04
Simon Lime4-Jun-08 1:04 
GeneralRe: Consuming an XFire Java web service from C# Pin
leppie4-Jun-08 1:28
leppie4-Jun-08 1:28 
GeneralRe: Consuming an XFire Java web service from C# Pin
Simon Lime4-Jun-08 1:38
Simon Lime4-Jun-08 1:38 
AnswerRe: Consuming an XFire Java web service from C# Pin
blackjack21503-Jun-08 23:30
blackjack21503-Jun-08 23:30 
GeneralRe: Consuming an XFire Java web service from C# Pin
Simon Lime4-Jun-08 1:37
Simon Lime4-Jun-08 1:37 
NewsRe: Consuming an XFire Java web service from C# Pin
Simon Lime7-Jul-08 1:02
Simon Lime7-Jul-08 1:02 
QuestionVideo conferencing Using C# and SIP Protocol Pin
Senthil Palani3-Jun-08 22:25
Senthil Palani3-Jun-08 22:25 
AnswerRe: Video conferencing Using C# and SIP Protocol Pin
leppie3-Jun-08 23:41
leppie3-Jun-08 23:41 
Questionclean up resource in HttpListenerContext Pin
George_George3-Jun-08 22:20
George_George3-Jun-08 22:20 
AnswerRe: clean up resource in HttpListenerContext Pin
leppie3-Jun-08 22:47
leppie3-Jun-08 22:47 
GeneralRe: clean up resource in HttpListenerContext Pin
George_George3-Jun-08 22:51
George_George3-Jun-08 22:51 
GeneralRe: clean up resource in HttpListenerContext Pin
leppie3-Jun-08 23:37
leppie3-Jun-08 23:37 
GeneralRe: clean up resource in HttpListenerContext Pin
George_George3-Jun-08 23:45
George_George3-Jun-08 23:45 
GeneralRe: clean up resource in HttpListenerContext Pin
leppie4-Jun-08 0:47
leppie4-Jun-08 0:47 
GeneralRe: clean up resource in HttpListenerContext Pin
George_George4-Jun-08 0:52
George_George4-Jun-08 0:52 
GeneralRe: clean up resource in HttpListenerContext Pin
leppie4-Jun-08 1:18
leppie4-Jun-08 1:18 

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.