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.1
  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('Microsoft', 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 2 test registry entries.  These are 'IBM' and 'Microsoft'.
  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 IBM'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('IBM', 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.0alpha4';
  263.  
  264.     /**
  265.      * list of known registries
  266.      * @var array $regarray 
  267.      */
  268.  
  269.     var $_regarray =
  270.         array(
  271.             'IBM' =>
  272.                 array(
  273.                     'Inquiry'  =>
  274.                         array(
  275.                             'url'  => 'www-3.ibm.com/services/uddi/testregistry/inquiryapi',
  276.                             'port' => 80),
  277.                     'Publish' =>
  278.                         array('url' => 'https://www-3.ibm.com/services/uddi/testregistry/protect/publishapi',
  279.                             'port' => 443)),
  280.             'Microsoft' =>
  281.                 array(
  282.                     'Inquiry' =>
  283.                         array(
  284.                             'url' => 'test.uddi.microsoft.com/inquire',
  285.                             'port' => 80),
  286.                     'Publish' =>
  287.                         array(
  288.                             'url' => 'https://test.uddi.microsoft.com/publish',
  289.                             'port' => 443)));
  290.  
  291.     /**
  292.      * which API to use (Inquiry/Publish)
  293.      * @var string $_api 
  294.      */
  295.     var $_api 'Inquiry';
  296.  
  297.     /**
  298.      * used XML namespace
  299.      * @var string $_xmlns 
  300.      */
  301.     var $_xmlns 'urn:uddi-org:api';
  302.  
  303.     /**
  304.      * used UDDI version
  305.      * @var string $_uddiversion 
  306.      */
  307.     var $_uddiversion  = 1;
  308.  
  309.     /**
  310.      * used XML generic version
  311.      * @var string $_generic 
  312.      */
  313.     var $_generic;
  314.  
  315.     /**
  316.      * debug mode
  317.      * @var boolean $_debug 
  318.      */
  319.     var $_debug    = false;
  320.  
  321.     /**
  322.      * Turns on _posting of UDDI message to UBR
  323.      * @var boolean $_transmit 
  324.      */
  325.     var $_transmit = true;
  326.  
  327.     /**
  328.      * Host to use
  329.      * @var string $_host 
  330.      */
  331.     var $_host;
  332.  
  333.     /**
  334.      * URL to use
  335.      * @var string $_url 
  336.      */
  337.     var $_url;
  338.  
  339.     // }}}
  340.     // {{{ constructor
  341.  
  342.     /**
  343.      * constructor
  344.      *
  345.      * @access   public
  346.      * @param    string   $registry    name of registry to use
  347.      * @param    integer  $version     UDDI version to use
  348.      */
  349.     function UDDI($registry 'IBM'$version = 1)
  350.     {
  351.         $this->splitUrl($registry$version);
  352.     }
  353.  
  354.     // }}}
  355.     // {{{ splitUrl()
  356.  
  357.     /**
  358.      * retrieves information from URL and sets params
  359.      *
  360.      * @access   public
  361.      * @param    string   $registry    name of registry to use
  362.      * @param    integer  $version     UDDI version to use
  363.      */
  364.     function splitUrl($registry$version)
  365.     {
  366.         $this->_registry $registry;
  367.         $reg $this->_regarray[$this->_registry][$this->_api]['url'];
  368.         $reg str_replace('http://'''$reg);
  369.         $pos strpos($reg'/');
  370.         if ($pos === false{
  371.             return PEAR::raiseError("Invalid registry (POS = $pos, URL = '$reg')\n");
  372.         }
  373.         $this->_host substr($reg0$pos);
  374.         $this->_url substr($reg$posstrlen($reg- 1);
  375.  
  376.         if ($version > 1{
  377.             $this->_xmlns .= "_v$version";
  378.         }
  379.  
  380.         $this->_generic = "$version.0";
  381.     }
  382.  
  383.     // }}}
  384.     // {{{ post()
  385.  
  386.     /**
  387.      * assembles HTTP headers and posts these and the UDDI message to the UBR
  388.      *
  389.      * @access   public
  390.      * @param    string  $message    the UDDI message to send
  391.      * @return   string  $data       data returned from the UBR
  392.      */
  393.     function post($message)
  394.     {
  395.         $msg_length strlen($message);
  396.         $php_version phpversion();
  397.         $date str_replace('+0000''GMT'gmdate('r'time()));
  398.  
  399.         $header '';
  400.         $header .= "POST $this->_url HTTP/1.0\r\n";
  401.         $header .= "Date: $date\r\n";
  402.         $header .= "Content-Type: text/xml; charset=UTF-8\r\n";
  403.         $header .= "User-agent: PEAR::UDDI/$this->_version php/$php_version\r\n";
  404.         $header .= "Host: $this->_host\r\n";
  405.         $header .= "SOAPAction: \"\"\r\n";
  406.         $header .= "Content-Length: $msg_length\r\n\r\n";
  407.  
  408.         //  echoes HTTP header and UDDI message to page if true
  409.         if ($this->_debug{
  410.             echo '<pre>' htmlspecialchars(str_replace('><'">\n<"$header $message)) '</pre>';
  411.         }
  412.  
  413.         //  sends header and message to UBR if true
  414.         if ($this->_transmit{
  415.             $port $this->_regarray[$this->_registry][$this->_api]['port'];
  416.             $fp fsockopen($this->_host$port$errno$errstr5);
  417.             if ($fp === false{
  418.                 return PEAR::raiseError("Couldn't connect to server at $this->_host:$port.<br />Error #$errno$errstr.");
  419.             };
  420.  
  421.             $result fputs($fp$header);
  422.             if ($result === false{
  423.                   return PEAR::raiseError('Couldn\'t send HTTP headers.');
  424.             }
  425.             $result fputs($fp"$message\n\n");
  426.             if ($result === false{
  427.                 return PEAR::raiseError('Couldn\'t send UDDI message.');
  428.             }
  429.  
  430.             $response '';
  431.             while (!feof($fp)) {
  432.                 $data fgets($fp1024);
  433.                 if ($data !== false{
  434.                     $response .= $data;
  435.                 else {
  436.                     return PEAR::raiseError('No response from server.');
  437.                 }
  438.             }
  439.             $result fclose($fp);
  440.             if ($result === false{
  441.                 return PEAR::raiseError('Warning: Couldn\'t close HTTP connection.');
  442.             }
  443.  
  444.             $response str_replace('><'">\n<"$response);
  445.             return $response;
  446.         }
  447.     }
  448.  
  449.     // }}}
  450.     // {{{ query()
  451.  
  452.     /**
  453.      * sends and UDDI query to the registry server
  454.      *
  455.      * @access   public
  456.      * @param    string  $method     the UDDI message to send
  457.      * @param    array   $params     parameters for the query
  458.      * @return   string  $data       response from the registry server
  459.      */
  460.     function query($method$params)
  461.     {
  462.         $message $this->assemble($method$params);
  463.  
  464.         return $this->post($message);
  465.     }
  466.  
  467.     // }}}
  468.     // {{{ assemble()
  469.  
  470.     /**
  471.      * generate XML creating the UDDI query
  472.      *
  473.      * @access   public
  474.      * @param    string  $method     the UDDI message to send
  475.      * @param    array   $params     parameters for the query
  476.      * @return   string  $data       the desired XML query code
  477.      */
  478.     function assemble($method$params)
  479.     {
  480.         $head '<?xml version="1.0" encoding="utf-8"?>';
  481.         $head .= '<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/">';
  482.         $head .= '<Body>';
  483.  
  484.         $end = "</$method></Body></Envelope>";
  485.  
  486.         $attrib '';
  487.         $element '';
  488.  
  489.         if (isset($params['discoveryURLs']&& ($params['discoveryURLs'!= '')) {
  490.             $element .= '<discoveryURLs>' $params['discoveryURLs''</discoveryURLs>';
  491.         }
  492.  
  493.         if (isset($params['bindingKey']&& ($params['bindingKey'!= '')) {
  494.             $element .= '<bindingKey>' $params['bindingKey''</bindingKey>';
  495.         }
  496.  
  497.         if (isset($params['businessKey']&& ($params['businessKey'!= '')) {
  498.             $element .= '<businessKey>' $params['businessKey''</businessKey>';
  499.         }
  500.  
  501.         if (isset($params['serviceKey']&& ($params['serviceKey'!= '')) {
  502.     
  503.             if ($method == 'find_binding'{
  504.                 $attrib .= ' serviceKey="' $params['serviceKey''"';
  505.             }
  506.             if ($method == 'get_serviceDetail'{
  507.                 $element .= '<serviceKey>' $params['serviceKey''</serviceKey>';
  508.             }
  509.         }
  510.  
  511.         if (isset($params['tModelKey']&& ($params['tModelKey'!= '')) {
  512.             $element .= '<tModelKey>uuid:' $params['tModelKey''</tModelKey>';
  513.         }
  514.  
  515.         if (isset($params['findQualifiers']&& ($params['findQualifiers'!= '')) {
  516.             $element .= '<findQualifiers>';
  517.             $findQualifiers explode(','$params['findQualifiers']);
  518.             for ($i = 0; $i count($findQualifiers)$i++{
  519.                 $element .= '<findQualifier>' $findQualifiers[$i'</findQualifier>';
  520.             }
  521.             $element .= '</findQualifiers>';
  522.         }
  523.  
  524.         if (isset($params['tModelBag']&& ($params['tModelBag'!= '')) {
  525.             $tModelKey explode(','$params['tModelBag']);
  526.             $element .= '<tModelBag>';
  527.             for ($i = 0; $i count($tModelKey)$i++{
  528.                 $element .= '<tModelKey>uuid:' $tModelKey[$i'</tModelKey>';
  529.                 $element .= '</tModelBag>';
  530.             }
  531.         }
  532.  
  533.         if (isset($params['name']&& ($params['name'!= '')) {
  534.             $lang '';
  535.             if (isset($params['lang']&& ($params['lang'!= '')) {
  536.                 $lang = "xml:lang=\"$lang\"";
  537.             }
  538.             $element .= '<name ' $lang '>' $params['name''</name>';
  539.         }
  540.  
  541.         if (isset($params['identifierBag']&& ($params['identifierBag'!= '')) {
  542.             $element .= '<identifierBag>';
  543.             $keyedReference explode(','$params['identifierBag']);
  544.             for ($i = 0; $i count($keyedReference)$i++{
  545.                 $element .= '<keyedReference>' $keyedReference[$i'</keyedReference>';
  546.             }
  547.             $element .= '</identifierBag>';
  548.         }
  549.  
  550.         if (isset($params['categoryBag']&& ($params['categoryBag'!= '')) {
  551.             $element .= '<categoryBag>';
  552.             $keyedReference explode(','$params['identifierBag']);
  553.             for ($i = 0; $i<count($keyedReference)$i++{
  554.                 $element .= '<keyedReference>' $keyedReference[$i'</keyedReference>';
  555.             }
  556.             $element .= '</categoryBag>';
  557.         }
  558.  
  559.         if (isset($params['maxRows']&& ($params['maxRows'!= '')) {
  560.             $attrib .= ' maxRows="' $params['maxRows''"';
  561.         }
  562.  
  563.         $head .= "<$method $attrib xmlns=\"$this->_xmlns\" generic=\"$this->_generic\">";
  564.  
  565.         $message $head;
  566.         $message .= $element;
  567.         $message .= $end;
  568.  
  569.         return $message;
  570.     }
  571.  
  572.     // }}}
  573.     // {{{ find_binding()
  574.  
  575.     /**
  576.      * Sends find_binding inquiry to UBR (searchs for bindings within a businessService element)
  577.      *
  578.      * @access   public
  579.      * @param    array   $params     parameters for the query
  580.      * @return   string  $data       response from the registry server
  581.      */
  582.     function find_binding($params)
  583.     {
  584.         $data $this->query('find_binding'$params);
  585.         return $data;
  586.     }
  587.  
  588.     // }}}
  589.     // {{{ find_business()
  590.  
  591.     /**
  592.      * Sends find_business inquiry to UBR (searchs businessEntity elements)
  593.      *
  594.      * @access   public
  595.      * @param    array   $params     parameters for the query
  596.      * @return   string  $data       response from the registry server
  597.      */
  598.     function find_business($params)
  599.     {
  600.         $data $this->query('find_business'$params);
  601.         return $data;
  602.     }
  603.  
  604.     // }}}
  605.     // {{{ find_relatedBusinesses()
  606.  
  607.     /**
  608.      * Sends find_relatedBusinesses inquiry to UBR (searchs for related businessEntity elements for a given businessKey)
  609.      *
  610.      * @access   public
  611.      * @param    array   $params     parameters for the query
  612.      * @return   string  $data       response from the registry server
  613.      */
  614.     function find_relatedBusinesses($params)
  615.     {
  616.         $data $this->query('find_relatedBusinesses'$params);
  617.         return $data;
  618.     }
  619.  
  620.     // }}}
  621.     // {{{ find_service()
  622.  
  623.     /**
  624.      * Sends find_service inquiry to UBR (searchs for businessService elements)
  625.      *
  626.      * @access   public
  627.      * @param    array   $params     parameters for the query
  628.      * @return   string  $data       response from the registry server
  629.      */
  630.     function find_service($params)
  631.     {
  632.         $data $this->query('find_service'$params);
  633.         return $data;
  634.     }
  635.  
  636.     // }}}
  637.     // {{{ find_tModel()
  638.  
  639.     /**
  640.      * Sends find_tModel inquiry to UBR (searchs for tModel elements)
  641.      *
  642.      * @access   public
  643.      * @param    array   $params     parameters for the query
  644.      * @return   string  $data       response from the registry server
  645.      */
  646.     function find_tModel($params)
  647.     {
  648.         $data $this->query('find_tModel'$params);
  649.         return $data;
  650.     }
  651.  
  652.     // }}}
  653.     // {{{ get_bindingDetail()
  654.  
  655.     /**
  656.      * Sends get_bindingDetail inquiry to UBR (returns bindingDetail elements for one or more bindingKey elements)
  657.      *
  658.      * @access   public
  659.      * @param    array   $params     parameters for the query
  660.      * @return   string  $data       response from the registry server
  661.      */
  662.     function get_bindingDetail($params)
  663.     {
  664.         $data $this->query('get_bindingDetail'$params);
  665.         return $data;
  666.     }
  667.  
  668.     // }}}
  669.     // {{{ get_businessDetail()
  670.  
  671.     /**
  672.      * Sends get_businessDetail inquiry to UBR (returns information about one or more businessEntity elements)
  673.      *
  674.      * @access   public
  675.      * @param    array   $params     parameters for the query
  676.      * @return   string  $data       response from the registry server
  677.      */
  678.     function get_businessDetail($params)
  679.     {
  680.         $data $this->query('get_businessDetail'$params);
  681.         return $data;
  682.     }
  683.  
  684.     // }}}
  685.     // {{{ get_businessDetailExt()
  686.  
  687.     /**
  688.      * Sends get_businessDetailExt inquiry to UBR (returns extended information about one or more businessEntity elements)
  689.      *
  690.      * @access   public
  691.      * @param    array   $params     parameters for the query
  692.      * @return   string  $data       response from the registry server
  693.      */
  694.     function get_businessDetailExt($params)
  695.     {
  696.         $data $this->query('get_businessDetailExt'$params);
  697.         return $data;
  698.     }
  699.  
  700.     // }}}
  701.     // {{{ get_serviceDetail()
  702.  
  703.     /**
  704.      * Sends get_serviceDetail inquiry to UBR (returns information about one or more businessService elements)
  705.      *
  706.      * @access   public
  707.      * @param    array   $params     parameters for the query
  708.      * @return   string  $data       response from the registry server
  709.      */
  710.     function get_serviceDetail($params)
  711.     {
  712.         $data $this->query('get_serviceDetail'$params);
  713.         return $data;
  714.     }
  715.  
  716.     // }}}
  717.     // {{{ get_tModelDetail()
  718.  
  719.     /**
  720.      * Sends get_tModelDetail inquiry to UBR (returns information about one or more tModel elements)
  721.      *
  722.      * @access   public
  723.      * @param    array   $params     parameters for the query
  724.      * @return   string  $data       response from the registry server
  725.      */
  726.     function get_tModelDetail($params)
  727.     {
  728.         $data $this->query('get_tModelDetail'$params);
  729.         return $data;
  730.     }
  731.  
  732.     // }}}
  733.  
  734. }
  735.  
  736. // }}}
  737.  
  738. ?>

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