Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


advertisement
 

Build a Client Application to Access a UDDI Registry : Page 4

Now that you've seen how to set up a UDDI registry on your server, it's time to learn how to use it from a client application.


advertisement
The find_business SOAP Structures
Here are the SOAP-request and SOAP-response structures required to find businesses in a UDDI registry.

<!-- SOAP Request --> <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance xmlns:xsd=http://www.w3.org/2001/XMLSchema xmlns:soap= "http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <find_business generic="2.0" maxRows="10" xmlns="urn:uddi-org:api_v2"> <findQualifiers> <findQualifier /> <findQualifier /> </findQualifiers> <name ="" /> <name ="" /> <identifierBag> <keyedReference tModelKey="tModelKey1" keyName="tModelKey1Name" keyValue="tModelKey1Value" /> <keyedReference tModelKey="tModelKey2" keyName="tModelKey2Name" keyValue="tModelKey2Value" /> </identifierBag> <categoryBag> <keyedReference tModelKey="tModelKey3" keyName="tModelKey3Name" keyValue="tModelKey3Value" /> <keyedReference tModelKey="tModelKey4" keyName="tModelKey4Name" keyValue="tModelKey4Value" /> </categoryBag> <tModelBag> <tModelKey>tModelKey5</tModelKey> <tModelKey>tModelKey6</tModelKey> </tModelBag> <discoveryURLs> <discoveryURL useType="businessEntity" /> <discoveryURL useType="businessEntity" /> </discoveryURLs> </find_business> </soap:Body> </soap:Envelope> <!-- SOAP Response --> <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance xmlns:xsd=http://www.w3.org/2001/XMLSchema xmlns:soap= "http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <businessList generic="2.0" operator="MyCompany" truncated="false" xmlns="urn:uddi-org:api_v2"> <businessInfos> <businessInfo businessKey="Key1"> <name ="" /> <name ="" /> <description ="" /> <description ="" /> <serviceInfos> <serviceInfo xsi:nil="true" /> <serviceInfo xsi:nil="true" /> </serviceInfos> </businessInfo> <businessInfo businessKey="Key2"> <name ="" /> <name ="" /> <description ="" /> <description ="" /> <serviceInfos> <serviceInfo xsi:nil="true" /> <serviceInfo xsi:nil="true" /> </serviceInfos> </businessInfo> </businessInfos> </businessList> </soap:Body> </soap:Envelope>

The find_service SOAP Structures
Similarly, here are the SOAP request and response structures you need to find services using the find_service method.

<!-- SOAP Request --> <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance xmlns:xsd=http://www.w3.org/2001/XMLSchema xmlns:soap= "http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <find_service businessKey="Key1" generic="2.0" maxRows="15" xmlns="urn:uddi-org:api_v2"> <findQualifiers> <findQualifier /> <findQualifier /> </findQualifiers> <name ="" /> <name ="" /> <categoryBag> <keyedReference tModelKey="tModelKey1" keyName="tModelKey1Name" keyValue="tModelKey1Value" /> <keyedReference tModelKey="tModelKey2" keyName="tModelKey2Name" keyValue="tModelKey2Value" /> </categoryBag> <tModelBag> <tModelKey>tModelKey3</tModelKey> <tModelKey>tModelKey4</tModelKey> </tModelBag> </find_service> </soap:Body> </soap:Envelope> <!-- SOAP Response --> <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance xmlns:xsd=http://www.w3.org/2001/XMLSchema xmlns:soap= "http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <serviceList generic="2.0" operator="MyCompany" truncated="false" xmlns="urn:uddi-org:api_v2"> <serviceInfos> <serviceInfo serviceKey="ServiceKey1" businessKey="Key1"> <name ="" /> <name ="" /> </serviceInfo> <serviceInfo serviceKey="ServiceKey2" businessKey="Key2"> <name ="" /> <name ="" /> </serviceInfo> </serviceInfos> </serviceList> </soap:Body> </soap:Envelope>



Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date