External Web Service

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • John S

    #1

    External Web Service

    Hi,

    I'm trying to connect to an external web service from an ASP.NET page.

    I can create the Web Reference and get back the details etc of the available
    methods.

    I can access these methods from a VB.NET Windows application with the
    following code:

    Dim loginID As String = "123456"
    Dim Password As String = "abcdef"
    Dim obj As New O2Test.ELSLocat ionService
    Dim locReq As O2Test.Location Response
    Dim objProxy As New System.Net.WebP roxy
    Dim reply As Boolean
    Dim NetCred As New System.Net.Netw orkCredential(" 123456", "abcdef")

    objProxy.Creden tials = NetCred

    obj.Proxy = objProxy
    reply = obj.validateCre dentials(loginI D, Password)

    However when I paste the same code into a button_click command on the Web
    Page I get the error:


    The underlying connection was closed: Unable to connect to the remote server.

    We are using windows authentication internally without anonymous access.

    Can anyone suggest what else I need to do?

    Thanks

Working...