#26 serivce name problem when service has more than one names.

open-accepted
None
5
2006-11-13
2004-06-02
Anonymous
No

serivce name problem when service has more than one names.

Discussion

  • Katharine Jagger

    Logged In: YES
    user_id=1214596

    ORIGINAL COMMENTS:

    If set more than one names to service, after retrive it, the
    name vector returned contains the names are all have some
    values with the first one.
    This happens becuase that he code of
    org.uddi4j.response.SreviceInfo.java, its constuctor has the
    code looks like,
    public ServiceInfo(Element base) throws UDDIException {
    // Check if it is a fault. Throws an exception if it is.
    super(base);
    serviceKey = base.getAttribute("serviceKey");
    businessKey = base.getAttribute("businessKey");
    NodeList nl = null;
    nl = getChildElementsByTagName(base,
    Name.UDDI_TAG);
    for (int i=0; i<nl.getLength(); i++) {
    nameVector.addElement(new Name((Element)nl.item
    (0)));
    }
    }

    in the for loop nameVecotr always add the first element of the
    variable of nl. I think this is a bug, it doesn't make sense to
    return the name vector same values.

     
  • Katharine Jagger

    Logged In: YES
    user_id=1214596

    ORIGINAL COMMENTS:

    If set more than one names to service, after retrive it, the
    name vector returned contains the names are all have some
    values with the first one.
    This happens becuase that he code of
    org.uddi4j.response.SreviceInfo.java, its constuctor has the
    code looks like,
    public ServiceInfo(Element base) throws UDDIException {
    // Check if it is a fault. Throws an exception if it is.
    super(base);
    serviceKey = base.getAttribute("serviceKey");
    businessKey = base.getAttribute("businessKey");
    NodeList nl = null;
    nl = getChildElementsByTagName(base,
    Name.UDDI_TAG);
    for (int i=0; i<nl.getLength(); i++) {
    nameVector.addElement(new Name((Element)nl.item
    (0)));
    }
    }

    in the for loop nameVecotr always add the first element of the
    variable of nl. I think this is a bug, it doesn't make sense to
    return the name vector same values.

     
  • Katharine Jagger

    • status: open --> open-accepted
     
  • Katharine Jagger

    • assigned_to: nobody --> kjagger
     
  • Ian Hodges

    Ian Hodges - 2006-11-13
    • assigned_to: kjagger --> ihodges
     
  • Ian Hodges

    Ian Hodges - 2006-11-13

    Logged In: YES
    user_id=1463591

    Hi,

    This is a bug and will be resolved in any future V2.0.6 when there is sufficient bugs to
    warrent the release.

    Regards,
    Ian Hodges.

     

Log in to post a comment.