Location: PHPKode > projects > MembersGear > membersgear/includes/product_webService_server.php
<?php 
     require_once "../config/config.php";
    require_once('nusoapwebservice/nusoap.php');
    require_once "product_class.php";
   
         
            $server = new soap_server;
            $server->configureWSDL('getProductInfo','urn:getProductInfo');
            // register the lookup service
             $server->register('getProductInfo',                // method name
             array('pid' => 'xsd:integer'),        // input parameters
             array('return' => 'xsd:array'),      // output parameters
             'urn:getProductInfowsdl',                      // namespace
             'urn:getProductInfo#getProductInfo',                // soapaction
             'rpc',                                // style
             'encoded',                            // use
              'get the product info'            // documentation
             );
             
              function getProductInfo($pid)
                {
                    $prod=new product_class();
                    $res=$prod->GetSpecificProduct($pid);
                    return $res;
                }
             
            $server->register('getProductInfo');
            $HTTP_RAW_POST_DATA = isset($HTTP_RAW_POST_DATA) ? $HTTP_RAW_POST_DATA : '';
            $server->service($HTTP_RAW_POST_DATA); 
         
?>
Return current item: MembersGear