Trying to Authenticate to a remote Webservice

Discussion in 'ASP .Net Web Services' started by Chip, Jun 27, 2007.

  1. Chip

    Chip Guest

    Hi -

    I have an ASP.NET Webservice that needs to call a "remote Webservice"
    as a specific user, different from the User that is calling MY
    Webservice, but I'm not able to find what it is I need to do to take
    the User Name and Domain that are parameters to MY Webservice and
    authenticate to the remote Webservice.

    I'm certain that it's not rocket science, I'm just not familiar enough
    with this part of things to be able to kmopw what to do.

    BTW: I'm doing this in VB.NET

    <WebMethod()> _
    Public Function ContactCreate(ByVal entity As
    System.Xml.XmlElement, User as String, Domain as String) As
    System.Guid
    Dim ws As New ContactWebService
    Try
    ' ------------------------------------------------------------
    ' (I'm Assuming that there is SOMETHING that I do to/with my
    ContactWebService instance (which was generated via the wsdl.exe
    program)
    ' ------------------------------------------------------------
    Return ws.Create(entity)
    Catch ex As Exception
    Dim evntLog As New System.Diagnostics.EventLog("",
    System.Environment.MachineName, "Start")
    evntLog.WriteEntry("Excpetion Caught: " + ex.Message,
    System.Diagnostics.EventLogEntryType.Information, 2)
    End Try
    End Function


    Can someone please point me in the right direction?

    Thanks in advance
    Chip
     
    Chip, Jun 27, 2007
    #1
    1. Advertisements

  2. "Chip" <> wrote in message
    news:...
    > Hi -
    >
    > I have an ASP.NET Webservice that needs to call a "remote Webservice"
    > as a specific user, different from the User that is calling MY
    > Webservice, but I'm not able to find what it is I need to do to take
    > the User Name and Domain that are parameters to MY Webservice and
    > authenticate to the remote Webservice.
    >
    > I'm certain that it's not rocket science, I'm just not familiar enough
    > with this part of things to be able to kmopw what to do.
    >
    > BTW: I'm doing this in VB.NET
    >
    > <WebMethod()> _
    > Public Function ContactCreate(ByVal entity As
    > System.Xml.XmlElement, User as String, Domain as String) As
    > System.Guid
    > Dim ws As New ContactWebService
    > Try
    > ' ------------------------------------------------------------
    > ' (I'm Assuming that there is SOMETHING that I do to/with my
    > ContactWebService instance (which was generated via the wsdl.exe
    > program)
    > ' ------------------------------------------------------------
    > Return ws.Create(entity)
    > Catch ex As Exception
    > Dim evntLog As New System.Diagnostics.EventLog("",
    > System.Environment.MachineName, "Start")
    > evntLog.WriteEntry("Excpetion Caught: " + ex.Message,
    > System.Diagnostics.EventLogEntryType.Information, 2)
    > End Try
    > End Function
    >
    >
    > Can someone please point me in the right direction?


    There's no generic answer to this question. It depends entirely on the
    remote service. For instance, it appears that the Create operation doesn't
    want your username and password, but perhaps there's a Login operation that
    does. There's no way for us to know, so you should ask the people who are in
    charge of the remote service.
    --
    John Saunders [MVP]
     
    John Saunders [MVP], Jun 28, 2007
    #2
    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. Weapons of Mass Destruction

    Trying to get Image::Magick to work on a remote server

    Weapons of Mass Destruction, Nov 15, 2003, in forum: Perl
    Replies:
    3
    Views:
    649
    Gunnar Hjalmarsson
    Nov 15, 2003
  2. Winterminute
    Replies:
    0
    Views:
    3,328
    Winterminute
    Dec 4, 2003
  3. Replies:
    4
    Views:
    509
    Keith Thompson
    Feb 21, 2006
  4. JeremyPollack
    Replies:
    0
    Views:
    529
    JeremyPollack
    Jun 26, 2007
  5. davidj411
    Replies:
    7
    Views:
    3,844
    Tim Golden
    Oct 8, 2009
  6. Tim Chandler
    Replies:
    0
    Views:
    343
    Tim Chandler
    Oct 7, 2003
  7. ALI-R

    Authenticate with a webservice

    ALI-R, Jan 26, 2005, in forum: ASP .Net Web Services
    Replies:
    0
    Views:
    135
    ALI-R
    Jan 26, 2005
  8. Replies:
    1
    Views:
    222
    Jason LaRiviere
    Nov 28, 2006
Loading...