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.0alpha3
  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.  * @todo     maybe use more PEAR classes, especially for handling of HTTP requests (but that would make maintaining the PEAR-less version harder)
  108.  
  109.  
  110.  
  111. Name:
  112.   UDDI.php - UDDI Registry access library (PEARified version)
  113.  
  114. Synopsis:
  115.   require_once 'UDDI/UDDI.php';
  116.  
  117. Currently, PEAR::UDDI supports 1 function call in one UDDI API.
  118.  
  119. Variables supported:
  120.   $UDDI::_api
  121.   currently 2 values are supported, and they represent 2 of the 6 published APIs by UDDI.org.
  122.   'Inquiry' which represents the search and _query API
  123.   'Publish' which represents the publishing API
  124.  
  125.   Usage:
  126.   <code>
  127.     $UDDI::_api = 'Inquiry'; // (default)
  128.     $UDDI::_api = 'Publish';
  129.   </code>
  130.  
  131.   $UDDI::_uddiversion
  132.   This is the API version of the UPI spec you want to use
  133.   Values are either 1, 2, or 3.
  134.  
  135.   Usage:
  136.   <code>
  137.     $UDDI::_uddiversion = 2;
  138.   </code>
  139.  
  140.   Default:
  141.     currently, the version default is '1';
  142.  
  143.   Note: As stated above, we are aiming for a 1.0 release of this library which implements
  144.   the UDDI 2.0 Programming API; we cannot guarantee at this time that any of the API functions
  145.   as implemented here will work correctly (or at all) unless you set the version to 2 as shown
  146.   under 'Usage' immediately above or by setting the version when you call the UDDI class constructor:
  147.  
  148.   <code>
  149.   $my_uddi = new UDDI('Microsoft', 2);
  150.   </code>
  151.  
  152.   At a later date we will make this class compatible with UDDI Versions 1.0 and 3.0.
  153.  
  154.   $UDDI::_regarray
  155.   We currently support 2 test registry entries.  These are 'IBM' and 'Microsoft'.
  156.   We also support 2 API interfaces. These are, as noted above, 'Inquiry' and 'Publish'.
  157.  
  158.   To add live registry entries, or your own test registry, you must append a multiple index array element
  159.   to $UDDI::_regarray.  The form for this follows:
  160.   <code>
  161.     array('registry name' =>
  162.     array('Inquiry' =>
  163.       array('url' => 'url_for_inquiry',
  164.         'port' => 80),
  165.         'Publish' =>
  166.       array('url' => 'url_for_publish',
  167.         'port' => 443)));
  168.   </code>
  169.   Internally this is accessed as 
  170.   <code>URL = $_regarray['registry_name']['Inquiry']['url']</code>
  171.   , and
  172.   <code>port = $_regarray['registry_name']['Inquiry']['port']</code>
  173.  
  174.   PLEASE NOTE: You're adding elements to this array, instead of overwriting old ones.
  175.  
  176.   Usage:
  177.   <code>
  178.     $UDDI::_regarray = array('private' =>
  179.               array('Inquiry' =>
  180.               array('url' =>'url_for_inquiry',
  181.                   'port' => 80),
  182.                   'Publish' =>
  183.                       array('url' => 'url_for_publishing',
  184.                           'port' => 443)));
  185.   </code>
  186.  
  187.   $UDDI::_xmlns
  188.   You can modify the XML namespace by reassigning a value to this
  189.  
  190.   Usage:
  191.   <code>
  192.     $UDDI::_xmlns = 'new_ns_definition';
  193.   </code>
  194.  
  195.   Default:
  196.      'urn:uddi-org:api'
  197.  
  198.   $UDDI::_debug
  199.   Turns on debugging by echoing HTTP headers and UDDI queries.
  200.  
  201.   Usage:
  202.   <code>
  203.     $UDDI::_debug = true;
  204.   </code>
  205.  
  206.   Default:
  207.     false
  208.  
  209.   $UDDI::_transmit
  210.   Turns on _posting of UDDI message to UBR.
  211.  
  212.   Usage:
  213.   <code>
  214.     $UDDI::_transmit = false;
  215.   </code>
  216.  
  217.   Default:
  218.     true;
  219.  
  220.  
  221. EXAMPLE:
  222.  
  223. This queries IBM's UDDI Registry for the first 50 businesses whose names include
  224. the word "Acme", matches sorted first in ascending order by name, then in descending
  225. order by date last updated. The raw XML that's returned is escaped and echoed to the page.
  226.  
  227. <code>
  228. $my_uddi = new UDDI('IBM', 1);
  229. $result = htmlspecialchars($my_uddi->find_business(array('name' => '%Acme%', 'maxRows' => 50, 'findQualifiers' => 'sortByNameAsc,sortByDateAsc')));
  230. echo "<pre>$result</pre>";
  231. </code>
  232.  
  233. */
  234.  
  235.  
  236. // {{{ constants
  237. /**
  238.  * version of corresponding phpUDDI version
  239.  * still included so that moving from phpUDDI to PEAR::UDDI is easier
  240.  */
  241.  
  242. define('UDDI_PHP_LIB_VERSION''0.3.1p')//suffix p = PEAR :-)
  243.  
  244. // }}}
  245. // {{{ UDDI
  246.  
  247. /**
  248.  * UDDI
  249.  *
  250.  * class that implements the UDDI API
  251.  * 
  252.  * @package  UDDI
  253.  * @author   Christian Wenz <chw@hauser-wenz.de>
  254.  * @author   Tobias Hauser <th@hauser-wenz.de>
  255. */
  256. class UDDI extends PEAR
  257. {
  258.     // {{{ properties
  259.  
  260.     /**
  261.      * version of package
  262.      * @var string $_version 
  263.      */
  264.      var $_version '0.2.0alpha3';
  265.  
  266.     /**
  267.      * list of known registries
  268.      * @var array $regarray 
  269.      */
  270.  
  271.     var $_regarray =
  272.         array('IBM' =>
  273.             array('Inquiry'  =>
  274.                 array('url'  => 'www-3.ibm.com/services/uddi/testregistry/inquiryapi',
  275.                     'port' => 80),
  276.             'Publish' =>
  277.                 array('url' => 'https://www-3.ibm.com/services/uddi/testregistry/protect/publishapi',
  278.                     'port' => 443)),
  279.  
  280.             'Microsoft' =>
  281.                 array('Inquiry' =>
  282.                     array('url' => 'test.uddi.microsoft.com/inquire',
  283.                         'port' => 80),
  284.             'Publish' =>
  285.                 array('url' => 'https://test.uddi.microsoft.com/publish',
  286.                     'port' => 443)));
  287.  
  288.  
  289.     /**
  290.      * which API to use (Inquiry/Publish)
  291.      * @var string $_api 
  292.      */
  293.     var $_api 'Inquiry';
  294.  
  295.     /**
  296.      * used XML namespace
  297.      * @var string $_xmlns 
  298.      */
  299.     var $_xmlns 'urn:uddi-org:api';
  300.  
  301.     /**
  302.      * used UDDI version
  303.      * @var string $_uddiversion 
  304.      */
  305.     var $_uddiversion  = 1;
  306.  
  307.     /**
  308.      * used XML generic version
  309.      * @var string $_generic 
  310.      */
  311.     var $_generic;
  312.  
  313.     /**
  314.      * debug mode
  315.      * @var boolean $_debug 
  316.      */
  317.     var $_debug    = false;
  318.  
  319.     /**
  320.      * Turns on _posting of UDDI message to UBR
  321.      * @var boolean $_transmit 
  322.      */
  323.     var $_transmit = true;
  324.  
  325.     /**
  326.      * Host to use
  327.      * @var string $_host 
  328.      */
  329.     var $_host;
  330.  
  331.     /**
  332.      * URL to use
  333.      * @var string $_url 
  334.      */
  335.     var $_url;
  336.  
  337.     // }}}
  338.     // {{{ constructor
  339.  
  340.     /**
  341.      * constructor
  342.      *
  343.      * @access   public
  344.      * @param    string   $registry    name of registry to use
  345.      * @param    integer  $version     UDDI version to use
  346.      */
  347.     function UDDI($registry 'IBM'$version = 1)
  348.     {
  349.         $this->splitUrl($registry$version);
  350.     }
  351.  
  352.     // }}}
  353.     // {{{ splitUrl()
  354.  
  355.     /**
  356.      * retrieves information from URL and sets params
  357.      *
  358.      * @access   public
  359.      * @param    string   $registry    name of registry to use
  360.      * @param    integer  $version     UDDI version to use
  361.      */
  362.     function splitUrl($registry$version)
  363.     {
  364.         $this->_registry $registry;
  365.         $reg $this->_regarray[$this->_registry][$this->_api]['url'];
  366.         $reg str_replace('http://'''$reg);
  367.         $pos strpos($reg'/')
  368.             or PEAR::raiseError("Invalid registry POS = $pos, URL = '$reg'\n");
  369.         $this->_host substr($reg0$pos);
  370.         $this->_url substr($reg$posstrlen($reg- 1);
  371.  
  372.         if ($version > 1{
  373.             $this->_xmlns .= "_v$version";
  374.         }
  375.  
  376.         $this->_generic = "$version.0";
  377.     }
  378.  
  379.     // }}}
  380.     // {{{ post()
  381.  
  382.     /**
  383.      * assembles HTTP headers and posts these and the UDDI message to the UBR
  384.      *
  385.      * @access   public
  386.      * @param    string  $message    the UDDI message to send
  387.      * @return   string  $data       data returned from the UBR
  388.      */
  389.     function post($message)
  390.     {
  391.         $msg_length strlen($message);
  392.         $php_version phpversion();
  393.         $date str_replace('+0000''GMT'gmdate('r'time()));
  394.  
  395.         $header '';
  396.         $header .= "POST $this->_url HTTP/1.0\r\n";
  397.         $header .= "Date: $date\r\n";
  398.         $header .= "Content-Type: text/xml; charset=UTF-8\r\n";
  399.         $header .= "User-agent: PEAR::UDDI/$this->_version php/$php_version\r\n";
  400.         $header .= "Host: $this->_host\r\n";
  401.         $header .= "SOAPAction: \"\"\r\n";
  402.         $header .= "Content-Length: $msg_length\r\n\r\n";
  403.  
  404.         //  echoes HTTP header and UDDI message to page if true
  405.         if ($this->_debug{
  406.             echo '<pre>' htmlspecialchars(str_replace('><'">\n<"$header $message)) '</pre>';
  407.         }
  408.  
  409.         //  sends header and message to UBR if true
  410.         if ($this->_transmit{
  411.             $port $this->_regarray[$this->_registry][$this->_api]['port'];
  412.             $fp fsockopen($this->_host$port$errno$errstr5)
  413.                 or PEAR::raiseError("Couldn't connect to server at $this->_host:$port.<br />Error #$errno$errstr.");
  414.  
  415.             fputs($fp$header)
  416.                 or PEAR::raiseError("Couldn't send HTTP headers.");
  417.             fputs($fp"$message\n\n")
  418.                 or PEAR::raiseError("Couldn't send UDDI message.");
  419.  
  420.             $response '';
  421.             while (!feof($fp)) {
  422.                 $response .= fgets($fp1024)
  423.                     or PEAR::raiseError('No response from server.');
  424.             }
  425.             fclose($fp)
  426.                 or PEAR::raiseError("Warning: Couldn't close HTTP connection.");
  427.  
  428.             $response str_replace('><'">\n<"$response);
  429.             return $response;
  430.         }
  431.     }
  432.  
  433.     // }}}
  434.     // {{{ query()
  435.  
  436.     /**
  437.      * sends and UDDI query to the registry server
  438.      *
  439.      * @access   public
  440.      * @param    string  $method     the UDDI message to send
  441.      * @param    array   $params     parameters for the query
  442.      * @return   string  $data       response from the registry server
  443.      */
  444.     function query($method$params)
  445.     {
  446.         $message $this->assemble($method$params);
  447.  
  448.         return $this->post($message);
  449.     }
  450.  
  451.     // }}}
  452.     // {{{ assemble()
  453.  
  454.     /**
  455.      * generate XML creating the UDDI query
  456.      *
  457.      * @access   public
  458.      * @param    string  $method     the UDDI message to send
  459.      * @param    array   $params     parameters for the query
  460.      * @return   string  $data       the desired XML query code
  461.      */
  462.     function assemble($method$params)
  463.     {
  464.         $head '<?xml version="1.0" encoding="utf-8"?>';
  465.         $head .= '<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/">';
  466.         $head .= '<Body>';
  467.  
  468.         $end = "</$method></Body></Envelope>";
  469.  
  470.         $attrib '';
  471.         $element '';
  472.  
  473.  
  474.         if (isset($params['discoveryURLs']&& ($params['discoveryURLs'!= '')) {
  475.             $element .= '<discoveryURLs>' $params['discoveryURLs''</discoveryURLs>';
  476.         }
  477.  
  478.         if (isset($params['bindingKey']&& ($params['bindingKey'!= '')) {
  479.             $element .= '<bindingKey>' $params['bindingKey''</bindingKey>';
  480.         }
  481.  
  482.         if (isset($params['businessKey']&& ($params['businessKey'!= '')) {
  483.             $element .= '<businessKey>' $params['businessKey''</businessKey>';
  484.         }
  485.  
  486.         if (isset($params['serviceKey']&& ($params['serviceKey'!= '')) {
  487.     
  488.             if ($method == 'find_binding'{
  489.                 $attrib .= ' serviceKey="' $params['serviceKey''"';
  490.             }
  491.             if ($method == 'get_serviceDetail'{
  492.                 $element .= '<serviceKey>' $params['serviceKey''</serviceKey>';
  493.             }
  494.         }
  495.  
  496.         if (isset($params['tModelKey']&& ($params['tModelKey'!= '')) {
  497.             $element .= '<tModelKey>uuid:' $params['tModelKey''</tModelKey>';
  498.         }
  499.  
  500.         if (isset($params['findQualifiers']&& ($params['findQualifiers'!= '')) {
  501.             $element .= '<findQualifiers>';
  502.             $findQualifiers explode(','$params['findQualifiers']);
  503.             for ($i = 0; $i count($findQualifiers)$i++{
  504.                 $element .= '<findQualifier>' $findQualifiers[$i'</findQualifier>';
  505.             }
  506.             $element .= '</findQualifiers>';
  507.         }
  508.  
  509.         if (isset($params['tModelBag']&& ($params['tModelBag'!= '')) {
  510.             $tModelKey explode(','$params['tModelBag']);
  511.             $element .= '<tModelBag>';
  512.             for ($i = 0; $i count($tModelKey)$i++{
  513.                 $element .= '<tModelKey>uuid:' $tModelKey[$i'</tModelKey>';
  514.                 $element .= '</tModelBag>';
  515.             }
  516.         }
  517.  
  518.         if (isset($params['name']&& ($params['name'!= '')) {
  519.             $lang '';
  520.             if (isset($params['lang']&& ($params['lang'!= '')) {
  521.                 $lang = "xml:lang=\"$lang\"";
  522.             }
  523.             $element .= '<name ' $lang '>' $params['name''</name>';
  524.         }
  525.  
  526.         if (isset($params['identifierBag']&& ($params['identifierBag'!= '')) {
  527.             $element .= '<identifierBag>';
  528.             $keyedReference explode(','$params['identifierBag']);
  529.             for ($i = 0; $i count($keyedReference)$i++{
  530.                 $element .= '<keyedReference>' $keyedReference[$i'</keyedReference>';
  531.             }
  532.             $element .= '</identifierBag>';
  533.         }
  534.  
  535.         if (isset($params['categoryBag']&& ($params['categoryBag'!= '')) {
  536.             $element .= '<categoryBag>';
  537.             $keyedReference explode(','$params['identifierBag']);
  538.             for ($i = 0; $i<count($keyedReference)$i++{
  539.                 $element .= '<keyedReference>' $keyedReference[$i'</keyedReference>';
  540.             }
  541.             $element .= '</categoryBag>';
  542.         }
  543.  
  544.         if (isset($params['maxRows']&& ($params['maxRows'!= '')) {
  545.             $attrib .= ' maxRows="' $params['maxRows''"';
  546.         }
  547.  
  548.         $head .= "<$method $attrib xmlns=\"$this->_xmlns\" generic=\"$this->_generic\">";
  549.  
  550.         $message $head;
  551.         $message .= $element;
  552.         $message .= $end;
  553.  
  554.         return $message;
  555.     }
  556.  
  557.     // }}}
  558.     // {{{ find_binding()
  559.  
  560.     /**
  561.      * Sends find_binding inquiry to UBR (searchs for bindings within a businessService element)
  562.      *
  563.      * @access   public
  564.      * @param    array   $params     parameters for the query
  565.      * @return   string  $data       response from the registry server
  566.      */
  567.     function find_binding($params)
  568.     {
  569.         $data $this->query('find_binding'$params);
  570.         return $data;
  571.     }
  572.  
  573.     // }}}
  574.     // {{{ find_business()
  575.  
  576.     /**
  577.      * Sends find_business inquiry to UBR (searchs businessEntity elements)
  578.      *
  579.      * @access   public
  580.      * @param    array   $params     parameters for the query
  581.      * @return   string  $data       response from the registry server
  582.      */
  583.     function find_business($params)
  584.     {
  585.         $data $this->query('find_business'$params);
  586.         return $data;
  587.     }
  588.  
  589.     // }}}
  590.     // {{{ find_relatedBusinesses()
  591.  
  592.     /**
  593.      * Sends find_relatedBusinesses inquiry to UBR (searchs for related businessEntity elements for a given businessKey)
  594.      *
  595.      * @access   public
  596.      * @param    array   $params     parameters for the query
  597.      * @return   string  $data       response from the registry server
  598.      */
  599.     function find_relatedBusinesses($params)
  600.     {
  601.         $data $this->query('find_relatedBusinesses'$params);
  602.         return $data;
  603.     }
  604.  
  605.     // }}}
  606.     // {{{ find_service()
  607.  
  608.     /**
  609.      * Sends find_service inquiry to UBR (searchs for businessService elements)
  610.      *
  611.      * @access   public
  612.      * @param    array   $params     parameters for the query
  613.      * @return   string  $data       response from the registry server
  614.      */
  615.     function find_service($params)
  616.     {
  617.         $data $this->query('find_service'$params);
  618.         return $data;
  619.     }
  620.  
  621.     // }}}
  622.     // {{{ find_tModel()
  623.  
  624.     /**
  625.      * Sends find_tModel inquiry to UBR (searchs for tModel elements)
  626.      *
  627.      * @access   public
  628.      * @param    array   $params     parameters for the query
  629.      * @return   string  $data       response from the registry server
  630.      */
  631.     function find_tModel($params)
  632.     {
  633.         $data $this->query('find_tModel'$params);
  634.         return $data;
  635.     }
  636.  
  637.     // }}}
  638.     // {{{ get_bindingDetail()
  639.  
  640.     /**
  641.      * Sends get_bindingDetail inquiry to UBR (returns bindingDetail elements for one or more bindingKey elements)
  642.      *
  643.      * @access   public
  644.      * @param    array   $params     parameters for the query
  645.      * @return   string  $data       response from the registry server
  646.      */
  647.     function get_bindingDetail($params)
  648.     {
  649.         $data $this->query('get_bindingDetail'$params);
  650.         return $data;
  651.     }
  652.  
  653.     // }}}
  654.     // {{{ get_businessDetail()
  655.  
  656.     /**
  657.      * Sends get_businessDetail inquiry to UBR (returns information about one or more businessEntity elements)
  658.      *
  659.      * @access   public
  660.      * @param    array   $params     parameters for the query
  661.      * @return   string  $data       response from the registry server
  662.      */
  663.     function get_businessDetail($params)
  664.     {
  665.         $data $this->query('get_businessDetail'$params);
  666.         return $data;
  667.     }
  668.  
  669.     // }}}
  670.     // {{{ get_businessDetailExt()
  671.  
  672.     /**
  673.      * Sends get_businessDetailExt inquiry to UBR (returns extended information about one or more businessEntity elements)
  674.      *
  675.      * @access   public
  676.      * @param    array   $params     parameters for the query
  677.      * @return   string  $data       response from the registry server
  678.      */
  679.     function get_businessDetailExt($params)
  680.     {
  681.         $data $this->query('get_businessDetailExt'$params);
  682.         return $data;
  683.     }
  684.  
  685.     // }}}
  686.     // {{{ get_serviceDetail()
  687.  
  688.     /**
  689.      * Sends get_serviceDetail inquiry to UBR (returns information about one or more businessService elements)
  690.      *
  691.      * @access   public
  692.      * @param    array   $params     parameters for the query
  693.      * @return   string  $data       response from the registry server
  694.      */
  695.     function get_serviceDetail($params)
  696.     {
  697.         $data $this->query('get_serviceDetail'$params);
  698.         return $data;
  699.     }
  700.  
  701.     // }}}
  702.     // {{{ get_tModelDetail()
  703.  
  704.     /**
  705.      * Sends get_tModelDetail inquiry to UBR (returns information about one or more tModel elements)
  706.      *
  707.      * @access   public
  708.      * @param    array   $params     parameters for the query
  709.      * @return   string  $data       response from the registry server
  710.      */
  711.     function get_tModelDetail($params)
  712.     {
  713.         $data $this->query('get_tModelDetail'$params);
  714.         return $data;
  715.     }
  716.  
  717.     // }}}
  718.  
  719. }
  720.  
  721. // }}}
  722.  
  723. ?>

Documentation generated on Mon, 11 Mar 2019 13:54:01 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.