WSe 3.0 VS 2008

Posted on 2009-12-18
Last Modified: 2013-11-26
Trying to build a console application using in Visual Studio 2008 that connects to a webservice that requires the use of WSE 3.0.

I can add the references to the webservice in the UI but there is a missing component that I need here...

the .setPolicy method is not present on my web reference objects.
I have seen a few ways to get around this but this code does not work at the moment..

assertion = New UsernameOverTransportAssertion
TokenProvider = New UsernameTokenProvider(_qcIdentity, _qcPassword)
assertion.UsernameTokenProvider = TokenProvider
policy = New Policy

When I was working this in VS 2005 it would work fine but not now.

It has been proposed that I build a proxy class in VS2005 and add a reference to that dll - I have tried that but when I do that the methods are still missing. Can someone help me understand how I can make use of this web service without a ton mile of new technologies to learn?

I really just need the app to complile in Visual Studio 2008 and I have no problem building the proxy class in 05 if there is a valid solution to how to make this work.

Thank you in advance for your help - it is greatly appreciated.
Question by:NTGuru705
    1 Comment
    LVL 1

    Accepted Solution

    I suppose the policy could be set in an override in the new routine (of the proxy classes) though I am a bit unsure how that would work and still expose the methods without overriding every web method in the proxy class.


    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    Summary Displaying images in RichTextBox is a common requirement with limited solutions available. Pasting through clipboard or embedding into RTF content only support static images.  This article describes how to insert Windows control objects int…
    A basic question.. “What is the Garbage Collector?” The usual answer given back: “Garbage collector is a background thread run by the CLR for freeing up the memory space used by the objects which are no longer used by the program.” I wondered …
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    732 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now