473,386 Members | 1,668 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,386 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 989

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: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...

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.