Why is it possible to generate proxy with svcutil for localhost only?

Why is it possible to generate proxy with svcutil for http://localhost ... only


Answer this question

Why is it possible to generate proxy with svcutil for localhost only?

  • Syedi

    I know it can :)
    My question was rather about this scenario:
    1) I want to generate proxy for 3rd party service (even not implemented in WCF but compliant with basic profile 1.0)
    2) I do not have contrlol over auth settings of the service....
    3) Service uses SSL and requieres client sice certificate to authenticate my call....
    HOW can i set svcutil to use my certificate when retrieving metadata
    Thanks
    Michal

  • CraigCody

    Michal,SVCUTIL can generate proxy for local service and remote service

    About this problem:

    ============

    we used gettingstarted sdk sample to repro this problem

    Hi Domnin,

     

    I am not able to repro this problem on my machine, and it must be something specific to your machine or IIS on your machine

     

    In self host scenario (without IIS, host your app in console application), Are you able to repro this problem

     

    By any chance, you installed Shared point server on this machine

     

    -Thank you

    Madhu

     

     



  • Daniel Tong

    Hi Michal,

     

     

    // I spoke to SVCUTIL team,I am sending their response,we support this fetaure in future release

     

    As of RC1(current build), you can configure client credentials for svcutil using the clientCredentials behavior configuration section.  You then add this behavior configuration to the client endpoint for the metadata endpoint.  Something like this:

     

    <configuration>

        <system.serviceModel>

            <client>

                <endpoint binding=”mexHttpsBinding” contract=”IMetadataExchange” behaviorConfiguraition=”MyBehavior” />

            </client>

            <behaviors>

                <endpointBehaviors>

                    <behavior name=”MyBehavior”>

                        <clientCredentials>

                            <clientCertificate storeLocation=”LocalMachine” storeName=”My”  findValue=”<your value here>” findType=”<X509FindType>“/>

                        </clientCredentials>

                    </behavior>

                </endpointBehaviors>

            </behaviors>

        </system.serviceModel>

    </configuration>

     

    Prior to RC1 there was no way to use client credentials with svcutil that I know of

     

    -Thank you

    Madhu



  • Lucky Tiger

    1. yes, using Feb CTP

    2. it's IIS host service

    3. testing on XP sp2

    4. IIS wcf web service uses anonymous authentification as well (with IUSR_... account for anonymous access)

    5. I've sent you my simple sample as well..

    Thank You



  • JohnGTN

    Thanks pauldo,are you using FEB CTP , and this is self host service or IIS host service ,and are you testing it on xp or 2003

    if it is hosted in IIS,can you please enable only anonymous authentication for this wcf service (set IIS authentication for wcf service virtual directory) and try it again.

    If you have simple repro,please send me,I will try to repro here,my email id is madhup@microsoft.com

    -Thank you

    Madhu



  • drave

    When I try 'svcutil /l:c# http://localhost/....' everything is going well.

    On the other hand, when I change 'localhost' on web server name an error appears :

    'The request failed with HTTP status 403:Forbidden

    Thank you



  • Leonard Kleinow

    But! .....what if I need to generate proxy for 3rd party web service when I dont have control over authentication settings
    Why is this (rather common) scenarion not supported
    Thanx!
    Michal Levy

  • Jim Fafrak

    You can generate proxy for remote services also,can you please give us more info about this problem.

    -Thank you

    Madhu



  • Why is it possible to generate proxy with svcutil for localhost only?