UDDI
[ class tree: UDDI ] [ index: UDDI ] [ all elements ]

Source for file UDDI.php

Documentation is available at UDDI.php

  1. <?php
  2. /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4 foldmethod=marker: */
  3. // +----------------------------------------------------------------------+
  4. // | UDDI: A PHP class library implementing the Universal Description,    |
  5. // | Discovery and Integration API for locating and publishing Web        |
  6. // | Services listings in a UBR (UDDI Business Registry)                  |
  7. // +----------------------------------------------------------------------+
  8. // | This library is free software; you can redistribute it and/or        |
  9. // | modify it under the terms of the GNU Lesser General Public           |
  10. // | License as published by the Free Software Foundation; either         |
  11. // | version 2.1 of the License, or (at your option) any later version.   |
  12. // |                                                                      |
  13. // | This library is distributed in the hope that it will be useful,      |
  14. // | but WITHOUT ANY WARRANTY; without even the implied warranty of       |
  15. // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU    |
  16. // | General Public License for more details.                             |
  17. // |                                                                      |
  18. // | You should have received a copy of the GNU General Public License    |
  19. // | along with this library; if not, write to the Free Software          |
  20. // | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, |
  21. // | USA, or visit http://www.gnu.org/copyleft/lesser.html                |
  22. // +----------------------------------------------------------------------+
  23. // | Authors: Jon Stephens & Lee Reynolds (authors of non-PEAR version)   |
  24. // |          Maintainers and PEARifiers:                                 |
  25. // |          Christian Wenz <chw@hauser-wenz.de>                         |
  26. // |          Tobias Hauser <th@hauser-wenz.de>                           |
  27. // +----------------------------------------------------------------------+
  28. //
  29. //    $Id$
  30. /* Original Credits:
  31.  
  32.   phpUDDI
  33.   A PHP class library implementing the Universal Description,
  34.   Discovery and Integration API for locating and publishing Web
  35.   Services listings in a UBR (UDDI Business Registry).
  36.  
  37.   Copyright (C) 2002-2004 Lee Reynolds and Jon Stephens
  38.  
  39.   This program is free software; you can redistribute it and/or
  40.   modify it under the terms of the GNU General Public License
  41.   as published by the Free Software Foundation; either version 2
  42.   of the License, or (at your option) any later version.
  43.  
  44.   This program is distributed in the hope that it will be useful,
  45.   but WITHOUT ANY WARRANTY; without even the implied warranty of
  46.   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  47.   GNU General Public License for more details.
  48.  
  49.   You should have received a copy of the GNU General Public License
  50.   along with this program; if not, write to the Free Software
  51.   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA
  52.   or point your web browser to http://www.gnu.org/licenses/lgpl.html.
  53.  
  54.   Conceived and developed in conjunction with the
  55.   authors' work for the book "PHP Web Services" from Wrox Press
  56.   Ltd. (ISBN-1861008074)
  57.  
  58.   Original developers:
  59.   Lee Reynolds lee@annasart.com
  60.   Jon Stephens jon@hiveminds.info
  61.  
  62.   Useful Links:
  63.  
  64.   Wrox Press "Programmer To Programmer" Discussion Groups
  65.   Pro PHP: http://p2p.wrox.com/list.asp?list=pro_php
  66.   Pro XML: http://p2p.wrox.com/list.asp?list=xml
  67.  
  68.   HiveMinds Group
  69.   http://www.hiveminds.info/
  70.   http://forums.hiveminds.info/
  71.  
  72.   Version History:
  73.  
  74.   0.1   -- 15 November 2002 -- Basic Proof of concept
  75.   0.2   -- 20 November 2002 -- Base class redefinition to
  76.                 include public and private methods
  77.   0.3   -- 25 November 2002 -- All UDDI 2.0 Inquiry APIs implemented
  78.   0.3.1 -- 14 March 2004    -- small bugfixes (Christian); license change to LPGL (Lee, Jon)
  79.  
  80.   Objective for 1.0 release is complete implementation of the UDDI 2.0 API
  81.   (http://www.uddi.org/pubs/ProgrammersAPI-V2.04-Published-20020719.pdf).
  82.  
  83.   Objective for 1.5 release is backwards compatibility with UDDI 1.0.
  84.  
  85.   Objective for 2.0 release is complete implementation of the UDDI 3.0 API
  86.   (http://www.uddi.org/pubs/uddi-v3.00-published-20020719.pdf).
  87.  
  88. */
  89.  
  90. require_once 'PEAR.php';
  91.  
  92. /**
  93.  * PEAR::UDDI
  94.  * class that implements the UDDI API
  95.  * @link http://www.uddi.org/
  96.  *
  97.  *  pearified version of phpUDDI by Stephens & Reynolds
  98.  * 
  99.  * 
  100.  * @category Web Services
  101.  * @package  UDDI
  102.  * @version  0.2.2
  103.  * @author   Christian Wenz <chw@hauser-wenz.de>
  104.  * @author   Tobias Hauser <th@hauser-wenz.de>
  105.  * @todo     fully implement UDDI 2.0 (and later 1.0, 3.0)
  106.  * @todo     more helper functions (for analyzing the data returned by querying a UBR)
  107.  
  108.  
  109. Name:
  110.   UDDI.php - UDDI Registry access library (PEARified version)
  111.  
  112. Synopsis:
  113.   require_once 'UDDI/UDDI.php';
  114.  
  115. Currently, PEAR::UDDI supports one function call in one UDDI API.
  116.  
  117. Variables supported:
  118.   $UDDI::_api
  119.   currently 2 values are supported, and they represent 2 of the 6 published APIs by UDDI.org.
  120.   'Inquiry' which represents the search and _query API
  121.   'Publish' which represents the publishing API
  122.  
  123.   Usage:
  124.   <code>
  125.     $UDDI::_api = 'Inquiry'; // (default)
  126.     $UDDI::_api = 'Publish';
  127.   </code>
  128.  
  129.   $UDDI::_uddiversion
  130.   This is the API version of the UPI spec you want to use
  131.   Values are either 1, 2, or 3.
  132.  
  133.   Usage:
  134.   <code>
  135.     $UDDI::_uddiversion = 2;
  136.   </code>
  137.  
  138.   Default:
  139.     currently, the version default is '1';
  140.  
  141.   Note: As stated above, we are aiming for a 1.0 release of this library which implements
  142.   the UDDI 2.0 Programming API; we cannot guarantee at this time that any of the API functions
  143.   as implemented here will work correctly (or at all) unless you set the version to 2 as shown
  144.   under 'Usage' immediately above or by setting the version when you call the UDDI class constructor:
  145.  
  146.   <code>
  147.   $my_uddi = new UDDI('SAP', 2);
  148.   </code>
  149.  
  150.   At a later date we will make this class compatible with UDDI Versions 1.0 and 3.0.
  151.  
  152.   $UDDI::_regarray
  153.   We currently support the one remaining test registry: 'SAP'.
  154.   We also support 2 API interfaces. These are, as noted above, 'Inquiry' and 'Publish'.
  155.  
  156.   To add live registry entries, or your own test registry, you must append a multiple index array element
  157.   to $UDDI::_regarray.  The form for this follows:
  158.   <code>
  159.     array('registry name' =>
  160.     array('Inquiry' =>
  161.       array('url' => 'url_for_inquiry',
  162.         'port' => 80),
  163.         'Publish' =>
  164.       array('url' => 'url_for_publish',
  165.         'port' => 443)));
  166.   </code>
  167.   Internally this is accessed as 
  168.   <code>URL = $_regarray['registry_name']['Inquiry']['url']</code>
  169.   , and
  170.   <code>port = $_regarray['registry_name']['Inquiry']['port']</code>
  171.  
  172.   PLEASE NOTE: You're adding elements to this array, instead of overwriting old ones.
  173.  
  174.   Usage:
  175.   <code>
  176.     $UDDI::_regarray = array('private' =>
  177.               array('Inquiry' =>
  178.               array('url' =>'url_for_inquiry',
  179.                   'port' => 80),
  180.                   'Publish' =>
  181.                       array('url' => 'url_for_publishing',
  182.                           'port' => 443)));
  183.   </code>
  184.  
  185.   $UDDI::_xmlns
  186.   You can modify the XML namespace by reassigning a value to this
  187.  
  188.   Usage:
  189.   <code>
  190.     $UDDI::_xmlns = 'new_ns_definition';
  191.   </code>
  192.  
  193.   Default:
  194.      'urn:uddi-org:api'
  195.  
  196.   $UDDI::_debug
  197.   Turns on debugging by echoing HTTP headers and UDDI queries.
  198.  
  199.   Usage:
  200.   <code>
  201.     $UDDI::_debug = true;
  202.   </code>
  203.  
  204.   Default:
  205.     false
  206.  
  207.   $UDDI::_transmit
  208.   Turns on _posting of UDDI message to UBR.
  209.  
  210.   Usage:
  211.   <code>
  212.     $UDDI::_transmit = false;
  213.   </code>
  214.  
  215.   Default:
  216.     true;
  217.  
  218.  
  219. EXAMPLE:
  220.  
  221. This queries SAP's UDDI Registry for the first 50 businesses whose names include
  222. the word "Acme", matches sorted first in ascending order by name, then in descending
  223. order by date last updated. The raw XML that's returned is escaped and echoed to the page.
  224.  
  225. <code>
  226. $my_uddi = new UDDI('SAP', 1);
  227. $result = htmlspecialchars($my_uddi->find_business(array('name' => '%Acme%', 'maxRows' => 50, 'findQualifiers' => 'sortByNameAsc,sortByDateAsc')));
  228. echo "<pre>$result</pre>";
  229. </code>
  230.  
  231. */
  232.  
  233.  
  234. // {{{ constants
  235. /**
  236.  * version of corresponding phpUDDI version
  237.  * still included so that moving from phpUDDI to PEAR::UDDI is easier
  238.  */
  239.  
  240. define('UDDI_PHP_LIB_VERSION''0.3.1p')//suffix p = PEAR :-)
  241.  
  242. // }}}
  243. // {{{ UDDI
  244.  
  245. /**
  246.  * UDDI
  247.  *
  248.  * class that implements the UDDI API
  249.  * 
  250.  * @package  UDDI
  251.  * @author   Christian Wenz <chw@hauser-wenz.de>
  252.  * @author   Tobias Hauser <th@hauser-wenz.de>
  253. */
  254. class UDDI extends PEAR
  255. {
  256.     // {{{ properties
  257.  
  258.     /**
  259.      * version of package
  260.      * @var string $_version 
  261.      */
  262.      var $_version '0.2.2';
  263.  
  264.     /**
  265.      * list of known registries
  266.      * @var array $regarray 
  267.      */
  268.  
  269.     var $_regarray =
  270.         array(
  271.             'SAP' =>
  272.                 array(
  273.                     'Inquiry'  =>
  274.                         array(
  275.                             'url'  => 'uddi.sap.com/uddi/api/inquiry/',
  276.                             'port' => 80),
  277.                     'Publish' =>
  278.                         array('url' => 'https://uddi.sap.com/uddi/api/publish/',
  279.                             'port' => 443))/*,
  280.             'IBM' =>
  281.                 array(
  282.                     'Inquiry'  =>
  283.                         array(
  284.                             'url'  => 'www-3.ibm.com/services/uddi/testregistry/inquiryapi',
  285.                             'port' => 80),
  286.                     'Publish' =>
  287.                         array('url' => 'https://www-3.ibm.com/services/uddi/testregistry/protect/publishapi',
  288.                             'port' => 443)),
  289.             'Microsoft' =>
  290.                 array(
  291.                     'Inquiry' =>
  292.                         array(
  293.                             'url' => 'test.uddi.microsoft.com/inquire',
  294.                             'port' => 80),
  295.                     'Publish' =>
  296.                         array(
  297.                             'url' => 'https://test.uddi.microsoft.com/publish',
  298.                             'port' => 443))*/);
  299.  
  300.     /**
  301.      * which API to use (Inquiry/Publish)
  302.      * @var string $_api 
  303.      */
  304.     var $_api 'Inquiry';
  305.  
  306.     /**
  307.      * used XML namespace
  308.      * @var string $_xmlns 
  309.      */
  310.     var $_xmlns 'urn:uddi-org:api';
  311.  
  312.     /**
  313.      * used UDDI version
  314.      * @var string $_uddiversion 
  315.      */
  316.     var $_uddiversion  = 1;
  317.  
  318.     /**
  319.      * used XML generic version
  320.      * @var string $_generic 
  321.      */
  322.     var $_generic;
  323.  
  324.     /**
  325.      * debug mode
  326.      * @var boolean $_debug 
  327.      */
  328.     var $_debug    = false;
  329.  
  330.     /**
  331.      * Turns on _posting of UDDI message to UBR
  332.      * @var boolean $_transmit 
  333.      */
  334.     var $_transmit = true;
  335.  
  336.     /**
  337.      * Host to use
  338.      * @var string $_host 
  339.      */
  340.     var $_host;
  341.  
  342.     /**
  343.      * URL to use
  344.      * @var string $_url 
  345.      */
  346.     var $_url;
  347.  
  348.     // }}}
  349.     // {{{ constructor
  350.  
  351.     /**
  352.      * constructor
  353.      *
  354.      * @access   public
  355.      * @param    string   $registry    name of registry to use (defaults to SAP)
  356.      * @param    integer  $version     UDDI version to use
  357.      */
  358.     function UDDI($registry 'SAP'$version = 1)
  359.     {
  360.         $this->splitUrl($registry$version);
  361.     }
  362.  
  363.     // }}}
  364.     // {{{ splitUrl()
  365.  
  366.     /**
  367.      * retrieves information from URL and sets params
  368.      *
  369.      * @access   public
  370.      * @param    string   $registry    name of registry to use
  371.      * @param    integer  $version     UDDI version to use
  372.      */
  373.     function splitUrl($registry$version)
  374.     {
  375.         $this->_registry $registry;
  376.         $reg $this->_regarray[$this->_registry][$this->_api]['url'];
  377.         $reg str_replace('http://'''$reg);
  378.         $pos strpos($reg'/');
  379.         if ($pos === false{
  380.             return PEAR::raiseError("Invalid registry (POS = $pos, URL = '$reg')\n");
  381.         }
  382.         $this->_host substr($reg0$pos);
  383.         $this->_url substr($reg$posstrlen($reg- 1);
  384.  
  385.         if ($version > 1{
  386.             $this->_xmlns .= "_v$version";
  387.         }
  388.  
  389.         $this->_generic = "$version.0";
  390.     }
  391.  
  392.     // }}}
  393.     // {{{ post()
  394.  
  395.     /**
  396.      * assembles HTTP headers and posts these and the UDDI message to the UBR
  397.      *
  398.      * @access   public
  399.      * @param    string  $message    the UDDI message to send
  400.      * @return   string  $data       data returned from the UBR
  401.      */
  402.     function post($message)
  403.     {
  404.         $msg_length strlen($message);
  405.         $php_version phpversion();
  406.         $date str_replace('+0000''GMT'gmdate('r'time()));
  407.  
  408.         $header '';
  409.         $header .= "POST $this->_url HTTP/1.0\r\n";
  410.         $header .= "Date: $date\r\n";
  411.         $header .= "Content-Type: text/xml; charset=UTF-8\r\n";
  412.         $header .= "User-agent: PEAR::UDDI/$this->_version php/$php_version\r\n";
  413.         $header .= "Host: $this->_host\r\n";
  414.         $header .= "SOAPAction: \"\"\r\n";
  415.         $header .= "Content-Length: $msg_length\r\n\r\n";
  416.  
  417.         //  echoes HTTP header and UDDI message to page if true
  418.         if ($this->_debug{
  419.             echo '<pre>' htmlspecialchars(str_replace('><'">\n<"$header $message)) '</pre>';
  420.         }
  421.  
  422.         //  sends header and message to UBR if true
  423.         if ($this->_transmit{
  424.             $port $this->_regarray[$this->_registry][$this->_api]['port'];
  425.             $fp fsockopen($this->_host$port$errno$errstr5);
  426.             if ($fp === false{
  427.                 return PEAR::raiseError("Couldn't connect to server at $this->_host:$port.<br />Error #$errno$errstr.");
  428.             };
  429.  
  430.             $result fputs($fp$header);
  431.             if ($result === false{
  432.                   return PEAR::raiseError('Couldn\'t send HTTP headers.');
  433.             }
  434.             $result fputs($fp"$message\n\n");
  435.             if ($result === false{
  436.                 return PEAR::raiseError('Couldn\'t send UDDI message.');
  437.             }
  438.  
  439.             $response '';
  440.             while (!feof($fp)) {
  441.                 $data fgets($fp1024);
  442.                 if ($data !== false{
  443.                     $response .= $data;
  444.                 else {
  445.                     return PEAR::raiseError('No response from server.');
  446.                 }
  447.             }
  448.             $result fclose($fp);
  449.             if ($result === false{
  450.                 return PEAR::raiseError('Warning: Couldn\'t close HTTP connection.');
  451.             }
  452.  
  453.             $response str_replace('><'">\n<"$response);
  454.             return $response;
  455.         }
  456.     }
  457.  
  458.     // }}}
  459.     // {{{ query()
  460.  
  461.     /**
  462.      * sends and UDDI query to the registry server
  463.      *
  464.      * @access   public
  465.      * @param    string  $method     the UDDI message to send
  466.      * @param    array   $params     parameters for the query
  467.      * @return   string  $data       response from the registry server
  468.      */
  469.     function query($method$params)
  470.     {
  471.         $message $this->assemble($method$params);
  472.  
  473.         return $this->post($message);
  474.     }
  475.  
  476.     // }}}
  477.     // {{{ assemble()
  478.  
  479.     /**
  480.      * generate XML creating the UDDI query
  481.      *
  482.      * @access   public
  483.      * @param    string  $method     the UDDI message to send
  484.      * @param    array   $params     parameters for the query
  485.      * @return   string  $data       the desired XML query code
  486.      */
  487.     function assemble($method$params)
  488.     {
  489.         $head '<?xml version="1.0" encoding="utf-8"?>';
  490.         $head .= '<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/">';
  491.         $head .= '<Body>';
  492.  
  493.         $end = "</$method></Body></Envelope>";
  494.  
  495.         $attrib '';
  496.         $element '';
  497.  
  498.         if (isset($params['discoveryURLs']&& ($params['discoveryURLs'!= '')) {
  499.             $element .= '<discoveryURLs>' $params['discoveryURLs''</discoveryURLs>';
  500.         }
  501.  
  502.         if (isset($params['bindingKey']&& ($params['bindingKey'!= '')) {
  503.             $element .= '<bindingKey>' $params['bindingKey''</bindingKey>';
  504.         }
  505.  
  506.         if (isset($params['businessKey']&& ($params['businessKey'!= '')) {
  507.             $element .= '<businessKey>' $params['businessKey''</businessKey>';
  508.         }
  509.  
  510.         if (isset($params['serviceKey']&& ($params['serviceKey'!= '')) {
  511.     
  512.             if ($method == 'find_binding'{
  513.                 $attrib .= ' serviceKey="' $params['serviceKey''"';
  514.             }
  515.             if ($method == 'get_serviceDetail'{
  516.                 $element .= '<serviceKey>' $params['serviceKey''</serviceKey>';
  517.             }
  518.         }
  519.  
  520.         if (isset($params['tModelKey']&& ($params['tModelKey'!= '')) {
  521.             $element .= '<tModelKey>uuid:' $params['tModelKey''</tModelKey>';
  522.         }
  523.  
  524.         if (isset($params['findQualifiers']&& ($params['findQualifiers'!= '')) {
  525.             $element .= '<findQualifiers>';
  526.             $findQualifiers explode(','$params['findQualifiers']);
  527.             for ($i = 0; $i count($findQualifiers)$i++{
  528.                 $element .= '<findQualifier>' $findQualifiers[$i'</findQualifier>';
  529.             }
  530.             $element .= '</findQualifiers>';
  531.         }
  532.  
  533.         if (isset($params['tModelBag']&& ($params['tModelBag'!= '')) {
  534.             $tModelKey explode(','$params['tModelBag']);
  535.             $element .= '<tModelBag>';
  536.             for ($i = 0; $i count($tModelKey)$i++{
  537.                 $element .= '<tModelKey>uuid:' $tModelKey[$i'</tModelKey>';
  538.                 $element .= '</tModelBag>';
  539.             }
  540.         }
  541.  
  542.         if (isset($params['name']&& ($params['name'!= '')) {
  543.             $lang '';
  544.             if (isset($params['lang']&& ($params['lang'!= '')) {
  545.                 $lang = "xml:lang=\"$lang\"";
  546.             }
  547.             $element .= '<name ' $lang '>' $params['name''</name>';
  548.         }
  549.  
  550.         if (isset($params['identifierBag']&& ($params['identifierBag'!= '')) {
  551.             $element .= '<identifierBag>';
  552.             $keyedReference explode(','$params['identifierBag']);
  553.             for ($i = 0; $i count($keyedReference)$i++{
  554.                 $element .= '<keyedReference>' $keyedReference[$i'</keyedReference>';
  555.             }
  556.             $element .= '</identifierBag>';
  557.         }
  558.  
  559.         if (isset($params['categoryBag']&& ($params['categoryBag'!= '')) {
  560.             $element .= '<categoryBag>';
  561.             $keyedReference explode(','$params['identifierBag']);
  562.             for ($i = 0; $i<count($keyedReference)$i++{
  563.                 $element .= '<keyedReference>' $keyedReference[$i'</keyedReference>';
  564.             }
  565.             $element .= '</categoryBag>';
  566.         }
  567.  
  568.         if (isset($params['maxRows']&& ($params['maxRows'!= '')) {
  569.             $attrib .= ' maxRows="' $params['maxRows''"';
  570.         }
  571.  
  572.         $head .= "<$method $attrib xmlns=\"$this->_xmlns\" generic=\"$this->_generic\">";
  573.  
  574.         $message $head;
  575.         $message .= $element;
  576.         $message .= $end;
  577.  
  578.         return $message;
  579.     }
  580.  
  581.     // }}}
  582.     // {{{ find_binding()
  583.  
  584.     /**
  585.      * Sends find_binding inquiry to UBR (searchs for bindings within a businessService element)
  586.      *
  587.      * @access   public
  588.      * @param    array   $params     parameters for the query
  589.      * @return   string  $data       response from the registry server
  590.      */
  591.     function find_binding($params)
  592.     {
  593.         $data $this->query('find_binding'$params);
  594.         return $data;
  595.     }
  596.  
  597.     // }}}
  598.     // {{{ find_business()
  599.  
  600.     /**
  601.      * Sends find_business inquiry to UBR (searchs businessEntity elements)
  602.      *
  603.      * @access   public
  604.      * @param    array   $params     parameters for the query
  605.      * @return   string  $data       response from the registry server
  606.      */
  607.     function find_business($params)
  608.     {
  609.         $data $this->query('find_business'$params);
  610.         return $data;
  611.     }
  612.  
  613.     // }}}
  614.     // {{{ find_relatedBusinesses()
  615.  
  616.     /**
  617.      * Sends find_relatedBusinesses inquiry to UBR (searchs for related businessEntity elements for a given businessKey)
  618.      *
  619.      * @access   public
  620.      * @param    array   $params     parameters for the query
  621.      * @return   string  $data       response from the registry server
  622.      */
  623.     function find_relatedBusinesses($params)
  624.     {
  625.         $data $this->query('find_relatedBusinesses'$params);
  626.         return $data;
  627.     }
  628.  
  629.     // }}}
  630.     // {{{ find_service()
  631.  
  632.     /**
  633.      * Sends find_service inquiry to UBR (searchs for businessService elements)
  634.      *
  635.      * @access   public
  636.      * @param    array   $params     parameters for the query
  637.      * @return   string  $data       response from the registry server
  638.      */
  639.     function find_service($params)
  640.     {
  641.         $data $this->query('find_service'$params);
  642.         return $data;
  643.     }
  644.  
  645.     // }}}
  646.     // {{{ find_tModel()
  647.  
  648.     /**
  649.      * Sends find_tModel inquiry to UBR (searchs for tModel elements)
  650.      *
  651.      * @access   public
  652.      * @param    array   $params     parameters for the query
  653.      * @return   string  $data       response from the registry server
  654.      */
  655.     function find_tModel($params)
  656.     {
  657.         $data $this->query('find_tModel'$params);
  658.         return $data;
  659.     }
  660.  
  661.     // }}}
  662.     // {{{ get_bindingDetail()
  663.  
  664.     /**
  665.      * Sends get_bindingDetail inquiry to UBR (returns bindingDetail elements for one or more bindingKey elements)
  666.      *
  667.      * @access   public
  668.      * @param    array   $params     parameters for the query
  669.      * @return   string  $data       response from the registry server
  670.      */
  671.     function get_bindingDetail($params)
  672.     {
  673.         $data $this->query('get_bindingDetail'$params);
  674.         return $data;
  675.     }
  676.  
  677.     // }}}
  678.     // {{{ get_businessDetail()
  679.  
  680.     /**
  681.      * Sends get_businessDetail inquiry to UBR (returns information about one or more businessEntity elements)
  682.      *
  683.      * @access   public
  684.      * @param    array   $params     parameters for the query
  685.      * @return   string  $data       response from the registry server
  686.      */
  687.     function get_businessDetail($params)
  688.     {
  689.         $data $this->query('get_businessDetail'$params);
  690.         return $data;
  691.     }
  692.  
  693.     // }}}
  694.     // {{{ get_businessDetailExt()
  695.  
  696.     /**
  697.      * Sends get_businessDetailExt inquiry to UBR (returns extended information about one or more businessEntity elements)
  698.      *
  699.      * @access   public
  700.      * @param    array   $params     parameters for the query
  701.      * @return   string  $data       response from the registry server
  702.      */
  703.     function get_businessDetailExt($params)
  704.     {
  705.         $data $this->query('get_businessDetailExt'$params);
  706.         return $data;
  707.     }
  708.  
  709.     // }}}
  710.     // {{{ get_serviceDetail()
  711.  
  712.     /**
  713.      * Sends get_serviceDetail inquiry to UBR (returns information about one or more businessService elements)
  714.      *
  715.      * @access   public
  716.      * @param    array   $params     parameters for the query
  717.      * @return   string  $data       response from the registry server
  718.      */
  719.     function get_serviceDetail($params)
  720.     {
  721.         $data $this->query('get_serviceDetail'$params);
  722.         return $data;
  723.     }
  724.  
  725.     // }}}
  726.     // {{{ get_tModelDetail()
  727.  
  728.     /**
  729.      * Sends get_tModelDetail inquiry to UBR (returns information about one or more tModel elements)
  730.      *
  731.      * @access   public
  732.      * @param    array   $params     parameters for the query
  733.      * @return   string  $data       response from the registry server
  734.      */
  735.     function get_tModelDetail($params)
  736.     {
  737.         $data $this->query('get_tModelDetail'$params);
  738.         return $data;
  739.     }
  740.  
  741.     // }}}
  742.  
  743. }
  744.  
  745. // }}}
  746.  
  747. ?>

Documentation generated on Mon, 11 Mar 2019 14:37:49 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.