Yes.
i have created a new USER for the VM and the same user created in the CentraSite User section.
i have attached my code As you can see below.
[b]WebReference1.ImportWsdlService myRefSite = new .WebReference1.ImportWsdlService();
String urlString = myRefSite.Url;
if (textBox5.Text.Trim() == "" || textBox4.Text.Trim() == "")
{
MessageBox.Show("Server URL and Port needed");
myRefSite.Dispose();
return;
}
String Prefix = "http://" + textBox4.Text.Trim() + ":" + textBox5.Text.Trim();
Prefix += urlString.Substring(22);
myRefSite.Url = Prefix;
WebReference1.importWSDLviaHTTP myImport = new WebReference1.importWSDLviaHTTP();
myImport.locationCentraSite = "192.168.0.128";
myImport.organization = "Default Organization";
myImport.product = "service";
myImport.locationWsdlFile = textBox1.Text.Trim();
try
{
System.Net.NetworkCredential nc = new System.Net.NetworkCredential(textBox2.Text.Trim(), textBox3.Text.Trim(), "SAGBASE");
myRefSite.Credentials = nc;
myRefSite.PreAuthenticate = true;
WebReference1.importWSDLviaHTTPResponse myResp= myRefSite.importWSDLviaHTTP(myImport);
}
catch (Exception exp)
{
MessageBox.Show(exp.Message.ToString());
myRefSite.Dispose();
return;
}[/b]