DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Wed, 27 Jun 2007 14:39:00 -0700,    posted on: microsoft.public.dotnet.framework.aspnet.webservices        back       

Thread Index
  1    Chip
          2    John Saunders [MVP] john.saunders at trizetto.com


Trying to Authenticate to a remote Webservice   
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
Date:Wed, 27 Jun 2007 14:39:00 -0700   Author:  

Re: Trying to Authenticate to a remote Webservice   
"Chip"  wrote in message 
news:1182980340.113595.127270@m36g2000hse.googlegroups.com...

> 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]
Date:Wed, 27 Jun 2007 19:08:54 -0400   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us