Import New Web Service via WSDL

Hi All,
I have some difficulties to run methods from the WSDL - ImportWsdlService.
I am trying exporting a new wsdl to the centraSite via the method - importWSDLviaHTTP.
When I run my application I keep getting the error=“INMWSE0001-Unable to connect to 192.168.0.128 using the provided username and password”.
I don’t understand why it is happens because when I add the web reference it succeed.
Regards,
Liran

Hi
Did you supply username/password for basic authentication to the Importer Service?

Daniel

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]

Hi,

where do you specify that you want to use Basic Authentication?
The samples I found in the web use the CredentialCache for that purpose.

Daniel

I am having the problem also




10.60.42.82
<1>

cid:746672825841
myMulplyInt
WSDL

Shared IT Services
service


INMWSE0001: Unable to connect to 10.60.42.82 using the provided username and password.

Do you have the solution ?

Have you try the webservice to import service in ???, it works well without writing codes…

http://yourhost :53307/wsstack/services/ImportWsdlService

eg.

http://localhost:53307/wsstack/services/ImportWsdlService

http://localhost:53305/CentraSite/CentraSite http://devw034.perpetual.com.au:5555/ws/UDDI_IN:myMulplyInt3?WSDL Perpetual Limited service