Presentation and Functional Presentation

return find_business; } The findBusiness method performs the searching operation: public BusinessList findBusinessFind_business find_business throws UDDIException, SOAPException { System.out.printCheck structure validity .. ; try { find_business.check; } catch InvalidParameterException e { System.out.printlnFailed; throw new UDDIExceptione; } System.out.printlnOK; UDDI_Inquiry_PortType inquiry = getInquiryStub; System.out.printSearch in progress ..; BusinessList businessList = inquiry.find_businessfind_business; System.out.println done; return businessList; }

2.1.3. Building and Running Demos

This section shows, how to build and run the Oracle Service Registry Advanced Inquiry demo set. Let us continue with our FindBusiness demo. 1. Be sure that the demo are properly configured and the Oracle Service Registry is up and running. 2. Change your working directory to REGISTRY_HOME\demos\advanced\inquiry Windows REGISTRY_HOMEdemosadvancedinquiry UNIX 3. Build demo using: UNIX: Windows: .run.sh make run.bat make Note When compiling demo on Windows platforms, you may see the following text: A subdirectory or file ..\..\common\.\build\classes already exists. . This is expected and does not indicate a problem. 4. To get list of all available demos, run Page 671

2.1.3. Building and Running Demos

run.bat help Windows: .run.sh help UNIX: 5. The selected demo can be executed via the run command using the name of the demo as a parameter. For example, to run the FindBusiness demo, invoke run.bat FindBusiness Windows: .run.sh FindBusiness UNIX: The output of this demo will resemble the following: Searching for businesses by category where keyedReference Enter tModelKey [uddi:systinet.com:demo:location:floor]: Enter keyValue [1]: 3 Enter operator =,,,=,=, [=]: Enter quantifier exists,notExists [exists]: tModelKey = uddi:systinet.com:demo:location:floor keyValue = 3 operator = quantifier = exists Check structure validity .. OK Using Inquiry at url http:van.in.idoox.com:8888registryuddiinquiryExt .. done Search in progress .. done Displaying 1 of 1, starting at position 1 Business 1 : uddi:systinet.com:demo:it businessInfoExt businessKey=uddi:systinet.com:demo:it xmlns=http:systinet.comuddiapiv3ext5.0 name xmlns=urn:uddi-org:api_v3ITname description xmlns=urn:uddi-org:api_v3IT departmentdescription serviceInfos xmlns=urn:uddi-org:api_v3 serviceInfoExt serviceKey=uddi:systinet.com:demo:it:support businessKey=uddi:systinet.com:demo:it xmlns=http:systinet.comuddiapiv3ext5.0 name xmlns=urn:uddi-org:api_v3Supportname description xmlns=urn:uddi-org:api_v3Telephone supportdescription bindingTemplates xmlns=urn:uddi-org:api_v3 bindingTemplate bindingKey=uddi:b77eb8f0-86ce-11d8-ba05-123456789012 serviceKey=uddi:systinet.com:demo:it:support descriptionIT related issues shall be reported theredescription accessPoint useType=endPointtel:+1-123-456-7890accessPoint tModelInstanceDetails tModelInstanceInfo tModelKey=uddi:uddi.org:transport:telephone tModelInstanceDetails bindingTemplate bindingTemplates serviceInfoExt serviceInfoExt serviceKey=uddi:systinet.com:demo:hr:employeesList businessKey=uddi:systinet.com:demo:hr xmlns=http:systinet.comuddiapiv3ext5.0 name xmlns=urn:uddi-org:api_v3EmployeeListname description xmlns=urn:uddi-org:api_v3wsdl:type representing servicedescription Page 672

2.1.3. Building and Running Demos