locked
error logging in while publishing on uddi RRS feed

  • Question

  • Hi,

    I am trying to publish my service on uddi but even pefore publishing it is giving me error of user login failed while my login and password is correct. I tried to access the web UI on the link  http://test.uddi.microsoft.com so that i can check whether there are some problems with my login information or not but i cant really access the publishing UI on this link. so can anyone help me with the prob why isnt it logging in programatically and secondly where can i find web UI to publish. the code is as follows:

     

    Publish.Url = "http://test.uddi.microsoft.com/publish";

    Publish.User = "my login name";

    Publish.Password = "*************";

    //Create tModel

    SaveTModel stm = new SaveTModel();

    stm.TModels.Add();

    stm.TModels[0].Name = "http://localhost:8080/service1/mex?wsdl";

    stm.TModels[0].Descriptions.Add("en", "a test service wsdl");

    stm.TModels[0].OverviewDoc.OverviewURL = "http://localhost:8080/service1/mex?wsdl";

    //The following line is necessary for proper categorization of your tModel

    stm.TModels[0].CategoryBag.Add

    ("uddi-org:types",

    "wsdlSpec",

    "uuid:c1acf26d-9672-4404-9d70-39b756e62ab4");

    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 e)

    {

    Console.WriteLine(e.Message);

    Console.ReadLine();

    return;

    }

     

    Console.WriteLine(sTModelKey);

    Console.ReadLine();

    Monday, November 6, 2006 3:17 PM

Answers

  • The UDDI Business Registry (test.uddi.microsoft.com or uddi.microsoft.com) is no longer available. You should instead use a standalone UDDI registry such as UDDI Services which is a feature of Windows Server 2003.


    Hope this helps,

    Andy Milligan.

    Tuesday, November 7, 2006 5:09 PM
  • UDDI Services is a server only feature and is not available for any version of Windows XP.

    Regarding your previous issue (the 404 error), I suspect that the issue is with the publish URL that you are using. With UDDI Services in Windows Server 2003, the default Windows authentication publish URL should be https://mySite/uddi/publish.asmx. Try using that instead.

    Hope this helps,

    Andy Milligan

    Tuesday, January 2, 2007 8:08 AM

All replies

  • The UDDI Business Registry (test.uddi.microsoft.com or uddi.microsoft.com) is no longer available. You should instead use a standalone UDDI registry such as UDDI Services which is a feature of Windows Server 2003.


    Hope this helps,

    Andy Milligan.

    Tuesday, November 7, 2006 5:09 PM
  • Hi,

    Thank you for the info as i have been wondering why havent i been able to find this microsoft node. I have just started working with this stuff and dont really know how to go about it. I wanted to used the test uddi node by microsoft just to get my example published. Can you please guide me what can i do now. I am working on Windows XP and how can i access some standalone uddi registry.

    I am looking forward to some support.

    Wednesday, November 8, 2006 12:52 PM
  • Hi all,

    Now that i have enterprise uddi services installed on Windows server 2003, I can access and publish web services through web browser. But i am still not able to publish my service programatically. The exception that i encounter is:The request failed with HTTP status 404: not found.

    I am also posting my code. can please someone help me with it.

    System.Net.ServicePointManager.CertificatePolicy = new TrustAllCertificatePolicy();

    Publish.Url = "http://uddiserver/publish

    Publish.User = "uddiuser";

    Publish.Password = "********";

    //Create tModel

    SaveTModel stm = new SaveTModel();

    stm.TModels.Add();

    stm.TModels[0].Name = "http://localhost:8080/service1/mex?wsdl";

    stm.TModels[0].Descriptions.Add("en", "a test service wsdl");

    stm.TModels[0].OverviewDoc.OverviewURL = "http://localhost:8080/service1/mex?wsdl";

    //The following line is necessary for proper categorization of your tModel

    stm.TModels[0].CategoryBag.Add

    ("uddi-org:types",

    "wsdlSpec",

    "uuid:c1acf26d-9672-4404-9d70-39b756e62ab4");

    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 e)

    {

    Console.WriteLine(e.Message);

    Console.ReadLine();

    return;

    }

     

    Console.WriteLine(sTModelKey);

    Console.ReadLine();

    Wednesday, November 15, 2006 12:18 PM
  • Andy,

    Is there any other option except to use Windows Server 2003 to access a UDDI Registry?

    Is it possible to host any private UDDI registry on Windows XP?

    Please let me know. In my current requirements I can't have Windows Server 2003 ..


    Rajat Khare

    Friday, December 15, 2006 9:14 AM
  • UDDI Services is a server only feature and is not available for any version of Windows XP.

    Regarding your previous issue (the 404 error), I suspect that the issue is with the publish URL that you are using. With UDDI Services in Windows Server 2003, the default Windows authentication publish URL should be https://mySite/uddi/publish.asmx. Try using that instead.

    Hope this helps,

    Andy Milligan

    Tuesday, January 2, 2007 8:08 AM
  • UddiConnection Conn = new UddiConnection();
    Conn.PublishUrl = "http://server/uddi/publish.asmx";
    Conn.AuthenticationMode = AuthenticationMode.WindowsAuthentication;
    Set ur IIS for Windows Authentication .
    Tuesday, January 9, 2007 10:22 AM
  • Hi ,
         I have also solved the problem of publishing to uddi server using the
        the following method:

    using System;
    using System.Net;

    using Microsoft.Uddi;
    using Microsoft.Uddi.Businesses;
    using Microsoft.Uddi.Services;
    using Microsoft.Uddi.TModels;

    public class SaveMyBiz
    {

        public static void Main(string[] args)
        {
            try
            {
           
          
                UddiConnection myConn = new UddiConnection();

                myConn.PublishUrl = "http://ur server name/uddipublic/publish.asmx";
           
                myConn.AuthenticationMode = AuthenticationMode.UddiAuthentication;
           
                 myConn.Username = "domail\\administrator";
                 myConn.Password = "password";
                    GetAuthToken gat = new GetAuthToken();
                     gat.Username = myConn.Username;
                     gat.Password = myConn.Password;
                      AuthToken at = gat.Send(myConn);

              // Create a named business entity.
               BusinessEntity myBiz = new BusinessEntity();
              
                  myBiz.Names.Add("MSDN");

                // Use business entity to create an object to save a business.
                SaveBusiness sb = new SaveBusiness(myBiz);
                 
              
              // Display XML sent to UDDI server.
                Console.WriteLine(sb.ToString());
              

                // Send the save business request.
                BusinessDetail savedBiz = sb.Send(myConn);

                // Interpret the returned business detail to examine the allocated business key.
                Console.WriteLine("Business: " + savedBiz.BusinessEntities[0].Names[0].Text);
                Console.WriteLine("  Allocated key: " + savedBiz.BusinessEntities[0].BusinessKey);
            }
            catch (Microsoft.Uddi.UddiException e)
            {
                Console.WriteLine("UDDI error: " + e.Message);
            }
            catch (Exception gen)
            {
                Console.WriteLine("General exception: {0}", gen.Message);
            }
        }
    }
    PS:     use the uddipublic/publish.asmx
    Thursday, January 11, 2007 2:56 PM