PDA WSE 2 & OpenNetCF

Discussion in 'ASP .Net Web Services' started by Keith Wilson, Nov 9, 2006.

  1. Keith Wilson

    Keith Wilson Guest

    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
     
    Keith Wilson, Nov 9, 2006
    #1
    1. Advertisements

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Sham Yemul
    Replies:
    3
    Views:
    787
    William Ryan eMVP
    Mar 3, 2004
  2. Luiz Rafael Fernandes

    Win/WEB/PDA in MVC model...

    Luiz Rafael Fernandes, May 11, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    515
    Natty Gur
    May 11, 2004
  3. Daniel Passwater via DotNetMonster.com

    C# compact framework: IO problem: app running on PDA can't find file.

    Daniel Passwater via DotNetMonster.com, Dec 30, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    972
    Craig Deelsnyder
    Jan 1, 2005
  4. Chumley Walrus
    Replies:
    1
    Views:
    617
    =?Utf-8?B?UHJha2FzaC5ORVQ=?=
    Dec 31, 2004
  5. Superdude

    Best PDA for java.

    Superdude, Oct 24, 2003, in forum: Java
    Replies:
    2
    Views:
    459
    Darryl L. Pierce
    Oct 24, 2003
  6. Milsnips

    using the OpenNetCF.Barcode class

    Milsnips, Mar 19, 2007, in forum: ASP .Net
    Replies:
    1
    Views:
    670
    Milsnips
    Mar 19, 2007
  7. Guest
    Replies:
    9
    Views:
    1,491
    Juan T. Llibre
    Jul 17, 2009
  8. Anil
    Replies:
    1
    Views:
    773
    Jean-Luc David [MS-MVP]
    Jul 31, 2004
Loading...