For Programmers: Free Programming Magazines  


Home > Archive > Microsoft Webservices > May 2005 > Getting error "The underlying connection was closed: Unable to connect to the re









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Getting error "The underlying connection was closed: Unable to connect to the re
rama

2005-05-17, 4:02 pm

Hi,

I am getting the "The underlying connection was closed: Unable to connect to
the remote server." error while sending the tModel. Please find the code
below.


Publish.Url ="https://machinename/uddi";

Publish.User="test";

Publish.Password="password";

Publish.AuthenticationMode = AuthenticationMode.UddiAuthentication;

SaveTModel stm = new SaveTModel();

stm.TModels.Add();

stm.TModels[0].Name = "abhi-test";

stm.TModels[0].Descriptions.Add("en","Insert description here");

stm.TModels[0].OverviewDoc.OverviewURL = "http://machine/GETDATA/test.wsdl";

/string sTModelKey = "";

//Send to UDDI

try

{

TModelDetail tmd = stm.Send();

sTModelKey = tmd.TModels[0].TModelKey;

}

catch (UddiException ue)

{

Console.WriteLine ( ue.Message );

Console.ReadLine ();

//return;

}

catch (Exception er)

{

Console.WriteLine ( er.Message );

Console.ReadLine();

//return;

}



Your help will be appriciated



Thanks & Regards,

Rama


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com