cant connect to my endpoint through visual studio

  • i created this endpoint:

    create

    endpoint first_Endpoint

    state = started

    as http

    (

    path ='/sql',

    authentication=(integrated),

    ports=(clear),

    site='server'

    )

    for soap

    (

    webmethod 'provideInfo'

    (name='adventureworks.dbo.uspGetBillOfMaterials'),

    wsdl=default,

    schema = standard,

    database = 'AdventureWorks',

    Namespace = 'http://tempuri.org/'

    );

    go

     

    the above code runs fine in my local instance, but when in visual studio i go to add web reference and type http://localhost/sql/ , or http://machineName/sql/first_Endpoint it can find nothing. what am i doing wrong here?

  • Winston,

    I encountered the same issue and found information in BOL.  The pertinent line for me was "Note, by default, the add Web reference functionality in Visual Studio always uses Kerberos when it tries to retrieve the WSDL response from the Web Service."  See "Specifying Non_Kerberos Authentication in Visual Studio Projects" at http://msdn2.microsoft.com/en-us/library/ms175929.aspx.

     

  • Hi. Im still having trouble understanding the contents of the page you supplied. the code:

    myServer.sql_endpoint proxy = new myServer.sql_endpoint();

    proxy.Credentials = System.Net.CredentialCache.DefaultCredentials;

    what kind of object is myServer? what references do i have to add to the project to get whatever type of object this is? I have created web services and used them in client apps before and never had to do anything like this.

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply