making WSE Client using OpenNetCF

Last post 03-11-2008 5:32 by ziqb. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 03-11-2008 5:32

    • ziqb
    • Top 500 Contributor
    • Joined on 03-11-2008
    • Posts 1

    making WSE Client using OpenNetCF

     

    I'm trying to consume a web service from .net compact framework and want to use the features that OpenNETCF afford.  I've added the OpenNETCF.Web.Services2 namespace to my c# project.  However, now I'm stuck.  The proxy that is generated when I add web reference does not contain a WSE class so I'm not sure how to use the OpenNETCF features with the auto-generated proxy.

    as per my thinking
    OpenNETCF.Web.Services2 would have been equivalent to Microsoft.Web.Services2 but this is not
    Ive made ( working )Client in Windows application. i make the proxy class inherited from "Microsoft.Web.Services2 .WebServicesClientProtocol" instead of "System.Web.Services.Protocols.SoapHttpClientProtocol" and use this code to add security tokens

                UsernameToken tok = new UsernameToken("Name", "Password", PasswordOption.SendPlainText);
                proxy.RequestSoapContext.Security.Tokens.Add(tok);
                proxy.RequestSoapContext.Security.Elements.Add
                   (new MessageSignature(tok));

     

     

    how to use the features of WSE in OpenNetCF ????????????
    no documentation, no help forums ....
    Stuck ...
     

Page 1 of 1 (1 items)