Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved


Chapter 5 Using the HTTP GET Service : Getting XML Responses

Getting XML Responses
The following sections describe how to get UDDI entity information in XML format. To get a response in XML format, use a static URL in the format of http://Host:Port/uddi/EntityType/EntityKey/xml or use the HTTP GET request URL in the format of http://Host:Port/uddi/http_get?EntityTypeKey=EntityKey.
Getting Information about a Business Entity in XML Format
To get information about a business entity in XML format, you need to obtain the UDDI key of the entity and then insert the UDDI key to the above-mentioned URLs. For example, to get the information about the business entity with a UDDI key of uddi:mydomain.com:39bb34ad-54e6-40e0-be2a-bd544e6772a4, you need to:
Replace Host and Port with those of the TIBCO ActiveMatrix Runtime UDDI Server, for example, localhost:58080.
Replace EntityType with business;
Replace EntityKey with uddi:mydomain.com:39bb34ad-54e6-40e0-be2a-bd544e6772a4.
The following example URLs can be used to get the information about the business entity.
http://localhost:58080/uddi/business/uddi:mydomain.com:39bb34ad-54e6-40e0-be2a-bd544e6772a4/xml
http://localhost:58080/uddi/http_get?businessKey=uddi:mydomain.com:39bb34ad-54e6-40e0-be2a-bd544e6772a4.
Getting Information about a Service Entity in XML Format
To get information about a service entity in XML format, you need to obtain the UDDI key of the entity and then insert the UDDI key to the above-mentioned URLs. For example, to get the information about the service entity with a UDDI key of uddi:mydomain.com:0e050e6d-cb3d-480e-8f13-a08fec5d7861, you need to:
Replace Host and Port with those of the TIBCO ActiveMatrix Runtime UDDI Server, for example, localhost:58080.
Replace EntityType with service;
Replace EntityKey with uddi:mydomain.com:0e050e6d-cb3d-480e-8f13-a08fec5d7861.
The following example URLs can be used to get the information about the service entity.
http://localhost:58080/uddi/service/uddi:mydomain.com:0e050e6d-cb3d-480e-8f13-a08fec5d7861/xml
http://localhost:58080/uddi/http_get?serviceKey=uddi:mydomain.com:0e050e6d-cb3d-480e-8f13-a08fec5d7861.
Getting Information about a Binding Template in XML Format
To get information about a binding template entity in XML format, you need to obtain the UDDI key of the entity and then insert the UDDI key into the above-mentioned URLs. For example, to get the information about the binding template entity with a UDDI key of uddi:mydomain.com:d2e8705f-3449-4fa7-888c-c9b85ef127d8, you need to:
Replace Host and Port with those of the TIBCO ActiveMatrix Runtime UDDI Server, for example, localhost:58080.
Replace EntityType with binding;
Replace EntityKey with uddi:mydomain.com:d2e8705f-3449-4fa7-888c-c9b85ef127d8.
The following example URLs can be used to get the information about the binding template entity.
Getting Information about a tModel in XML Format
To get information about a tModel entity in XML format, you need to obtain the UDDI key of the entity and then insert the UDDI key to the above-mentioned URLs. For example, to get the information about the tModel entity with a UDDI key of uddi:mydomain.com:bebc4299-3bc9-4975-9716-badfa9a2ce1c, you need to:
Replace Host and Port with those of the TIBCO ActiveMatrix Runtime UDDI Server, for example, localhost:58080.
Replace EntityType with tModel;
Replace EntityKey with uddi:mydomain.com:bebc4299-3bc9-4975-9716-badfa9a2ce1c.
The following example URLs can be used to get the information about the binding template entity.
 

Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved