Click here to Skip to main content
15,795,231 members
Please Sign up or sign in to vote.
4.33/5 (2 votes)
See more:
I am Invoking one web service by passing parameter. It says UserName and Password is required for this Service. I have a username and pwd. how to send these parameter to soap header. I add web reference thorugh by right click the project then add web reference etc. Now the difficultiy am facing is how to invoke the service along with security header
agent_kruger 12-Nov-13 7:57am    
are you working on windows form or some other platform?
ispiders 13-Nov-13 3:01am    
web application

1 solution

Hi ISpiders - Spider Iterface ;-),

For your question, you can refer link1 [^]and link2[^].
Which would definitely help you.

Share this answer
ispiders 13-Nov-13 3:00am    
Link 1 is tried alreday, am not getting the
SoapContext requestContext = serviceProxy.RequestSoapContext;
I dont get the RequestSoapContext attribute for my service
♥…ЯҠ…♥ 13-Nov-13 3:02am    
How sad, what about link2? have you tried that link?
ispiders 13-Nov-13 8:05am    
In the Second LInk am not getting the Message Header Class Could you please help me

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900