IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  Import New Web Service via WSDL

    Posted Mon October 18, 2010 12:42 PM

    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


    #API-Management
    #CentraSite
    #webMethods


  • 2.  RE: Import New Web Service via WSDL

    Posted Mon October 18, 2010 03:17 PM

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

    Daniel


    #API-Management
    #CentraSite
    #webMethods


  • 3.  RE: Import New Web Service via WSDL

    Posted Tue October 19, 2010 09:05 AM

    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]
    

    #CentraSite
    #API-Management
    #webMethods


  • 4.  RE: Import New Web Service via WSDL

    Posted Tue October 19, 2010 09:56 PM

    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


    #CentraSite
    #webMethods
    #API-Management


  • 5.  RE: Import New Web Service via WSDL

    Posted Thu May 12, 2011 07:44 AM

    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 ?


    #webMethods
    #CentraSite
    #API-Management


  • 6.  RE: Import New Web Service via WSDL

    Posted Tue May 24, 2011 10:27 AM

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

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


    #API-Management
    #webMethods
    #CentraSite


  • 7.  RE: Import New Web Service via WSDL

    Posted Tue May 24, 2011 10:29 AM

    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
    #webMethods
    #API-Management
    #CentraSite