PDA WSE 2 & OpenNetCF

K

Keith Wilson

Hello all

I am trying to upload/download files via a webservice to/from a PDA.

The webservices are secured using WSE 2.0 (this cannot change).

..NETCF 2 does not support WSE 2.0 so am using OpenNetCFon the PDA.

All works OK but I am having trouble adding a UserNameToken to the SOAP
context and signing the SOAP message with the token.

The equivalent lines I need to replace in 'normal' .NET 2 are....

Dim tok As UsernameToken = New UsernameToken(Username, Password,
PasswordOption.SendPlainText)
proxy.RequestSoapContext.Security.Tokens.Add(tok)
proxy.RequestSoapContext.Security.Elements.Add(New
Microsoft.Web.Services2.Security.MessageSignature(tok))

Can anyone help ?

Much appreciated
Keith Wilson
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,535
Members
45,007
Latest member
obedient dusk

Latest Threads

Top