473,233 Members | 1,586 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,233 software developers and data experts.

Calling web Service, from one error to another "Proxy Access Denied" into "The underlying connection was closed"

Hi There,

I've generated a C# file from a wsdl file using wsdl.exe utility.
Then I created a console application and made a call to the method
generated, first I got the error:

"The request failed with HTTP status 407: Proxy Access Denied."

Then I added a proxy validating and proxy credentials and got this:

"The underlying connection was closed: An unexpected error occurred on
a receive."

I send you the code to see if you can help me on this one, please...

Thanks,

Luis Miguel Pinho

----------------------------------------------------------------

Z_PO_SyncService service = new Z_PO_SyncService();

WebProxy wp = new System.Net.WebProxy("172.28.6.2:80",true);
wp.Credentials = System.Net.CredentialCache.DefaultCredentials;

service.Proxy = wp;
ZLOTS a = new ZLOTS();
a.BATCH = "23";
ZLOTS b = new ZLOTS();
b.BATCH = "45";

ZLOTS[] input = new ZLOTS[]{a,b};
ZPOSLIST[] output = null;

try
{
service.Z_PO_RETURN_VERS2_OB_Sync(ref input,ref output);
}
catch(Exception ex)
{
Console.WriteLine("An error occured:");
Console.WriteLine("******************************* *******");
Console.WriteLine(ex.Message);
Console.WriteLine("******************************* *******");
return;
}

foreach(ZPOSLIST po in output)
{
Console.WriteLine(po.BATCH+"|"+po.EBELN+"|"+po.EBE LP+"|"+po.ELIKZ);
}

Nov 23 '05 #1
0 2569

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

Similar topics

4
by: David Cho | last post by:
Hi, this is just plain strange. This is my code. HttpWebRequest request = (HttpWebRequest) WebRequest.Create("http://www.yahoo.com"); request.Method = "POST"; request.ContentType =...
4
by: Carlitos | last post by:
Hi there, I got a web application in vb.net that uploads a .zip file to a subfolder inside the root folder of the web application. c:\Inetpub\wwwroot\MyWebApp\uploaddir Then, a c# library...
6
by: ASP.Confused | last post by:
I have an ASP.NET page writtein in VB that uses ADODB. I just had to force-install MDAC 2.8 after I tried to rollback to 2.6 (my web host uses this, and I wanted to be compatible with them.) I...
0
by: ASP.Confused | last post by:
The old message looked a little stale, so I am re-posting it here. Anybody have any ideas of what I could do?!? The previous responses to this question are below. If you want to look at the...
23
by: deathtospam | last post by:
A day or two ago, I wrote a quick ASPX page with a CS codebehind using Visual Studio .NET 2005 -- it worked, I saved it and closed the project. Today, I came back to the project, reopened the...
1
by: srivatsans101 | last post by:
Hi, I'm trying to access the IFrame contents on a HTML page as frames.document But in IE, I'm getting Access Denied Error Message. I tried to add the IFrame's Src WebSite (a...
2
by: Wimpie van Lingen | last post by:
Hey I have some more questions with regards to Remoting in .NET 2. I'm using TCP with the Binary formatter. My solution consists of 4 projects: - Class Library containing the server classes...
1
by: Odd B Andersen | last post by:
I get this message in the db2diag.log. 2008-04-01-10.41.37.174000+120 E13321H539 LEVEL: Error (OS) PID : 3528 TID : 144 PROC : db2syscs.exe INSTANCE: DB2 ...
4
by: Sin Jeong-hun | last post by:
I don't get the message so it's hard to debug that, but some of my clients report that they get "The underlying connection was closed unexpectedly" exception. According to this site (http://...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...

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.