Hi Aditi,

The 'value-set' API is a *client side* API. It can be used by an UDDI node to go out and obtain data. Taken from the spec doc you referenced:

"5.6.3 get_allValidValues

A UDDI node that supports external value sets MAY invoke a get_allValidValues Web service offered by a value set provider that has granted permission to that registry to cache the valid values for that value set."

You want to use the 'Inquiry' API to query the UDDI node. I opened JUDDI-478 to no longer deploy those client side endpoints.

Cheers,

--Kurt

On 5/17/11 11:42 AM, Aditi Kukreja wrote:
Hi Kurt,

As I mentioned in my previous mail, I want to get the list of valid values for a category/taxonomy that user can specify in "keyValue" of a "KeyedReference". To do the same, I believe we can use "Value set" API set of UDDI specification (http://uddi.org/pubs/uddi_v3.htm#_Toc85908141). I am using juddi's value-set caching endpoint (http://localhost:8080/juddiv3/services/valueset-caching) which has "get_allValidValues" and it accepts a tModelKey as an argument. This API is not working for me.

Regards,
Aditi

On Tue, May 17, 2011 at 6:25 PM, Kurt T Stam <[email protected] <mailto:[email protected]>> wrote:

    Hi Aditi,

    Sorry, is the a second question? BTW, again your request is
    invalid and misses elements. I've attached a screenshot of how to
    use soapUI to get a sample request.

    --Kurt


    On 5/16/11 11:34 PM, Aditi Kukreja wrote:
    Hi Kurt,

    get_tModelDetail is working fine for me as well. For a particular
    category, I want a list of valid values for which I suppose we
    need to use *get_allValidValues* which is not working.

    <soapenv:Envelope
    xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
    xmlns:urn="urn:uddi-org:vscache_v3" xmlns:urn1="urn:uddi-org:api_v3">
    <soapenv:Header/>
    <soapenv:Body>
    <urn:get_allValidValues>
    <urn1:tModelKey>uddi:uddi.org:categorization:types</urn1:tModelKey>
    </urn:get_allValidValues>
    </soapenv:Body>
    </soapenv:Envelope>

    Regards,
    Aditi



    On Tue, May 17, 2011 at 2:38 AM, Kurt T Stam <[email protected]
    <mailto:[email protected]>> wrote:

        Hi Aditi,

        1. Please use the juddi user forum.

        2. Your soap request is invalid. If you use a tool like
        soapUI it will create an example like this:

        <soapenv:Envelope
        xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
        xmlns:urn="urn:uddi-org:api_v3">
        <soapenv:Header/>
        <soapenv:Body>
        <urn:find_tModel maxRows="?" listHead="?">
        <!--Optional:-->
        <urn:authInfo>?</urn:authInfo>
        <!--Optional:-->
        <urn:findQualifiers>
        <!--1 or more repetitions:-->
        <urn:findQualifier>?</urn:findQualifier>
        </urn:findQualifiers>
        <!--Optional:-->
        <urn:name xml:lang="?">?</urn:name>
        <!--Optional:-->
        <urn:identifierBag>
        <!--1 or more repetitions:-->
        <urn:keyedReference tModelKey="?" keyName="?" keyValue="?"/>
        </urn:identifierBag>
        <!--Optional:-->
        <urn:categoryBag>
        <!--Zero or more repetitions:-->
        <urn:keyedReference tModelKey="?" keyName="?" keyValue="?"/>
        <!--Zero or more repetitions:-->
        <urn:keyedReferenceGroup tModelKey="?">
        <!--Zero or more repetitions:-->
        <urn:keyedReference tModelKey="?" keyName="?" keyValue="?"/>
        </urn:keyedReferenceGroup>
        </urn:categoryBag>
        </urn:find_tModel>
        </soapenv:Body>
        </soapenv:Envelope>

        So it would look like:

        <soapenv:Envelope
        xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
        xmlns:urn="urn:uddi-org:api_v3">
        <soapenv:Header/>
        <soapenv:Body>
        <urn:find_tModel >
        <!--Optional:-->

        <urn:categoryBag>
        <!--Zero or more repetitions:-->
        <urn:keyedReference

           tModelKey="uddi:uddi.org:categorization:types"
            keyValue="categorization"/>

        </urn:categoryBag>
        </urn:find_tModel>
        </soapenv:Body>
        </soapenv:Envelope>

        and in my case the response is:


        <soap:Envelope
        xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";>
        <soap:Body>
        <ns2:tModelList xmlns:ns11="urn:uddi-org:vs_v3"
        xmlns:ns10="urn:uddi-org:policy_v3_instanceParms"
        xmlns:ns9="urn:uddi-org:policy_v3"
        xmlns:ns8="urn:uddi-org:subr_v3"
        xmlns:ns7="urn:uddi-org:sub_v3"
        xmlns:ns6="urn:uddi-org:vscache_v3"
        xmlns:ns5="urn:uddi-org:repl_v3"
        xmlns:ns4="urn:uddi-org:custody_v3"
        xmlns:ns3="http://www.w3.org/2000/09/xmldsig#";
        xmlns:ns2="urn:uddi-org:api_v3">
        <ns2:listDescription>
        <ns2:includeCount>15</ns2:includeCount>
        <ns2:actualCount>15</ns2:actualCount>
        <ns2:listHead>1</ns2:listHead>
        </ns2:listDescription>
        <ns2:tModelInfos>
        <ns2:tModelInfo tModelKey="uddi:uddi.org:bpel:types">
        <ns2:name>uddi-org:bpel:types</ns2:name>
        <ns2:description xml:lang="en">Category system used indicate
        BPEL processes</ns2:description>
        </ns2:tModelInfo>
        <ns2:tModelInfo
        tModelKey="uddi:uddi.org:categorization:derivedfrom">
        <ns2:name>uddi-org:derivedFrom</ns2:name>
        <ns2:description>Category system for referring tModels to other
             tModels for the purpose of reuse.</ns2:description>
        </ns2:tModelInfo>
        <ns2:tModelInfo
        tModelKey="uddi:uddi.org:categorization:entitykeyvalues">
        <ns2:name>uddi-org:entityKeyValues</ns2:name>
        <ns2:description>Category system used to declare that a value set
             uses entity keys as valid values.</ns2:description>
        </ns2:tModelInfo>
        <ns2:tModelInfo
        tModelKey="uddi:uddi.org:categorization:general_keywords">
        <ns2:name>uddi-org:general_keywords</ns2:name>
        <ns2:description>Category system consisting of namespace
             identifiers and the keywords associated with
             the namespaces.</ns2:description>
        </ns2:tModelInfo>
        <ns2:tModelInfo tModelKey="uddi:uddi.org:categorization:nodes">
        <ns2:name>uddi-org:nodes</ns2:name>
        <ns2:description>Category system for identifying the nodes
             of a registry.</ns2:description>
        </ns2:tModelInfo>
        <ns2:tModelInfo
        tModelKey="uddi:uddi.org:categorization:owningbusiness">
        <ns2:name>uddi-org:owningBusiness_v3</ns2:name>
        <ns2:description>Category system used to point to the
             businessEntity
             associated with the publisher of the
        tModel.</ns2:description>
        </ns2:tModelInfo>
        <ns2:tModelInfo tModelKey="uddi:uddi.org:relationships">
        <ns2:name>uddi-org:relationships</ns2:name>
        <ns2:description>Basic types of business
        relationships</ns2:description>
        </ns2:tModelInfo>
        <ns2:tModelInfo tModelKey="uddi:uddi.org:categorization:types">
        <ns2:name>uddi-org:types</ns2:name>
        <ns2:description>UDDI Type Category System</ns2:description>
        </ns2:tModelInfo>
        <ns2:tModelInfo
        tModelKey="uddi:uddi.org:categorization:validatedby">
        <ns2:name>uddi-org:validatedBy</ns2:name>
        <ns2:description>Category system used to point a value set or
             category
             group system tModel to associated value set Web service
             implementations.</ns2:description>
        </ns2:tModelInfo>
        <ns2:tModelInfo
        tModelKey="uddi:uddi.org:wsdl:categorization:protocol">
        <ns2:name>uddi-org:wsdl:categorization:protocol</ns2:name>
        <ns2:description xml:lang="en">Category system used to
        describe the protocol supported by a
        wsdl:binding</ns2:description>
        </ns2:tModelInfo>
        <ns2:tModelInfo
        tModelKey="uddi:uddi.org:wsdl:categorization:transport">
        <ns2:name>uddi-org:wsdl:categorization:transport</ns2:name>
        <ns2:description xml:lang="en">Category system used to
        describe the transport supported by a
        wsdl:binding</ns2:description>
        </ns2:tModelInfo>
        <ns2:tModelInfo tModelKey="uddi:uddi.org:wsdl:porttypereference">
        <ns2:name>uddi-org:wsdl:portTypeReference</ns2:name>
        <ns2:description xml:lang="en">A category system used to
        reference a wsdl:portType tModel</ns2:description>
        </ns2:tModelInfo>
        <ns2:tModelInfo tModelKey="uddi:uddi.org:wsdl:types">
        <ns2:name>uddi-org:wsdl:types</ns2:name>
        <ns2:description xml:lang="en">WSDL Type Category
        System</ns2:description>
        </ns2:tModelInfo>
        <ns2:tModelInfo tModelKey="uddi:uddi.org:xml:localname">
        <ns2:name>uddi-org:xml:localName</ns2:name>
        <ns2:description xml:lang="en">A category system used to
        indicate XML local names</ns2:description>
        </ns2:tModelInfo>
        <ns2:tModelInfo tModelKey="uddi:uddi.org:xml:namespace">
        <ns2:name>uddi-org:xml:namespace</ns2:name>
        <ns2:description xml:lang="en">A category system used to
        indicate namespaces</ns2:description>
        </ns2:tModelInfo>
        </ns2:tModelInfos>
        </ns2:tModelList>
        </soap:Body>
        </soap:Envelope>
        Hope this helps!

        Cheers,

        --Kurt


        On 5/16/11 3:33 PM, Aditi Kukreja wrote:

            Hi Kurt,

            I have a particular use case in which I want to list all
            the categories and the valid values for each category
            present in a JUDDI server.

            I am retrieving all the categories from the juddi server
            by firing a findTModel call with the parameters as shown
            in the request xml below.

            <find_tModel>

            <categoryBag>

            <keyedReference

            tModelKey="uddi:uddi.org:categorization:types"

            keyValue="categorization"/>

            </categoryBag>

            </find_tModel>

            I am able to get all the taxonomies using the above query
            however, when I try to retrieve the valid values using
            the getAllValidValues request as below

            <soapenv:Envelope
            xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
            xmlns:urn="urn:uddi-org:
            vscache_v3" xmlns:urn1="urn:uddi-org:api_v3">
            <soapenv:Header/>
            <soapenv:Body>
            <urn:get_allValidValues>
            <urn1:tModelKey>uddi:uddi.org:categorization:types</urn1:tModelKey>
            </urn:get_allValidValues>
            </soapenv:Body>
            </soapenv:Envelope>

            I get an error stating that the  feature is not
            supported. I am pasting below the response xml for your
            reference below.

            <soap:Envelope
            xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";>
            <soap:Body>
            <soap:Fault>
            <faultcode>soap:Server</faultcode>
            <faultstring>This version does not support this feature
            or API</faultstring>
            <detail>
            <dispositionReport xmlns="urn:uddi-org:api_v3"
            xmlns:ns10="urn:uddi-org:vs_v3"
            xmlns:ns2="urn:uddi-org:vscache_v3"
            xmlns:ns3="http://www.w3.org/2000/09/xmldsig#";
            xmlns:ns4="urn:uddi-org:sub_v3"
            xmlns:ns5="urn:uddi-org:repl_v3"
            xmlns:ns6="urn:uddi-org:custody_v3"
            xmlns:ns7="urn:uddi-org:subr_v3"
            xmlns:ns8="urn:uddi-org:policy_v3"
            xmlns:ns9="urn:uddi-org:policy_v3_instanceParms">
            <result errno="10050">
            <errInfo errCode="E_unsupported">Usupported feature or
            API.</errInfo>
            </result>
            </dispositionReport>
            </detail>
            </soap:Fault>
            </soap:Body>
            </soap:Envelope>

            Any help on this will be deeply appreciated.

            Thanks,
            Aditi






Reply via email to