Groups | Blog | Home
all groups > dotnet web services enhancements > november 2006 >

dotnet web services enhancements : PDA WSE 2 & OpenNetCF


Pablo Cibraro [MVP]
11/9/2006 10:09:21 AM
Hi Keith,

Did you take a look to this web site http://www.mperfect.net/cfWse2/ ?. You
can find there all the WSE 2.0 Quickstarts written for OpenNETCF.

Regards,
Pablo Cibraro.

[quoted text, click to view]

news.btinternet.com
11/9/2006 12:28:03 PM
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

AddThis Social Bookmark Button