473,473 Members | 1,899 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

WS-SECURITY and calling a webservice

i am having problems setting the 'credentials' to call a webservice..

i have the WSDL and successfully have created a proxy , and the right code
to call the webservice, other than setting the credentials..

i am using vs 2005 with dotnet framework 2.0

according to their docs the webservice (made by a third party) expects
authentication as below:

A WS-Security Username Token with password in clear text
<wsse:UsernameToken>
…….
</wsse:UsernameToken>

to which i can create a string such as :

<wsse:UsernameToken>
<wsse:Username>thelogin</wsse:Username>
<wsse:Password Type=""wsse:PasswordText"">thepassword</wsse:Password>
</wsse:UsernameToken>

however i don't have a clue how to assign the above to the webservice proxy.
In my searches here (and some articles on codeproject, and msdn).. people use
a class called usernameToken to create the token.. a class i can't find
anywhere, and then adding them through a property of the proxy called
RequestSoapContext
however my proxy doesn't have anything like RequestSoapContext and i can't
find anything in my MSDN library about it either..

this is something that should be simple, but i've spent far too many hours
trying to find out the way to connect these simple dots.

please help.

Karl

Feb 11 '06 #1
0 1181

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: John Jenkins | last post by:
Does anyone have any introductory references to either WS-Addressing, or WS-Eventing, with perhaps worked examples?? Thanks
1
by: Michael O'Neill | last post by:
I am new to .NET, but not new to WS or development. I am eager to use VB.NET as a (relatively) rapid WS development tool. One of the .NET features that helps accomplishing that is the the canned...
0
by: Stefan Lischke | last post by:
Hi, I'm really desperate using code generation(wsdl.exe) from wsdl files for latest WS-Eventing(including WS-Addressing) Specs. I'm writing my diploma about "publish subscribe systems based on...
1
by: Ken | last post by:
hi I have an Async WS updating my SQLserver DB 80 clients are connecting to the WS all day updating the DB I have only ONE UPDATE instruction in the WS I dont want to have conflicts with the...
2
by: SB | last post by:
Can someone please tell me Microsoft .NET's position on this WS-Notification specification that includes the pub/sub model? Is there something in the pipeline or already available as part of the...
0
by: Guhanath | last post by:
Hi all, We are developing 2 .Net WS that has to be deployed in 2 different servers.Say one is a intermediate server WS(intServer IP),other is DB server WS(DBserverIP). A java client,say a JSP...
6
by: Jimmy | last post by:
Hi, I need to develop a secure Web Service that requires a username and password. One of the requirements is that the WS supports Windows Authentication, meaning accepts the username and...
0
by: gerritmitchell | last post by:
Hi, I have a situation where I need to send a SOAP message from a receiver through multiple intermediaries and then to an ultimate receiver. The intial sender will tell the intermediary where...
1
by: =?Utf-8?B?dWx0cmFuZXQ=?= | last post by:
We have a client that uses .Net that needs to work against our Java (xfire) based WS. My question is: how can a .Net (C#) WS client be configured to not send WS-Addressing headers? The client in...
4
by: mathieu | last post by:
Hi, I am having a hard time understanding how to use std::ws. I am trying to parse a simple string (*). My goal would be that 'st' contains 'Hello World'. I thought that using std::ws would...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.