473,406 Members | 2,894 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

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.ELSLocationService
Dim locReq As O2Test.LocationResponse
Dim objProxy As New System.Net.WebProxy
Dim reply As Boolean
Dim NetCred As New System.Net.NetworkCredential("123456", "abcdef")

objProxy.Credentials = NetCred

obj.Proxy = objProxy
reply = obj.validateCredentials(loginID, 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

Jul 21 '05 #1
0 991

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Juan Manuel Alegrķa B. | last post by:
Hi group I have been making a windows service to execute an external application. I use a timer control, I can execute the application but does't appear as a normal windows, just I see it in the...
1
by: Daniel | last post by:
what is the best way to quickly make a mechanism to configure a windows service at runtime? external app that remotes in, custom commands, pulling mechanism to config file?
0
by: Sameers (theAngrycodeR) via .NET 247 | last post by:
I think I will get MAD very soon. Its very weired problem I amfacing here. Let me explain. I have two DBF files from which I want to export data in CSVformat. I created a desktop application and...
2
by: Tim | last post by:
Hi, I was wondering if anyone knows how to get the external IP address (the address beyond the router ) using C# code? Basically this is the address that appears on the internet. Thanks Tim
5
by: snicks | last post by:
I'm trying to exec a program external to my ASP.NET app using the following code. The external app is a VB.NET application. Dim sPPTOut As String sPPTOut = MDEPDirStr + sID + ".ppt" Dim p As...
0
by: Jerry Orenstein | last post by:
Hi, I hope someone can help or point me in the right direction. I'm using VB.NET 2003. I have written a web client (exe) which sends XML/string data to another company's web service, written...
1
by: Ashley | last post by:
Hi, i have a web service created outside the .net framework. i have written an application in C# which consumes the external application.My problem is the C# application is able to send data to...
0
by: Tom | last post by:
I have a Windows Service that I wrote in VB.NET (2005). I what the OnStart method to be able to 'read' an external file - in this case, a file on another server. The file is on a shared folder...
1
by: mikelujan | last post by:
Hi, Our application starts an external application using System.Diagnostics.Process class and the Start() method, as per code snippet below. This application run as a Windows service, and must...
0
by: hsawalhi | last post by:
Hi - How can I invoke web service from ibm web sphere commerce that exist on external server (system). Notes: * I have the wsdl file and xsd files. * I create the SDO " client API". * I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.