473,765 Members | 1,965 Online
Bytes | Software Development & Data Engineering Community
+ 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:UsernameT oken>
…….
</wsse:UsernameTo ken>

to which i can create a string such as :

<wsse:UsernameT oken>
<wsse:Username> thelogin</wsse:Username>
<wsse:Passwor d Type=""wsse:Pas swordText"">the password</wsse:Password>
</wsse:UsernameTo ken>

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
RequestSoapCont ext
however my proxy doesn't have anything like RequestSoapCont ext 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 1223

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

Similar topics

2
4961
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
1303
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 testing architecture while developing a WS. I have my environment (WindowsXP Pro, IIS 5.1, VB.NET 2003) working smoothly. The WS I create work perfectly fine (from other .NET applicatons). Unfortunately, when I use the Debug->Start and click...
0
2059
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 Web Services" I took the WS-Eventing WSDL file and added <binding>'s and <service>'s... Then i took the apache axis wsdl2java tool and i got nice
1
1317
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 data and I realy need to take care of this my question:
2
3505
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 .NET or WSE? -- Kind regards, SB
0
1000
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 has to be deployed in another server(JavaServer IP) which has to access the intermediate server WS,which inturn contacts db server WS and the results should reach java client. I have made a simple java application and i'm able to retrieve the XML
6
4008
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 password the client used to log on to Windows. The WS then needs to see which Active Directory roles the user belongs to and allow the user (or not) to perform specific tasks with the WS. Can anyone please point me in the right direction as to the
0
1334
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 to send the message to next within the service chain. SOAP targeted headers and SOAP roles seem to suppor this quite well. My question is can this be used in conjunction with WS-Addressing? Meaning can I send a WS-Addressing compliant message...
1
4098
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 particular mentions having tried WSE 2.0, and WSE 3.0, and says there is no way to turn off WS-Addressing in a WS client, using those frameworks. I find that very hard to believe. There appears to be a problem w/ WS-Addressing headers in the...
4
8283
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 indeed do what I was looking for. Thanks for suggestion, -Mathieu
0
9399
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
9955
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9833
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7378
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6649
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5275
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3924
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 we have to send another system
2
3531
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2806
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.