Steve Luisser created JUDDI-1008: ------------------------------------ Summary: find_business returns an error when querying a tModel when using the v2 Inquire API Key: JUDDI-1008 URL: https://issues.apache.org/jira/browse/JUDDI-1008 Project: jUDDI Issue Type: Bug Components: core Affects Versions: 3.3.7 Reporter: Steve Luisser
The v2 Inquire API find_business returns an error when querying for a tModel. The v3 call gives a valid response. V2 Request <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <soap:Body> <find_business generic="2.0" maxRows="1000" xmlns="urn:uddi-org:api_v2"> <identifierBag> <keyedReference tModelKey="uuid:578a72bd-8f35-4099-b559-8b4997389bc5" keyName="DUNS" keyValue="12-345-6781" /> </identifierBag> </find_business> </soap:Body> </soap:Envelope> V2 Response <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <soap:Fault> <faultcode>soap:Server</faultcode> <faultstring>At least one search criterion must be supplied. Try using '%' as a wild card with the a 'approximateMatch' find qualifer for everything</faultstring> <detail> <dispositionReport xmlns="urn:uddi-org:api_v2" generic="2.0" operator="uddi:juddi.apache.org:node1" truncated="false"> <result errno="10500"> <errInfo errCode="E_fatalError">A serious technical error has occurred while processing the request.</errInfo> </result> </dispositionReport> </detail> </soap:Fault> </soap:Body> </soap:Envelope> V3 Request <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <soap:Body> <find_business maxRows="1000" xmlns="urn:uddi-org:api_v3"> <identifierBag> <keyedReference tModelKey="uuid:578a72bd-8f35-4099-b559-8b4997389bc5" keyName="DUNS" keyValue="12-345-6781" /> </identifierBag> </find_business> </soap:Body> </soap:Envelope> V3 Response <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <ns2:businessList xmlns:ns11="urn:uddi-org:policy_v3_instanceParms" xmlns:ns10="urn:uddi-org:vs_v3" xmlns:ns9="urn:uddi-org:repl_v3" xmlns:ns8="urn:uddi-org:policy_v3" xmlns:ns7="urn:uddi-org:custody_v3" xmlns:ns6="urn:uddi-org:subr_v3" xmlns:ns5="urn:uddi-org:sub_v3" xmlns:ns4="urn:uddi-org:vscache_v3" xmlns:ns3="http://www.w3.org/2000/09/xmldsig#" xmlns:ns2="urn:uddi-org:api_v3" truncated="false"> <ns2:listDescription> <ns2:includeCount>1</ns2:includeCount> <ns2:actualCount>1</ns2:actualCount> <ns2:listHead>1</ns2:listHead> </ns2:listDescription> <ns2:businessInfos> <ns2:businessInfo businessKey="uddi:juddi.apache.org:0a528283-47f9-4bf8-b29c-1c1e0338fe28"> <ns2:name xml:lang="en">Test Provider</ns2:name> <ns2:serviceInfos> <ns2:serviceInfo serviceKey="uddi:juddi.apache.org:249f327a-68bd-4cd7-b358-c0347369e573" businessKey="uddi:juddi.apache.org:0a528283-47f9-4bf8-b29c-1c1e0338fe28"> <ns2:name>Test Service</ns2:name> </ns2:serviceInfo> </ns2:serviceInfos> </ns2:businessInfo> </ns2:businessInfos> </ns2:businessList> </soap:Body> </soap:Envelope> -- This message was sent by Atlassian Jira (v8.3.4#803005)